mirror of
https://github.com/fortressforever/fortressforever-2013.git
synced 2024-11-25 13:51:25 +00:00
Fixed getting out of water when holding jump.
This commit is contained in:
parent
c4061fb5f7
commit
bbeb6107be
1 changed files with 3 additions and 2 deletions
|
@ -1407,7 +1407,8 @@ void CGameMovement::WaterMove( void )
|
|||
}
|
||||
|
||||
// if we have the jump key down, move us up as well
|
||||
if (mv->m_nButtons & IN_JUMP)
|
||||
if (mv->m_nButtons & IN_JUMP
|
||||
&& !player->m_flWaterJumpTime) // FF --> hlstriker: Make sure we aren't water jumping before setting velocity.
|
||||
{
|
||||
// FF --> Move at a standard speed
|
||||
//wishvel[2] += mv->m_flClientMaxSpeed;
|
||||
|
@ -2087,7 +2088,7 @@ void CGameMovement::FullWalkMove( )
|
|||
if ( player->GetWaterLevel() >= WL_Waist )
|
||||
{
|
||||
if ( player->GetWaterLevel() == WL_Waist
|
||||
&& mv->m_vecVelocity[2] > 0 ) // FF --> hlstriker: Make sure the player is actually moving upwards before trying to jump out of water.
|
||||
&& (mv->m_vecVelocity[2] > -10 || (mv->m_nButtons & IN_JUMP)) ) // FF --> hlstriker: Make sure the player is actually moving upwards OR holding jump before trying to jump out of water.
|
||||
{
|
||||
CheckWaterJump();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue