]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/sv_main.qc
Enable falling sounds
[voretournament/voretournament.git] / data / qcsrc / server / sv_main.qc
index d43d849ee32afc92bc3e6a5a2ec80188a98ad856..53c8d95f18daa06acf1a3eebec8d4bc0a17029cf 100644 (file)
@@ -77,6 +77,9 @@ void CreatureFrame (void)
                                if (dm > 0)\r
                                {\r
                                        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
                                }\r
                                else if(vlen(self.velocity) > 100000 && cvar("developer"))\r
                                {\r