From 8bc4d43583f41957fa69320c798003f202267912 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 27 Oct 2011 13:03:05 +0300 Subject: [PATCH] Particle effects for metal and stone impacts --- effectinfo.txt | 54 ++++++++++++++++++++++++++++++++ qcsrc/server/mutators/sandbox.qc | 2 ++ 2 files changed, 56 insertions(+) diff --git a/effectinfo.txt b/effectinfo.txt index 70f5fbb4c..5ae0161b0 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -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 diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 310b90fda..40548de60 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -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); -- 2.39.2