From 03f5fcc50b45fad9bf4f5feee989504b3a85db79 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 27 Oct 2011 13:30:39 +0300 Subject: [PATCH] Particles for wood and flesh impacts --- effectinfo.txt | 58 ++++++++++++++++++++++++++++++-- qcsrc/server/mutators/sandbox.qc | 2 ++ 2 files changed, 57 insertions(+), 3 deletions(-) diff --git a/effectinfo.txt b/effectinfo.txt index 5ae0161b0..06e097331 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -6428,7 +6428,7 @@ tex 41 41 color 0xFFCC22 0xFF4422 size 2 2 alpha 255 255 112 -bounce 1.4 +bounce 1.8 stretchfactor 0.5 velocityjitter 200 200 300 velocitymultiplier 2 @@ -6441,7 +6441,7 @@ effect impact_stone countabsolute 5 type alphastatic tex 0 8 -size 2 5 +size 3 6 sizeincrease 15 alpha 50 128 75 gravity -0.01 @@ -6458,6 +6458,58 @@ size 1 2 alpha 450 750 300 gravity 1.3 airfriction 0.5 -bounce 1.6 +bounce 1.2 velocityjitter 124 124 324 rotate -180 180 -1000 1000 + +// wood impact effect +// used in qcsrc/server/mutators/sandbox.qc: pointparticles(particleeffectnum("impact_wood"), self.origin, '0 0 0', 1); +effect impact_wood +countabsolute 5 +type alphastatic +tex 0 8 +size 3 6 +sizeincrease 10 +alpha 50 128 75 +gravity -0.01 +color 0x000000 0xcc9966 +originjitter 20 20 5 +// sparks +effect impact_wood +count 10 +type spark +tex 41 41 +color 0x221100 0x221100 +size 1 8 +alpha 255 255 75 +bounce 1.5 +velocityjitter 180 180 260 +velocitymultiplier 2 +airfriction 2 +gravity 1 + +// flesh impact effect +// used in qcsrc/server/mutators/sandbox.qc: pointparticles(particleeffectnum("impact_flesh"), self.origin, '0 0 0', 1); +effect impact_flesh +countabsolute 1 +type alphastatic +tex 0 8 +size 8 12 +alpha 100 256 400 +color 0x000000 0x420000 +originjitter 11 11 11 +// blood splash +effect impact_flesh +count 3 +type blood +tex 24 32 +size 2 6 +alpha 256 256 64 +color 0xA8FFFF 0xA8FFFFF +bounce -1 +airfriction 1 +liquidfriction 4 +velocityjitter 96 96 96 +velocitymultiplier 5 +staincolor 0x808080 0x808080 +staintex 16 24 diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 40548de60..971b0ab3b 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -30,9 +30,11 @@ void sandbox_Object_Touch() break; case MATERIAL_WOOD: sound(self, CH_TRIGGER, strcat("object/impact_wood_", ftos(ceil(random() * 5)) , ".ogg"), VOL_BASE, ATTN_NORM); + pointparticles(particleeffectnum("impact_wood"), self.origin, '0 0 0', 1); break; case MATERIAL_FLESH: sound(self, CH_TRIGGER, strcat("object/impact_flesh_", ftos(ceil(random() * 5)) , ".ogg"), VOL_BASE, ATTN_NORM); + pointparticles(particleeffectnum("impact_flesh"), self.origin, '0 0 0', 1); break; default: break; -- 2.39.2