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:
Simon 2022-10-15 19:36:53 +01:00
parent 17ab3adeed
commit 2f40ff3e6a
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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 )
{