mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Merge 19c8e45d8f
This commit is contained in:
parent
6f44185a64
commit
e7b324da5e
@ -270,6 +270,12 @@ void CMP5::WeaponIdle( void )
|
||||
m_flTimeWeaponIdle = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 ); // how long till we do this again.
|
||||
}
|
||||
|
||||
BOOL CMP5::IsUseable()
|
||||
{
|
||||
//Can be used if the player has AR grenades. - Solokiller
|
||||
return CBasePlayerWeapon::IsUseable() || m_pPlayer->m_rgAmmo[m_iSecondaryAmmoType] > 0;
|
||||
}
|
||||
|
||||
class CMP5AmmoClip : public CBasePlayerAmmo
|
||||
{
|
||||
void Spawn( void )
|
||||
|
@ -563,6 +563,7 @@ public:
|
||||
BOOL Deploy( void );
|
||||
void Reload( void );
|
||||
void WeaponIdle( void );
|
||||
BOOL IsUseable();
|
||||
float m_flNextAnimTime;
|
||||
int m_iShell;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user