From: Mario Date: Sat, 10 Feb 2018 09:14:03 +0000 (+1000) Subject: Whitelist overkill's health/armor items again X-Git-Tag: xonotic-v0.8.5~2331 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=45881fb1af30037591879eb93c5eea370255921c;p=xonotic%2Fxonotic-data.pk3dir.git Whitelist overkill's health/armor items again --- diff --git a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc index 5611042b0..fab0b6ff9 100644 --- a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc +++ b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc @@ -230,6 +230,13 @@ MUTATOR_HOOKFUNCTION(ok, FilterItem) { return false; } + switch(item.itemdef) + { + case ITEM_HealthMega: return autocvar_g_overkill_filter_healthmega; + case ITEM_ArmorMedium: return autocvar_g_overkill_filter_armormedium; + case ITEM_ArmorBig: return autocvar_g_overkill_filter_armorbig; + case ITEM_ArmorMega: return autocvar_g_overkill_filter_armormega; + } if (!autocvar_g_powerups || !autocvar_g_overkill_powerups_replace) { return true;