]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove queued cts-related kills when crossing finish line multiple times
authork9er <k9wolf@pm.me>
Thu, 26 Sep 2024 15:20:12 +0000 (15:20 +0000)
committerterencehill <piuntn@gmail.com>
Thu, 26 Sep 2024 15:20:12 +0000 (15:20 +0000)
qcsrc/server/clientkill.qc

index 293f423084031d731d603d9ca45ae378e760928d..92bbfde4bb335f5a4aa85fe1a816c99fe33cf2e6 100644 (file)
@@ -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;