From 9f31ea5b6985165c96d94d8c7f2de9c2e14738c1 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 20 Apr 2016 19:12:10 +0200 Subject: [PATCH] Don't pick specific weapons --- qcsrc/client/hud/panel/weapons.qc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/qcsrc/client/hud/panel/weapons.qc b/qcsrc/client/hud/panel/weapons.qc index 52fcc549a..8fa22dd5e 100644 --- a/qcsrc/client/hud/panel/weapons.qc +++ b/qcsrc/client/hud/panel/weapons.qc @@ -106,12 +106,14 @@ void HUD_Weapons() { if(!weapons_stat) { - weapons_stat |= WepSet_FromWeapon(Weapons_from(WEP_BLASTER.m_id)); - weapons_stat |= WepSet_FromWeapon(Weapons_from(WEP_SHOTGUN.m_id)); - weapons_stat |= WepSet_FromWeapon(Weapons_from(WEP_MORTAR.m_id)); - weapons_stat |= WepSet_FromWeapon(Weapons_from(WEP_CRYLINK.m_id)); - weapons_stat |= WepSet_FromWeapon(Weapons_from(WEP_VORTEX.m_id)); - weapons_stat |= WepSet_FromWeapon(Weapons_from(WEP_DEVASTATOR.m_id)); + int j = 0; + FOREACH(Weapons, it != WEP_Null && it.impulse >= 0 && (it.impulse % 3 != 0) && j < 6, { + if(!(it.spawnflags & WEP_FLAG_MUTATORBLOCKED)) + { + weapons_stat |= it.m_wepset; + ++j; + } + }); } #if 0 -- 2.39.2