From b8f2ba35cfae6d9ca24547c72c18a4b6e436cd0a Mon Sep 17 00:00:00 2001 From: Vaqtincha Date: Mon, 22 Jan 2024 20:38:48 +0500 Subject: [PATCH] Fix grenade ammo weaponbox --- regamedll/dlls/weapons.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/dlls/weapons.cpp b/regamedll/dlls/weapons.cpp index 811b901cd..c6e775161 100644 --- a/regamedll/dlls/weapons.cpp +++ b/regamedll/dlls/weapons.cpp @@ -1630,7 +1630,11 @@ int CBasePlayerWeapon::ExtractClipAmmo(CBasePlayerWeapon *pWeapon) if (m_iClip == WEAPON_NOCLIP) { // guns with no clips always come empty if they are second-hand +#ifdef REGAMEDLL_FIXES + iAmmo = IsGrenadeWeapon(m_iId) ? 1 : 0; +#else iAmmo = 0; +#endif } else {