]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't play teleportation sounds on dead players
authorMario <mario.mario@y7mail.com>
Sun, 1 Nov 2020 11:35:52 +0000 (21:35 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 1 Nov 2020 11:35:52 +0000 (21:35 +1000)
qcsrc/server/player.qc

index b5fee52d5324277a9130edea8571fc79d0fdad08..fa0818283aa55273a42b60e7bbd215e75d856b99 100644 (file)
@@ -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