#pragma once #include #include void ka_Initialize(); IntrusiveList g_kaballs; REGISTER_MUTATOR(ka, false) { MUTATOR_STATIC(); MUTATOR_ONADD { GameRules_scoring(0, SFL_SORT_PRIO_PRIMARY, 0, { field(SP_KEEPAWAY_PICKUPS, "pickups", 0); field(SP_KEEPAWAY_CARRIERKILLS, "bckills", 0); field(SP_KEEPAWAY_BCTIME, "bctime", SFL_SORT_PRIO_SECONDARY); }); ka_Initialize(); } return false; } const int KA_BALL_COUNT = 1; entity ka_Handler; void(entity this) havocbot_role_ka_carrier; void(entity this) havocbot_role_ka_collector; void ka_DamageEvent(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force); void ka_TouchEvent(entity this, entity toucher); void ka_DropEvent(entity plyr);