Browse Source

Do not override IsUseable function for m41a.

zombie-x
Andrey Akhmichin 4 years ago
parent
commit
9936fa2b33
  1. 1
      dlls/weapons.h
  2. 6
      dlls/zx/mp41a.cpp

1
dlls/weapons.h

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

6
dlls/zx/mp41a.cpp

@ -284,12 +284,6 @@ void CMP41a::WeaponIdle( void ) @@ -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 )

Loading…
Cancel
Save