1 AUTOCVAR(g_grappling_hook, bool, false, _("let players spawn with the grappling hook which allows them to pull themselves up"));
3 REGISTER_MUTATOR(hook, autocvar_g_grappling_hook) {
5 g_grappling_hook = true;
6 WEP_HOOK.ammo_factor = 0;
8 MUTATOR_ONROLLBACK_OR_REMOVE {
9 g_grappling_hook = false;
10 WEP_HOOK.ammo_factor = 1;
14 MUTATOR_HOOKFUNCTION(hook, BuildMutatorsString)
16 ret_string = strcat(ret_string, ":grappling_hook");
19 MUTATOR_HOOKFUNCTION(hook, BuildMutatorsPrettyString)
21 ret_string = strcat(ret_string, ", Hook");
24 MUTATOR_HOOKFUNCTION(hook, BuildGameplayTipsString)
26 ret_string = strcat(ret_string, "\n\n^3grappling hook^8 is enabled, press 'e' to use it\n");
29 MUTATOR_HOOKFUNCTION(hook, PlayerSpawn)
32 self.offhand = OFFHAND_HOOK;
35 MUTATOR_HOOKFUNCTION(hook, FilterItem)
37 return self.weapon == WEP_HOOK.m_id;