mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-05-18 01:28:02 +03:00
Update tf_gamemovement.cpp
This commit is contained in:
parent
8f2a056d6b
commit
92ee92f9dd
@ -1142,7 +1142,7 @@ void CTFGameMovement::ToggleParachute()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bool bOnGround = ( player->GetGroundEntity() != NULL );
|
bool bOnGround = ( m_pTFPlayer->GetFlags() & FL_ONGROUND );
|
||||||
int iParachuteDisabled = 0;
|
int iParachuteDisabled = 0;
|
||||||
CALL_ATTRIB_HOOK_INT_ON_OTHER( m_pTFPlayer, iParachuteDisabled, parachute_disabled );
|
CALL_ATTRIB_HOOK_INT_ON_OTHER( m_pTFPlayer, iParachuteDisabled, parachute_disabled );
|
||||||
if ( !bOnGround && !iParachuteDisabled && ( tf_parachute_deploy_toggle_allowed.GetBool() || !m_pTFPlayer->m_Shared.InCond( TF_COND_PARACHUTE_DEPLOYED ) ) )
|
if ( !bOnGround && !iParachuteDisabled && ( tf_parachute_deploy_toggle_allowed.GetBool() || !m_pTFPlayer->m_Shared.InCond( TF_COND_PARACHUTE_DEPLOYED ) ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user