From e59649d46b275d7ce98ca1a3003e7929ba20f20d Mon Sep 17 00:00:00 2001
From: terencehill <piuntn@gmail.com>
Date: Sat, 31 Dec 2016 18:27:45 +0100
Subject: [PATCH] autocvar_g_grappling_hook can't use be used here as it
 doesn't work in the campaign, it fixes #1848

---
 qcsrc/common/mutators/mutator/hook/sv_hook.qc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/qcsrc/common/mutators/mutator/hook/sv_hook.qc b/qcsrc/common/mutators/mutator/hook/sv_hook.qc
index 45a2aee6b8..badb2a6a14 100644
--- a/qcsrc/common/mutators/mutator/hook/sv_hook.qc
+++ b/qcsrc/common/mutators/mutator/hook/sv_hook.qc
@@ -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;
-- 
2.39.5