From: Mario Date: Sat, 10 Aug 2019 03:54:58 +0000 (+1000) Subject: Exclude hidden weapons from the allguns list X-Git-Tag: xonotic-v0.8.5~1423 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1ecf9914d3a589b7ee5f3dd5fda4045ccfcfdda;p=xonotic%2Fxonotic-data.pk3dir.git Exclude hidden weapons from the allguns list --- 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);