Browse Source

Do not override IsUseable function for par21.

poke646_vendetta
Andrey Akhmichin 4 years ago
parent
commit
d735beb2b7
  1. 6
      dlls/vendetta/par21.cpp
  2. 1
      dlls/weapons.h

6
dlls/vendetta/par21.cpp

@ -231,12 +231,6 @@ void CPar21::Reload(void) @@ -231,12 +231,6 @@ void CPar21::Reload(void)
DefaultReload( PAR21_MAX_CLIP, PAR21_RELOAD, 1.6 );
}
BOOL CPar21::IsUseable()
{
//Can be used if the player has AR grenades. - Solokiller
return CBasePlayerWeapon::IsUseable() || m_pPlayer->m_rgAmmo[m_iSecondaryAmmoType] > 0;
}
void CPar21::WeaponIdle(void)
{
ResetEmptySound();

1
dlls/weapons.h

@ -844,7 +844,6 @@ public: @@ -844,7 +844,6 @@ public:
int SecondaryAmmoIndex( void );
BOOL Deploy( void );
void Reload( void );
BOOL IsUseable();
void WeaponIdle( void );
int m_iShell;

Loading…
Cancel
Save