Skip to content

Commit a767644

Browse files
allveiEricS-Valve
authored andcommitted
Allow impulse 101 on caber
Allow WeaponRegenerate() to work on all weapons not just EnergyWeapons(). This allows to use impulse 101 on caber.
1 parent 632d29d commit a767644

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/game/server/tf/tf_player.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14763,10 +14763,7 @@ void CTFPlayer::CheatImpulseCommands( int iImpulse )
1476314763

1476414764
pWeapon->GiveDefaultAmmo();
1476514765

14766-
if ( pWeapon->IsEnergyWeapon() )
14767-
{
14768-
pWeapon->WeaponRegenerate();
14769-
}
14766+
pWeapon->WeaponRegenerate();
1477014767
}
1477114768

1477214769
m_Shared.m_flRageMeter = 100.f;

0 commit comments

Comments
 (0)