From: MirceaKitsune Date: Sat, 3 Mar 2012 14:40:52 +0000 (+0200) Subject: Actually, make ground impact particle amount depend on player size too X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea0bc467979420bf8aa6c3c8c176bc4cb270485a;p=voretournament%2Fvoretournament.git Actually, make ground impact particle amount depend on player size too --- diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 505fde7a..3dd65f7c 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -871,12 +871,12 @@ void SV_PlayerPhysics() if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS) { GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1)); - pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1); + pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', self.scale); } else { GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND, bound(0, VOL_BASE * (1 - playersize_micro(self)), 1)); - pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1); + pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', self.scale); } sound(self, CHAN_AUTO, "misc/macro_hitground.wav", bound(0, VOL_BASE * playersize_macro(self), 1), ATTN_NORM); }