From 7a25d5b49fd498b0d33a8babb7a3acd8e65c0dc6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 8 Jul 2020 18:24:02 +0200 Subject: [PATCH] Don't play the teamkill sound at the beginning of the next round if a player was hit by a teammate at the very end of the round --- qcsrc/server/client.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index ea2a62977..2c687286b 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2712,6 +2712,9 @@ void PlayerPostThink (entity this) this.solid = SOLID_NOT; this.takedamage = DAMAGE_NO; set_movetype(this, MOVETYPE_NONE); + CS(this).teamkill_complain = 0; + CS(this).teamkill_soundtime = 0; + CS(this).teamkill_soundsource = NULL; } if (IS_PLAYER(this)) { -- 2.39.2