From d8ea53f72e4437125b780661b88a8a7a02d41bf0 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 27 Nov 2014 17:11:52 +1100 Subject: [PATCH] Check if melee is enabled when checking ammo --- qcsrc/common/weapons/w_shotgun.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/weapons/w_shotgun.qc b/qcsrc/common/weapons/w_shotgun.qc index 9e87f8c85..88c604c0a 100644 --- a/qcsrc/common/weapons/w_shotgun.qc +++ b/qcsrc/common/weapons/w_shotgun.qc @@ -265,8 +265,9 @@ float W_Shotgun(float req) } case WR_CHECKAMMO2: { - // melee does not use ammo - return TRUE; + if(WEP_CVAR(shotgun, secondary)) + return TRUE; // melee does not use ammo + return FALSE; // secondary unavailable } case WR_CONFIG: { -- 2.39.2