1 #include "sv_melee_only.qh"
3 string autocvar_g_melee_only;
4 REGISTER_MUTATOR(melee_only, expr_evaluate(autocvar_g_melee_only) && !cvar("g_instagib") && !cvar("g_overkill") && !g_nexball);
6 MUTATOR_HOOKFUNCTION(melee_only, SetStartItems, CBC_ORDER_LAST)
8 start_ammo_shells = warmup_start_ammo_shells = 0;
9 start_weapons = warmup_start_weapons = WEPSET(SHOTGUN);
12 MUTATOR_HOOKFUNCTION(melee_only, SetWeaponArena)
14 // turn weapon arena off
15 M_ARGV(0, string) = "off";
18 MUTATOR_HOOKFUNCTION(melee_only, ForbidRandomStartWeapons)
23 MUTATOR_HOOKFUNCTION(melee_only, ForbidThrowCurrentWeapon)
28 MUTATOR_HOOKFUNCTION(melee_only, FilterItemDefinition)
30 entity definition = M_ARGV(0, entity);
34 case ITEM_HealthSmall:
42 MUTATOR_HOOKFUNCTION(melee_only, BuildMutatorsString)
44 M_ARGV(0, string) = strcat(M_ARGV(0, string), ":MeleeOnly");
47 MUTATOR_HOOKFUNCTION(melee_only, BuildMutatorsPrettyString)
49 M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Melee Only Arena");