From d196e0b6846e4175aa65b986ab985fc6fefb7656 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Sat, 11 Dec 2010 22:29:17 +0200 Subject: [PATCH] only silence the killindicator centerprint when it's actually triggered by hitting the goal --- qcsrc/server/cl_client.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index fac1c0e571..ba6c2e5781 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; } -- 2.39.2