From: FruitieX Date: Sat, 11 Dec 2010 20:29:17 +0000 (+0200) Subject: only silence the killindicator centerprint when it's actually triggered by hitting... X-Git-Tag: xonotic-v0.1.0preview~51^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d196e0b6846e4175aa65b986ab985fc6fefb7656;p=xonotic%2Fxonotic-data.pk3dir.git only silence the killindicator centerprint when it's actually triggered by hitting the goal --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index fac1c0e57..ba6c2e578 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1272,7 +1272,7 @@ void KillIndicator_Think() ClientKill_Now(); // no oldself needed return; } - else if(g_cts) + else if(g_cts && self.health == 1) // health == 1 means that it's silent { self.nextthink = time + 1; self.cnt -= 1; @@ -1388,6 +1388,7 @@ void CTS_ClientKill (entity e) // silent version of ClientKill e.killindicator.think = KillIndicator_Think; e.killindicator.nextthink = time + (e.lip) * 0.05; e.killindicator.cnt = ceil(autocvar_g_cts_finish_kill_delay); + e.killindicator.health = 1; // this is used to indicate that it should be silent e.lip = 0; }