tracebox(self.origin, self.mins, self.maxs, self.origin - '0 0 1', MOVE_NOMONSTERS, self);\r
if not(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOSTEPS)\r
{\r
- if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS)\r
- {\r
- GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, VOL_BASE);\r
- pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1);\r
- }\r
- else\r
- {\r
- 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
+ {\r
GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1));\r
+ pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1);\r
+ }\r
else\r
+ {\r
GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1));\r
+ pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1);\r
+ }\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
+ {\r
+ GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, VOL_BASE);\r
+ pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1);\r
+ }\r
else\r
- GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE, 1));\r
+ {\r
+ GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, VOL_BASE);\r
+ pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1);\r
+ }\r
}\r
}\r
}\r
else\r
{\r
if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS)\r
- GlobalSound(globalsound_metalstep, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE, 1));\r
+ GlobalSound(globalsound_metalstep, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, VOL_BASE);\r
else\r
- GlobalSound(globalsound_step, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE, 1));\r
+ GlobalSound(globalsound_step, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, VOL_BASE);\r
}\r
}\r
}\r