From: MirceaKitsune Date: Wed, 29 Sep 2010 22:44:37 +0000 (+0300) Subject: Don't play fall sound for dead players X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=ef7d4e136051cce72542a07291910e4b249d0078;p=voretournament%2Fvoretournament.git Don't play fall sound for dead players --- diff --git a/data/qcsrc/server/sv_main.qc b/data/qcsrc/server/sv_main.qc index 53c8d95f..02ebff8c 100644 --- a/data/qcsrc/server/sv_main.qc +++ b/data/qcsrc/server/sv_main.qc @@ -79,7 +79,8 @@ void CreatureFrame (void) Damage (self, world, world, dm, DEATH_FALL, self.origin, '0 0 0'); // this must be allowed to cut the normal pain sounds (played after them and on the same channel) // there's no way to detect falling damage and prevent the pain sounds for this to be played instead - PlayerSound(self, playersound_fall, CHAN_PAIN, VOICETYPE_PLAYERSOUND); + if(self.health > 0) + PlayerSound(self, playersound_fall, CHAN_PAIN, VOICETYPE_PLAYERSOUND); } else if(vlen(self.velocity) > 100000 && cvar("developer")) {