From d735beb2b742ff6365c257c16326ed3a29a768cd Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sun, 6 Jun 2021 20:30:35 +0500 Subject: [PATCH] Do not override IsUseable function for par21. --- dlls/vendetta/par21.cpp | 6 ------ dlls/weapons.h | 1 - 2 files changed, 7 deletions(-) diff --git a/dlls/vendetta/par21.cpp b/dlls/vendetta/par21.cpp index 87c750fd..b02a5d92 100644 --- a/dlls/vendetta/par21.cpp +++ b/dlls/vendetta/par21.cpp @@ -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(); diff --git a/dlls/weapons.h b/dlls/weapons.h index 1c472f3e..593249ab 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -844,7 +844,6 @@ public: int SecondaryAmmoIndex( void ); BOOL Deploy( void ); void Reload( void ); - BOOL IsUseable(); void WeaponIdle( void ); int m_iShell;