Facepunch / garrysmod-issues

Garry's Mod issue tracker
141 stars 56 forks source link

Player eye target defaults to incorrect angles. #5736

Open bluemetaknight opened 7 months ago

bluemetaknight commented 7 months ago

Details

Version: Protocol version 24 Exe version 2023.06.28 (garrysmod) Exe build: 14:55:37 Feb 1 2024 (9196) (4000) GMod version 2024.02.02, branch: x86-64, multicore: 1 Windows 64bit

Upon loading a game instance, most player models seem to have their eye angles default to looking up and to the right. This can be fixed by running SetEyeTarget(Vector(0,0,0)) on the effected player, but strangely enough, it also seems to go away by alt-tabbing the game window a few times.

Steps to reproduce

Simply load a game instance inspect the player model using the camera tool.

Alyx_OnSpawn Alyx_AfterAltTab

TW1STaL1CKY commented 1 month ago

To add some info: tabbing out lowers your FPS below 60, which seems to be what fixes their eyes for the rest of the session.

There's something related to this that I've come across too, where players' eyes flicker top-right to bottom-left and back every frame. It looks like it happens when trying to set eye target (in my case every frame) while FPS is above 60 or 80.