Browse Source

Do not override IsUseable function for m41a.

asheep
Andrey Akhmichin 4 years ago
parent
commit
8d94eee6ae
  1. 5
      dlls/asheep/m41a.cpp
  2. 1
      dlls/weapons.h

5
dlls/asheep/m41a.cpp

@ -308,8 +308,3 @@ void CM41A::WeaponIdle( void ) @@ -308,8 +308,3 @@ void CM41A::WeaponIdle( void )
m_flTimeWeaponIdle = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 ); // how long till we do this again.
}
BOOL CM41A::IsUseable()
{
//Can be used if the player has AR grenades. - Solokiller
return CBasePlayerWeapon::IsUseable() || m_pPlayer->m_rgAmmo[m_iSecondaryAmmoType] > 0;
}

1
dlls/weapons.h

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

Loading…
Cancel
Save