]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 45a2aee6b89edb16ebadf75cda8606dd233ec268..badb2a6a14165c3c1b9a3ce9cf52f54bf29f097c 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;