From ef7d4e136051cce72542a07291910e4b249d0078 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 30 Sep 2010 01:44:37 +0300 Subject: [PATCH] Don't play fall sound for dead players --- data/qcsrc/server/sv_main.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")) { -- 2.39.2