From: Mario Date: Mon, 8 Aug 2016 05:44:32 +0000 (+1000) Subject: Add an extra mode to g_showweaponspawns which shows all weapon locations with the... X-Git-Tag: xonotic-v0.8.2~734 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d0c872e9312a6c3a2b01651de0bdb1eff09e3b1f;p=xonotic%2Fxonotic-data.pk3dir.git Add an extra mode to g_showweaponspawns which shows all weapon locations with the same impulse (may overlap if multiple weapons share the same spawnpoint) --- diff --git a/qcsrc/server/weapons/selection.qc b/qcsrc/server/weapons/selection.qc index 8e3e10758..8a787241a 100644 --- a/qcsrc/server/weapons/selection.qc +++ b/qcsrc/server/weapons/selection.qc @@ -101,7 +101,15 @@ bool client_hasweapon(entity this, Weapon wpn, float andammo, bool complain) if (weaponsInMap & WepSet_FromWeapon(wpn)) { Send_WeaponComplain(this, wpn.m_id, 1); - Weapon_whereis(wpn, this); + if(autocvar_g_showweaponspawns < 3) + Weapon_whereis(wpn, this); + else + { + FOREACH(Weapons, it.impulse == wpn.impulse, + { + Weapon_whereis(it, this); + }); + } } else {