Skip to content

Commit 79f63d2

Browse files
committed
fix attrib check for atomizer
1 parent 0d7d311 commit 79f63d2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/game/shared/tf/tf_player_shared.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12168,16 +12168,9 @@ bool CTFPlayer::CanAirDash( void ) const
1216812168
}
1216912169

1217012170
int iDashCount = tf_scout_air_dash_count.GetInt();
12171-
if ( GetActiveWeapon() && GetActiveTFWeapon()->GetWeaponID() == TF_WEAPON_BAT )
12171+
if ( GetActiveWeapon() && ( !GetActiveTFWeapon()->GetWeaponID() == TF_WEAPON_BAT || gpGlobals->curtime - GetActiveTFWeapon()->GetLastDeployTime() > 0.7f ) )
1217212172
{
12173-
if ( gpGlobals->curtime - GetActiveTFWeapon()->GetLastDeployTime() > 0.7f )
12174-
{
12175-
CALL_ATTRIB_HOOK_FLOAT_ON_OTHER( GetActiveWeapon(), iDashCount, air_dash_count );
12176-
}
12177-
}
12178-
else
12179-
{
12180-
CALL_ATTRIB_HOOK_INT( iDashCount, air_dash_count );
12173+
CALL_ATTRIB_HOOK_FLOAT_ON_OTHER( GetActiveWeapon(), iDashCount, air_dash_count );
1218112174
}
1218212175
if ( m_Shared.GetAirDash() >= iDashCount )
1218312176
return false;

0 commit comments

Comments
 (0)