]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Same for the falling sounds
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 3 Mar 2012 14:20:55 +0000 (16:20 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 3 Mar 2012 14:20:55 +0000 (16:20 +0200)
data/qcsrc/server/cl_physics.qc
data/qcsrc/server/sv_main.qc

index 69bd25db64f8fd1c7f9c9d87e1a2042dab81bb23..6f0a86127988ba4577aa0820d300b8513b94a245 100644 (file)
@@ -876,6 +876,22 @@ void SV_PlayerPhysics()
                                        GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, VOL_BASE);\r
                                        pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1);\r
                                }\r
+\r
+                               if(cvar("g_healthsize"))\r
+                               {\r
+                                       if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS)\r
+                                               GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1));\r
+                                       else\r
+                                               GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1));\r
+                                       sound(self, CHAN_AUTO, "misc/macro_hitground.wav", bound(0, VOL_BASE * playersize_macro(self), 1), ATTN_NORM);\r
+                               }\r
+                               else\r
+                               {\r
+                                       if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS)\r
+                                               GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE, 1));\r
+                                       else\r
+                                               GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE, 1));\r
+                               }\r
                        }\r
                }\r
        }\r
index 25eaaf9356d8f8be66a9c15e40247330e4bd8f2d..52a03c234b50d13605970a75632b4effa7a90ed7 100644 (file)
@@ -113,7 +113,7 @@ void CreatureFrame (void)
                                                                GlobalSound(globalsound_metalstep, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1));\r
                                                        else\r
                                                                GlobalSound(globalsound_step, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1));\r
-                                                       sound(self, CHAN_AUTO, "misc/macro_footstep.wav", bound(0, VOL_BASE * normal_to_macro, 1), ATTN_NORM);\r
+                                                       sound(self, CHAN_AUTO, "misc/macro_footstep.wav", bound(0, VOL_BASE * playersize_macro(self), 1), ATTN_NORM);\r
                                                }\r
                                                else\r
                                                {\r