File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments