1 #include "sv_melee_only.qh"
3 REGISTER_MUTATOR(melee_only, cvar("g_melee_only") && !cvar("g_instagib") && !cvar("g_overkill") && !g_nexball);
5 MUTATOR_HOOKFUNCTION(melee_only, SetStartItems, CBC_ORDER_LAST)
7 start_ammo_shells = warmup_start_ammo_shells = 0;
8 start_weapons = warmup_start_weapons = WEPSET(SHOTGUN);
11 MUTATOR_HOOKFUNCTION(melee_only, ForbidThrowCurrentWeapon)
16 MUTATOR_HOOKFUNCTION(melee_only, FilterItem)
18 entity item = M_ARGV(0, entity);
22 case ITEM_HealthSmall:
30 MUTATOR_HOOKFUNCTION(melee_only, BuildMutatorsString)
32 M_ARGV(0, string) = strcat(M_ARGV(0, string), ":MeleeOnly");
35 MUTATOR_HOOKFUNCTION(melee_only, BuildMutatorsPrettyString)
37 M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Melee Only Arena");