]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/hook/sv_hook.qc
autocvar_g_grappling_hook can't use be used here as it doesn't work in the campaign...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / hook / sv_hook.qc
index b5a196c51131e7103db9f818991857c4eecb7c0f..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;