From: Mario Date: Sun, 1 Nov 2020 11:35:52 +0000 (+1000) Subject: Don't play teleportation sounds on dead players X-Git-Tag: xonotic-v0.8.5~699 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8796194e2cb177455deb9b702c37c437ca313d10;p=xonotic%2Fxonotic-data.pk3dir.git Don't play teleportation sounds on dead players --- diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index b5fee52d5..fa0818283 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -551,6 +551,8 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, UNSET_ONGROUND(this); // dying animation this.deadflag = DEAD_DYING; + // don't play teleportation sounds + this.teleportable = TELEPORT_SIMPLE; STAT(MOVEVARS_SPECIALCOMMAND, this) = false; // sweet release