]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Whitelist overkill's health/armor items again
authorMario <mario@smbclan.net>
Sat, 10 Feb 2018 09:14:03 +0000 (19:14 +1000)
committerMario <mario@smbclan.net>
Sat, 10 Feb 2018 09:14:03 +0000 (19:14 +1000)
qcsrc/common/mutators/mutator/overkill/sv_overkill.qc

index 5611042b0b3100f1bb8cb0dcd2e06e546fa9720a..fab0b6ff969008269df0d6b595cf882ce5677ef9 100644 (file)
@@ -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;