mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-05-17 17:18:01 +03:00
Don't allow activating parachute on ground (as the conditions will get removed on Think)
This commit is contained in:
parent
a32d24df73
commit
464724334c
@ -1142,9 +1142,10 @@ void CTFGameMovement::ToggleParachute()
|
||||
}
|
||||
else
|
||||
{
|
||||
bool bOnGround = ( player->GetGroundEntity() != NULL );
|
||||
int iParachuteDisabled = 0;
|
||||
CALL_ATTRIB_HOOK_INT_ON_OTHER( m_pTFPlayer, iParachuteDisabled, parachute_disabled );
|
||||
if ( !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 ) ) )
|
||||
{
|
||||
m_pTFPlayer->m_Shared.AddCond( TF_COND_PARACHUTE_ACTIVE );
|
||||
m_pTFPlayer->m_Shared.AddCond( TF_COND_PARACHUTE_DEPLOYED );
|
||||
|
Loading…
x
Reference in New Issue
Block a user