tmp64 / BugfixedHL-Rebased

Bugfixed and improved Half-Life
GNU General Public License v3.0
109 stars 22 forks source link

Disconnecting while game is minimized and not paused disables the mouse #103

Closed gundogfan closed 2 years ago

gundogfan commented 2 years ago

This bug happens on Steam version only, since this is the only one with HTML MOTD.

Steps:

  1. Join a server with HTML MOTD
  2. Get kicked with HTML MOTD open
  3. Reconnect and close MOTD
  4. Try moving camera, won't move
tmp64 commented 2 years ago

Do you connect to the server, minimize the game (or make the window inactive), kick yourself in the server console, open the game window and reconnect?

gundogfan commented 2 years ago

Oh, yes. You're right, I was kicked while I minimized the game that time. Then when I wanted to reproduce the bug I entered a server, minimized and kicked myself from server console, then reconnect.

tmp64 commented 2 years ago

This happens every time when:

  1. Game is minimized but not in the pause screen
  2. Player is disconnected from the server (kicked, lost connection, etc)
  3. Game is maximized and the player joins any server
  4. Client only uses VGUI2 (IClientVGUI::UseVGUI1 returns false).

Seems to be some obscure engine bug.

Workaround: minimize and maximize the game.