There are semi-fixes for it that you can apply with Lua but they don’t completely resolve the problem.
Quick-Fix: Untested
This function should be in a shared.
[lua] /---------------------------------------------------------
Name: gamemode:UpdateAnimation( )
Desc: Animation updates (pose params etc) should be done here
---------------------------------------------------------/
function GM:UpdateAnimation( pl )
if ( !CLIENT ) then return; end
local yaw = math.Round( pl:GetAngles( ).y )
local rad = yaw * ( 3.141592654 / 180 )
if ( yaw < 0 ) then yaw = yaw + 360 end
pl:SetPoseParameter( "aim_yaw", math.sin( pl:GetAngles( ).y ) )
pl:SetPoseParameter( "aim_pitch", math.sin( pl:GetAngles( ).p ) )
Msg( "y: " ..pl:GetPoseParameter( "aim_yaw" ).." p: "..pl:GetPoseParameter( "aim_pitch" ).. "
" )
end
[/lua]
This will change the way the player’s model rotates and looks up.