// ==========
set g_overkill 0 "enable overkill"
-set g_overkill_100a_anyway 1
-set g_overkill_100h_anyway 1
set g_overkill_powerups_replace 1
+set g_overkill_healthmega_remove 0
+set g_overkill_armormedium_remove 1
+set g_overkill_armorbig_remove 1
+set g_overkill_armorlarge_remove 0
set g_overkill_ammo_charge 0
set g_overkill_ammo_charge_notice 1
#include "rpc.qh"
bool autocvar_g_overkill_powerups_replace;
-bool autocvar_g_overkill_100h_anyway;
-bool autocvar_g_overkill_100a_anyway;
bool autocvar_g_overkill_ammo_charge;
float autocvar_g_overkill_ammo_charge_notice;
float autocvar_g_overkill_ammo_charge_limit;
+bool autocvar_g_overkill_healthmega_remove;
+bool autocvar_g_overkill_armormedium_remove;
+bool autocvar_g_overkill_armorbig_remove;
+bool autocvar_g_overkill_armorlarge_remove;
+
.vector ok_deathloc;
.float ok_spawnsys_timer;
.float ok_lastwep;
entity item = M_ARGV(0, entity);
if(item.ok_item)
- return;
+ return false;
switch(item.items)
{
- case ITEM_HealthMega.m_itemid: return !(autocvar_g_overkill_100h_anyway);
- case ITEM_ArmorMega.m_itemid: return !(autocvar_g_overkill_100a_anyway);
+ case ITEM_HealthMega.m_itemid: return autocvar_g_overkill_healthmega_remove;
+ case ITEM_ArmorMedium.m_itemid: return autocvar_g_overkill_armormedium_remove;
+ // WARNING: next two statements look wrong because of inconsistency between cvar names and code
+ // armor cvars need renaming to be consistent with their health counterparts
+ case ITEM_ArmorLarge.m_itemid: return autocvar_g_overkill_armorbig_remove;
+ case ITEM_ArmorMega.m_itemid: return autocvar_g_overkill_armorlarge_remove;
}
return true;