1 #include "sv_melee_only.qh"
3 #include "../overkill/sv_overkill.qh"
5 string autocvar_g_melee_only;
6 REGISTER_MUTATOR(melee_only, expr_evaluate(autocvar_g_melee_only) && !MUTATOR_IS_ENABLED(mutator_instagib) && !MUTATOR_IS_ENABLED(ok) && !MapInfo_LoadedGametype.m_weaponarena);
8 MUTATOR_HOOKFUNCTION(melee_only, SetStartItems, CBC_ORDER_LAST)
10 start_ammo_shells = warmup_start_ammo_shells = 0;
11 start_weapons = warmup_start_weapons = WEPSET(SHOTGUN);
14 MUTATOR_HOOKFUNCTION(melee_only, SetWeaponArena)
16 // turn weapon arena off
17 M_ARGV(0, string) = "off";
20 MUTATOR_HOOKFUNCTION(melee_only, ForbidRandomStartWeapons)
25 MUTATOR_HOOKFUNCTION(melee_only, ForbidThrowCurrentWeapon)
30 MUTATOR_HOOKFUNCTION(melee_only, FilterItemDefinition)
32 entity definition = M_ARGV(0, entity);
36 case ITEM_HealthSmall:
44 MUTATOR_HOOKFUNCTION(melee_only, BuildMutatorsString)
46 M_ARGV(0, string) = strcat(M_ARGV(0, string), ":MeleeOnly");
49 MUTATOR_HOOKFUNCTION(melee_only, BuildMutatorsPrettyString)
51 M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Melee Only Arena");