From: terencehill Date: Wed, 8 Jul 2020 16:24:02 +0000 (+0200) Subject: Don't play the teamkill sound at the beginning of the next round if a player was... X-Git-Tag: xonotic-v0.8.5~892 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=7a25d5b49fd498b0d33a8babb7a3acd8e65c0dc6 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 --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index ea2a62977a..2c687286b7 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)) {