From 49a8666c60bb82a78f79df7756f11d822b2a149e Mon Sep 17 00:00:00 2001 From: k9er Date: Thu, 26 Sep 2024 15:20:12 +0000 Subject: [PATCH] Remove queued cts-related kills when crossing finish line multiple times --- qcsrc/server/clientkill.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/clientkill.qc b/qcsrc/server/clientkill.qc index 293f42308..92bbfde4b 100644 --- a/qcsrc/server/clientkill.qc +++ b/qcsrc/server/clientkill.qc @@ -222,7 +222,9 @@ void ClientKill_TeamChange(entity this, float targetteam) // 0 = don't change, - void ClientKill_Silent(entity this, float _delay) { - this.killindicator = new(killindicator); + // overrides queued silent killindicators + if (!this.killindicator || this.killindicator.count != 1) + this.killindicator = new(killindicator); this.killindicator.owner = this; setthink(this.killindicator, KillIndicator_Think); this.killindicator.nextthink = time + (this.lip) * 0.05; -- 2.39.2