From: Mario Date: Sat, 16 Nov 2024 07:42:15 +0000 (+1000) Subject: Filter mutator blocked weapons from the weapon arena selection menu X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F1385%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git Filter mutator blocked weapons from the weapon arena selection menu --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc index 20f72863e..337f10e0c 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc @@ -166,6 +166,8 @@ void XonoticMutatorsDialog_fill(entity me) w = REGISTRY_GET(Weapons, i); if (w.spawnflags & (WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK)) continue; + if (w.spawnflags & WEP_FLAG_MUTATORBLOCKED) + continue; if ((j % 3) == 0) { me.TR(me);