From: k9er Date: Thu, 26 Sep 2024 15:20:12 +0000 (+0000) Subject: Remove queued cts-related kills when crossing finish line multiple times X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=49a8666c60bb82a78f79df7756f11d822b2a149e;p=xonotic%2Fxonotic-data.pk3dir.git Remove queued cts-related kills when crossing finish line multiple times --- 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;