autocvar_g_grappling_hook can't use be used here as it doesn't work in the campaign...
authorterencehill <piuntn@gmail.com>
Sat, 31 Dec 2016 17:27:45 +0000 (18:27 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 31 Dec 2016 17:27:45 +0000 (18:27 +0100)
qcsrc/common/mutators/mutator/hook/sv_hook.qc

index 45a2aee..badb2a6 100644 (file)
@@ -1,8 +1,9 @@
 #include "sv_hook.qh"
 
-AUTOCVAR(g_grappling_hook, bool, false, "let players spawn with the grappling hook which allows them to pull themselves up");
+// can't use the autocvar as it doesn't work in the campaign
+//AUTOCVAR(g_grappling_hook, bool, false, "let players spawn with the grappling hook which allows them to pull themselves up");
 #ifdef SVQC
-REGISTER_MUTATOR(hook, autocvar_g_grappling_hook) {
+REGISTER_MUTATOR(hook, cvar("g_grappling_hook")) {
     MUTATOR_ONADD {
         g_grappling_hook = true;
         WEP_HOOK.ammo_factor = 0;