PDA

View Full Version : create own p3d at impact



Baraka
Feb 29 2012, 05:03
Hi there.

I need help with creating particles for an weapon impact for my cal.68 mod.
The goal is to create an splash object at impact like this:
http://img.ehowcdn.com/article-page-main/ehow/images/a05/3q/mg/make-paintball-bunker-800x800.jpg

The effect is NOT needet at players, only with static things (bunker, buildings, trees...)
Can be an image overlay or an p3d object, i don´t care which.
Trying to get this for 1 year now. I´m the noobiest lamest scripting duck on earth i guess.

What i have now is an smoke cloud which appears for 2 seconds. Guess it´s from the vanilla blood setting.
This is from my weapon config. It´s not from me (in fact, everytime i touch it, it crashes :o)

};
};
};

class CfgCloudlets {
class Blood;
class cal68_impact_red: Blood {
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
particleFSLoop = 0;
size[] = {0.3,0.5};
color[] = {{0.0,1,1,1},{0.0,1,1,0.1}};
};
class cal68_impact_green: Blood {
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
particleFSLoop = 0;
size[] = {0.3,0.5};
color[] = {{0.0,1,0.0,1},{0.0,1,0.0,0.1}};

};
class cal68_impact_yellow: Blood {
particleFSNtieth = 16;
particleFSIndex = 12;
particleFSFrameCount = 8;
particleFSLoop = 0;
size[] = {0.3,0.5};
color[] = {{1,1,0,1},{1,1,0,0.1}};
};
};

class cal68_impact_red {
class cal68_impact_red {
position[] = {0,0,0};
simulation = "particles";
type = "cal68_impact_red";
intensity = 1;
interval = 1;
lifeTime = 2;
};
};
class cal68_impact_green {
class cal68_impact_green {
position[] = {0,0,0};
simulation = "particles";
type = "cal68_impact_green";
intensity = 1;
interval = 1;
lifeTime = 99;




};
};
class cal68_impact_yellow {
class cal68_impact_yellow {
position[] = {0,0,0};
simulation = "particles";
type = "cal68_impact_yellow";
intensity = 1;
interval = 1;
lifeTime = 2;
};
};

There are 3 colours because i have different ammunition (balls) and it´s nicer when each team has it´s own colour
I have made an splash object in O2, but as said i can´t get it work.
So please, if you know a solution let me now--your Karma will increase in the sky.

Edit: This what it looks now: http://s1.directupload.net/images/120229/temp/whmp9mjz.jpg (http://s1.directupload.net/file/d/2815/whmp9mjz_jpg.htm)

One of this balls should replace the smoke, of as an static one: http://s1.directupload.net/images/120229/temp/x9c6gb86.jpg (http://s1.directupload.net/file/d/2815/x9c6gb86_jpg.htm)