From f292d69be046b4616b762ccc515b573bb5f1d517 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 3 Aug 2011 13:23:54 +0300 Subject: [PATCH] I'm bored. Add some ground impact particle effects ^^ --- data/effectinfo.txt | 54 +++++++++++++++++++++++++++++++++ data/qcsrc/server/cl_physics.qc | 6 ++++ 2 files changed, 60 insertions(+) diff --git a/data/effectinfo.txt b/data/effectinfo.txt index 672a8c90..8ab32a01 100644 --- a/data/effectinfo.txt +++ b/data/effectinfo.txt @@ -4871,3 +4871,57 @@ size 15 20 alpha 75 192 400 color 0x000000 0x408000 originjitter 25 25 25 + +// dirt ground effect +// used in: cl_physics.qc: pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1); +effect ground_dirt +countabsolute 5 +type alphastatic +tex 0 8 +size 2 5 +sizeincrease 15 +alpha 50 128 75 +gravity -0.01 +color 0x000000 0xcc9966 +originjitter 20 20 5 +// debris +effect ground_dirt +notunderwater +count 5 +type alphastatic +tex 66 68 +color 0x000000 0x886644 +size 1 2 +alpha 450 750 300 +gravity 1.3 +airfriction 0.5 +bounce 1.6 +velocityjitter 124 124 324 +rotate -180 180 -1000 1000 + +// metal ground effect +// used in: cl_physics.qc: pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1); +effect ground_metal +countabsolute 5 +type alphastatic +tex 0 8 +size 3 6 +sizeincrease 10 +alpha 25 64 50 +gravity -0.01 +color 0x000000 0x886666 +originjitter 20 20 5 +// sparls +effect ground_metal +count 10 +type spark +tex 41 41 +color 0xFFCC22 0xFF4422 +size 2 2 +alpha 255 255 112 +bounce 1.4 +stretchfactor 0.5 +velocityjitter 200 200 400 +velocitymultiplier 2 +airfriction 2 +gravity 1 diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index df1c3a45..5f3ebe4c 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -861,9 +861,15 @@ void SV_PlayerPhysics() if not(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOSTEPS) { if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS) + { GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND); + pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1); + } else + { GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND); + pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1); + } } } } -- 2.39.2