ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.6k stars 599 forks source link

[TFC] [Linux] When building, the camera snaps to a different direction #3723

Open rusted-bucket opened 7 months ago

rusted-bucket commented 7 months ago

When building/dismantling as engineer the camera will snap to a completely different direction. I think it's towards the centre of the map but I'm not 100% sure. Switching to the Pre-25th Anniversary Update is the only workaround I can find currently.

EDIT: It only seems to occur when using the mouse in the build menu.

Nomad7 commented 1 month ago

To add a little clarity/detail to this - it seems like there's two pieces contributing to this:

First is that when a menu is opened (+commandmenu or the class selection menu for example) the starting position of the mouse cursor seems to be based on recent mouse movements. For example if you stand on the 2fort bridge and face one base, then turn right to face the other base, then open a menu, your mouse cursor will appear at the far right hand side of the screen.

Second, whatever mouse movements are made using the cursor appear to be processed in the game as well. For example if you open the class selection menu, then move your mouse towards the upper left corner to click Scout, your view will then snap up and to the left.

Essentially, it seems like all mouse movements are being processed by both the menu cursor and the player's view, regardless of which one is currently active / in focus.

Here's a couple video examples: build menu: https://streamable.com/m62wga class selection: https://streamable.com/ys76z3

The legacy client has some weird view-snapping scenarios too, but these specific behaviors seem unique to the anniversary update.