From: FruitieX Date: Thu, 9 Dec 2010 21:20:39 +0000 (+0200) Subject: force cloak in CTS X-Git-Tag: xonotic-v0.1.0preview~51^2~20^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=30f70d88870845046bfe4dd65eec4f50af60dfc3;p=xonotic%2Fxonotic-data.pk3dir.git force cloak in CTS --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 7eb10de0f..9bb48c09c 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -1209,6 +1209,8 @@ void readlevelcvars(void) sv_gentle = cvar("sv_gentle"); sv_foginterval = cvar("sv_foginterval"); g_cloaked = cvar("g_cloaked"); + if(g_cts) + g_cloaked = 1; // always enable cloak in CTS g_jump_grunt = cvar("g_jump_grunt"); g_footsteps = cvar("g_footsteps"); g_grappling_hook = cvar("g_grappling_hook"); diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 1c8f51734..4905a8f8d 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -517,7 +517,7 @@ void PrintWelcomeMessage(entity pl) modifications = strcat(modifications, ", No start weapons"); if(autocvar_sv_gravity < 800) modifications = strcat(modifications, ", Low gravity"); - if(g_cloaked) + if(cvar("g_cloaked")) modifications = strcat(modifications, ", Cloaked"); if(g_grappling_hook) modifications = strcat(modifications, ", Hook");