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 5611042..fab0b6f 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;