Do not override IsUseable function for m41a.

This commit is contained in:
Andrey Akhmichin 2021-06-06 20:32:49 +05:00
parent 1427eff24b
commit 9936fa2b33
2 changed files with 0 additions and 7 deletions

View File

@ -809,7 +809,6 @@ public:
BOOL Deploy( void );
void Reload( void );
void WeaponIdle( void );
BOOL IsUseable();
float m_flNextAnimTime;
int m_iShell;

View File

@ -284,12 +284,6 @@ void CMP41a::WeaponIdle( void )
m_flTimeWeaponIdle = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 ); // how long till we do this again.
}
BOOL CMP41a::IsUseable()
{
//Can be used if the player has AR grenades. - Solokiller
return CBasePlayerWeapon::IsUseable() || m_pPlayer->m_rgAmmo[m_iSecondaryAmmoType] > 0;
}
class CMP41aAmmoClip : public CBasePlayerAmmo
{
void Spawn( void )