OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: johnnyboy on 01 Jun 2007, 20:04:00
-
I'm looking for a script that creates a man-sized water splash effect (when a man hits the water after falling from a helicopter for example).
I've looked at Nemesis6's Aircraft Water Splash script, and tried making some of his variables much smaller, but its not working out for me. I confess I don't understand the math to well...
Can anybody point me towards a solution?
Thanks.
-
Well, there's always Vektorboson's drop turorial (http://www.ofpec.com/ed_depot/admin_list2.php?type=tu&cat=sc) to have a look at but you there's no way around math when creating new effects with particle systems. When you're out of old school books try to search the wikipedia.
-
Where's Mandoble when we need him?
-
Thanks guys. I did a little expermenting and came up with something adequate (but not stellar).
I remembered seeing the puff of dust when the soldier hits the ground using the OFPEC Fast Rope script.
So I took those drop commands from the rope script, changed the shape from cl_basic to cl_water, and tweaked some size related parameters to make it about twice as big. It's not bad. Here's the snippet:
_pos = [getpos _man select 0, getpos _man select 1, 0]
_size = [0.8,2.0]
_particle = "\ca\data\cl_water";
drop [_particle,"","Billboard",100,1,_pos,[0,0,0],10,25.5,20,0.14, _size ,[[0.8,0.6,0.3,1],[0.8,0.6,0.4,1],[0.9,0.7,0.4,1],[0.8,0.7,0,0]],[0,1,0,1],0,0,"","",""];
-
use dat (http://www.ofpec.com/forum/index.php?topic=29070.0) tool 2 create ur own effects in ur own free taaaaaaaaaaaaime ;) :yes:
LCD OUT
-
You're funny LCD! If I had "free taaaaaaaaaaaaime", my Last Tango in Bagango mission would be finished!
I tried CSL's utility--which is very cool--but the example of the utility is using smoke, and without knowing how all the parameters work, I couldn't figure out how to splash particles up, then have them fall back down. All I did was make water rise in the air like smoke...
So anyway, I am satisfied with the splash I have now, and will move on.
-
_particle =["\Ca\Data\ParticleEffects\Watereffects\WaterEffects.p3d", 1, 0, 1];
_drop = "#particlesource" createVehicleLocal getPos player;
_drop setParticleCircle [1, [2,0.1,0]];
_drop setParticleParams [_particle,"","Billboard",100,1,[0,0,0],[0,0,0],2,25.50,20,0,[2,2,2],[[0.8,0.8,0.8,0.5],[0.8,0.8,0.8,1],[0.8,0.8,0.8,0.3],[0.8,0.8,0.8,0]],[1,1],0,0,"","", player];
_drop setDropInterval 0.01;
-
Perfect splash! Thanks a million Mando, u da man. :good:
-
Vektorboson's drop tutorial from the second link is N/A.
Is it still available at ofpec?
-
Yep, in the Ed but you have probably looked there by now ;)
Vektorboson's drop tutorial (http://www.ofpec.com/ed_depot/index.php?action=details&id=38&game=OFP)
-
ty Denz :good:
-
Where's Mandoble when we need him?