mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-10 06:42:17 +00:00
Fix issue with glitching view when using something
it was lean being triggered Co-Authored-By: Grant Bagwell <general@grantbagwell.co.uk>
This commit is contained in:
parent
17ab3adeed
commit
2f40ff3e6a
2 changed files with 4 additions and 2 deletions
|
@ -1587,7 +1587,8 @@ void PM_UpdateViewAngles( playerState_t *ps, usercmd_t *cmd, gentity_t *gent )
|
|||
}
|
||||
}
|
||||
|
||||
if ( gent )
|
||||
//We don't want to trigger lean as this messes us up if we turn our head left or right
|
||||
if ( false )//gent )
|
||||
{ //only in the real pmove
|
||||
if ( (cmd->buttons & BUTTON_USE) )
|
||||
{//check leaning
|
||||
|
|
|
@ -498,7 +498,8 @@ void PM_UpdateViewAngles( playerState_t *ps, usercmd_t *cmd, gentity_t *gent )
|
|||
}
|
||||
}
|
||||
|
||||
if ( (!cg.renderingThirdPerson||cg.zoomMode) && (cmd->buttons & BUTTON_USE) && cmd->rightmove != 0 && !cmd->forwardmove && cmd->upmove <= 0 )
|
||||
//We don't want to trigger lean as this messes us up if we turn our head left or right
|
||||
if ( false )//(!cg.renderingThirdPerson||cg.zoomMode) && (cmd->buttons & BUTTON_USE) && cmd->rightmove != 0 && !cmd->forwardmove && cmd->upmove <= 0 )
|
||||
{//Only lean if holding use button, strafing and not moving forward or back and not jumping
|
||||
if ( gent )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue