Fix player not being able to deploy parachute after landing and becoming airborne without jump button

This commit is contained in:
FlaminSarge 2025-02-21 23:16:09 -08:00 committed by EricS-Valve
parent 43d8767c30
commit a32d24df73
2 changed files with 4 additions and 6 deletions

View File

@ -1116,12 +1116,6 @@ void CTFGameMovement::PreventBunnyJumping()
//-----------------------------------------------------------------------------
void CTFGameMovement::ToggleParachute()
{
if ( ( m_pTFPlayer->GetFlags() & FL_ONGROUND ) )
{
m_pTFPlayer->m_Shared.RemoveCond( TF_COND_PARACHUTE_DEPLOYED );
return;
}
if ( mv->m_nOldButtons & IN_JUMP )
return;

View File

@ -3106,6 +3106,10 @@ void CTFPlayerShared::ConditionThink( void )
{
RemoveCond( TF_COND_PARACHUTE_ACTIVE );
}
if ( InCond( TF_COND_PARACHUTE_DEPLOYED ) )
{
RemoveCond( TF_COND_PARACHUTE_DEPLOYED );
}
if ( InCond( TF_COND_ROCKETPACK ) )
{