From: Mario Date: Sat, 21 Apr 2018 05:19:58 +0000 (+1000) Subject: Grant campaign access to cloaked, new toys and nix X-Git-Tag: xonotic-v0.8.5~2182 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da528bdb56cded9e5a8ec11d89fa6f7c73105c52;p=xonotic%2Fxonotic-data.pk3dir.git Grant campaign access to cloaked, new toys and nix --- diff --git a/qcsrc/common/mutators/mutator/cloaked/sv_cloaked.qc b/qcsrc/common/mutators/mutator/cloaked/sv_cloaked.qc index a1fe27a87..5f9de3b7c 100644 --- a/qcsrc/common/mutators/mutator/cloaked/sv_cloaked.qc +++ b/qcsrc/common/mutators/mutator/cloaked/sv_cloaked.qc @@ -1,7 +1,7 @@ #include "sv_cloaked.qh" -string autocvar_g_cloaked; -REGISTER_MUTATOR(cloaked, expr_evaluate(autocvar_g_cloaked)); +//string autocvar_g_cloaked; +REGISTER_MUTATOR(cloaked, expr_evaluate(cvar_string("g_cloaked"))); float autocvar_g_balance_cloaked_alpha; diff --git a/qcsrc/common/mutators/mutator/new_toys/sv_new_toys.qc b/qcsrc/common/mutators/mutator/new_toys/sv_new_toys.qc index 1ecbf37ec..3ac652d78 100644 --- a/qcsrc/common/mutators/mutator/new_toys/sv_new_toys.qc +++ b/qcsrc/common/mutators/mutator/new_toys/sv_new_toys.qc @@ -70,11 +70,11 @@ roflsound "New toys, new toys!" sound. */ -string autocvar_g_new_toys; +//string autocvar_g_new_toys; bool nt_IsNewToy(int w); -REGISTER_MUTATOR(nt, expr_evaluate(autocvar_g_new_toys) && !autocvar_g_instagib && !cvar("g_overkill")) +REGISTER_MUTATOR(nt, expr_evaluate(cvar_string("g_new_toys")) && !autocvar_g_instagib && !cvar("g_overkill")) { MUTATOR_ONADD { diff --git a/qcsrc/common/mutators/mutator/nix/sv_nix.qc b/qcsrc/common/mutators/mutator/nix/sv_nix.qc index f67cf7870..e88ff9b55 100644 --- a/qcsrc/common/mutators/mutator/nix/sv_nix.qc +++ b/qcsrc/common/mutators/mutator/nix/sv_nix.qc @@ -1,6 +1,6 @@ #include "sv_nix.qh" -string autocvar_g_nix; +//string autocvar_g_nix; int autocvar_g_balance_nix_ammo_cells; int autocvar_g_balance_nix_ammo_plasma; int autocvar_g_balance_nix_ammo_fuel; @@ -36,7 +36,7 @@ float nix_nextweapon; bool NIX_CanChooseWeapon(int wpn); -REGISTER_MUTATOR(nix, expr_evaluate(autocvar_g_nix) && !autocvar_g_instagib && !cvar("g_overkill")) +REGISTER_MUTATOR(nix, expr_evaluate(cvar_string("g_nix")) && !autocvar_g_instagib && !cvar("g_overkill")) { MUTATOR_ONADD {