force cloak in CTS
authorFruitieX <fruitiex@gmail.com>
Thu, 9 Dec 2010 21:20:39 +0000 (23:20 +0200)
committerFruitieX <fruitiex@gmail.com>
Thu, 9 Dec 2010 21:20:39 +0000 (23:20 +0200)
qcsrc/server/miscfunctions.qc
qcsrc/server/teamplay.qc

index 7eb10de0f736c0e974b3dd20def2a09203027c1e..9bb48c09ce227d04c3b8c09f1bb58e994abb2c37 100644 (file)
@@ -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");
index 1c8f51734c7e894cdc9d24d845f0628bad9ed9b3..4905a8f8d91cc0ebfcb0ca194402561603c9f3bc 100644 (file)
@@ -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");