From: terencehill Date: Sat, 31 Dec 2016 17:27:45 +0000 (+0100) Subject: autocvar_g_grappling_hook can't use be used here as it doesn't work in the campaign... X-Git-Tag: xonotic-v0.8.2~336 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=e59649d46b275d7ce98ca1a3003e7929ba20f20d;p=xonotic%2Fxonotic-data.pk3dir.git autocvar_g_grappling_hook can't use be used here as it doesn't work in the campaign, it fixes #1848 --- diff --git a/qcsrc/common/mutators/mutator/hook/sv_hook.qc b/qcsrc/common/mutators/mutator/hook/sv_hook.qc index 45a2aee6b..badb2a6a1 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;