mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Do not override IsUseable function for m41a.
This commit is contained in:
parent
1427eff24b
commit
9936fa2b33
@ -809,7 +809,6 @@ public:
|
||||
BOOL Deploy( void );
|
||||
void Reload( void );
|
||||
void WeaponIdle( void );
|
||||
BOOL IsUseable();
|
||||
float m_flNextAnimTime;
|
||||
int m_iShell;
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user