Allow impulse 101 on caber

Allow WeaponRegenerate() to work on all weapons not just EnergyWeapons().
This allows to use impulse 101 on caber.
This commit is contained in:
allvei
2025-02-26 15:58:26 +02:00
committed by EricS-Valve
parent 632d29d344
commit a76764404f

View File

@@ -14763,10 +14763,7 @@ void CTFPlayer::CheatImpulseCommands( int iImpulse )
pWeapon->GiveDefaultAmmo();
if ( pWeapon->IsEnergyWeapon() )
{
pWeapon->WeaponRegenerate();
}
pWeapon->WeaponRegenerate();
}
m_Shared.m_flRageMeter = 100.f;