]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Don't play fall sound for dead players
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 29 Sep 2010 22:44:37 +0000 (01:44 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 29 Sep 2010 22:44:37 +0000 (01:44 +0300)
data/qcsrc/server/sv_main.qc

index 53c8d95f18daa06acf1a3eebec8d4bc0a17029cf..02ebff8c7bdde04468b53f5d4c5fc83117853861 100644 (file)
@@ -79,7 +79,8 @@ void CreatureFrame (void)
                                        Damage (self, world, world, dm, DEATH_FALL, self.origin, '0 0 0');\r
                                        // this must be allowed to cut the normal pain sounds (played after them and on the same channel)\r
                                        // there's no way to detect falling damage and prevent the pain sounds for this to be played instead\r
-                                       PlayerSound(self, playersound_fall, CHAN_PAIN, VOICETYPE_PLAYERSOUND);\r
+                                       if(self.health > 0)\r
+                                               PlayerSound(self, playersound_fall, CHAN_PAIN, VOICETYPE_PLAYERSOUND);\r
                                }\r
                                else if(vlen(self.velocity) > 100000 && cvar("developer"))\r
                                {\r