]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
I'm bored. Add some ground impact particle effects ^^
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 3 Aug 2011 10:23:54 +0000 (13:23 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 3 Aug 2011 10:23:54 +0000 (13:23 +0300)
data/effectinfo.txt
data/qcsrc/server/cl_physics.qc

index 672a8c90d2f45aafe87b4c81e1ff14c7ec611a58..8ab32a0144dda982d235b656e55016e38feddc96 100644 (file)
@@ -4871,3 +4871,57 @@ size 15 20
 alpha 75 192 400\r
 color 0x000000 0x408000\r
 originjitter 25 25 25\r
+\r
+// dirt ground effect\r
+// used in: cl_physics.qc:     pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1);\r
+effect ground_dirt\r
+countabsolute 5\r
+type alphastatic\r
+tex 0 8\r
+size 2 5\r
+sizeincrease 15\r
+alpha 50 128 75\r
+gravity -0.01\r
+color 0x000000 0xcc9966\r
+originjitter 20 20 5\r
+// debris\r
+effect ground_dirt\r
+notunderwater\r
+count 5\r
+type alphastatic\r
+tex 66 68\r
+color 0x000000 0x886644\r
+size 1 2\r
+alpha 450 750 300\r
+gravity 1.3\r
+airfriction 0.5\r
+bounce 1.6\r
+velocityjitter 124 124 324\r
+rotate -180 180 -1000 1000\r
+\r
+// metal ground effect\r
+// used in: cl_physics.qc:     pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1);\r
+effect ground_metal\r
+countabsolute 5\r
+type alphastatic\r
+tex 0 8\r
+size 3 6\r
+sizeincrease 10\r
+alpha 25 64 50\r
+gravity -0.01\r
+color 0x000000 0x886666\r
+originjitter 20 20 5\r
+// sparls\r
+effect ground_metal\r
+count 10\r
+type spark\r
+tex 41 41\r
+color 0xFFCC22 0xFF4422\r
+size 2 2\r
+alpha 255 255 112\r
+bounce 1.4\r
+stretchfactor 0.5\r
+velocityjitter 200 200 400\r
+velocitymultiplier 2\r
+airfriction 2\r
+gravity 1\r
index df1c3a458a88cf48de4c1fa80d17ab1530758b7e..5f3ebe4cd125b7ebae94a6a800af79873a5ae820 100644 (file)
@@ -861,9 +861,15 @@ void SV_PlayerPhysics()
                        if not(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOSTEPS)\r
                        {\r
                                if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_METALSTEPS)\r
+                               {\r
                                        GlobalSound(globalsound_metalfall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND);\r
+                                       pointparticles(particleeffectnum("ground_metal"), self.origin, '0 0 0', 1);\r
+                               }\r
                                else\r
+                               {\r
                                        GlobalSound(globalsound_fall, CHAN_PLAYER, VOICETYPE_PLAYERSOUND);\r
+                                       pointparticles(particleeffectnum("ground_dirt"), self.origin, '0 0 0', 1);\r
+                               }\r
                        }\r
                }\r
        }\r