]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Particle effects for metal and stone impacts
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 10:03:05 +0000 (13:03 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 10:03:05 +0000 (13:03 +0300)
effectinfo.txt
qcsrc/server/mutators/sandbox.qc

index 70f5fbb4c6f8fd7f03468ae16cc2e9e7bd80399d..5ae0161b081a0bcb7a710877de4b82700c7ec1dd 100644 (file)
@@ -6407,3 +6407,57 @@ velocityoffset 0 0 200
 airfriction 4
 color 0x4F4B46 0x000000
 rotate -180 180 -20 20
+
+// metal impact effect
+// used in qcsrc/server/mutators/sandbox.qc:   pointparticles(particleeffectnum("impact_metal"), self.origin, '0 0 0', 1);
+effect impact_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
+// sparks
+effect impact_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 300
+velocitymultiplier 2
+airfriction 2
+gravity 1
+
+// stone impact effect
+// used in qcsrc/server/mutators/sandbox.qc:   pointparticles(particleeffectnum("impact_stone"), self.origin, '0 0 0', 1);
+effect impact_stone
+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 impact_stone
+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
index 310b90fdab9b8ebe84da005d3dee4161631ffde2..40548de606e7cd60d19a900566248017ab31d42c 100644 (file)
@@ -22,9 +22,11 @@ void sandbox_Object_Touch()
        {
                case MATERIAL_METAL:
                        sound(self, CH_TRIGGER, strcat("object/impact_metal_", ftos(ceil(random() * 5)) , ".ogg"), VOL_BASE, ATTN_NORM);
+                       pointparticles(particleeffectnum("impact_metal"), self.origin, '0 0 0', 1);
                        break;
                case MATERIAL_STONE:
                        sound(self, CH_TRIGGER, strcat("object/impact_stone_", ftos(ceil(random() * 5)) , ".ogg"), VOL_BASE, ATTN_NORM);
+                       pointparticles(particleeffectnum("impact_stone"), self.origin, '0 0 0', 1);
                        break;
                case MATERIAL_WOOD:
                        sound(self, CH_TRIGGER, strcat("object/impact_wood_", ftos(ceil(random() * 5)) , ".ogg"), VOL_BASE, ATTN_NORM);