Fix lerk fly animation not showing if they walked off a ledge

This commit is contained in:
pierow 2023-08-08 06:52:56 -04:00
parent f6b6e1b5c0
commit 21e6edcf2e
2 changed files with 4 additions and 2 deletions

View file

@ -1891,7 +1891,8 @@ void CBasePlayer::Jump()
if ( !FBitSet( m_afButtonPressed, IN_JUMP ) ) if ( !FBitSet( m_afButtonPressed, IN_JUMP ) )
return; // don't pogo stick return; // don't pogo stick
if ( !(pev->flags & FL_ONGROUND) || !pev->groundentity ) //if ( !(pev->flags & FL_ONGROUND) || !pev->groundentity )
if ((!(pev->flags & FL_ONGROUND) && pev->iuser3 != AVH_USER3_ALIEN_PLAYER3) || !pev->groundentity)
{ {
return; return;
} }

View file

@ -4580,7 +4580,8 @@ void AvHPlayer::Jump()
if ( !FBitSet( m_afButtonPressed, IN_JUMP ) ) if ( !FBitSet( m_afButtonPressed, IN_JUMP ) )
return; // don't pogo stick return; // don't pogo stick
if ( !(pev->flags & FL_ONGROUND) || !pev->groundentity ) // if ( !(pev->flags & FL_ONGROUND) || !pev->groundentity )
if ((!(pev->flags & FL_ONGROUND) && this->GetUser3() != AVH_USER3_ALIEN_PLAYER3) || !pev->groundentity)
{ {
return; return;
} }