From b1ecf9914d3a589b7ee5f3dd5fda4045ccfcfdda Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 10 Aug 2019 13:54:58 +1000 Subject: [PATCH] Exclude hidden weapons from the allguns list --- qcsrc/server/miscfunctions.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index bc0b49ca0..167a75ae2 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -499,7 +499,7 @@ float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still ne allow_mutatorblocked = M_ARGV(3, bool); if(allguns) - d = boolean(weaponinfo.spawnflags & WEP_FLAG_NORMAL); + d = boolean((weaponinfo.spawnflags & WEP_FLAG_NORMAL) && !(weaponinfo.spawnflags & WEP_FLAG_HIDDEN)); else if(!mutator_returnvalue) d = !(!weaponinfo.weaponstart); -- 2.39.2