Jump to content
Sign in to follow this  
AnimalMother92

Eagle Wing dust/ash

Recommended Posts

Was digging through the Eagle Wing files and found the code related to the cool ash and dust effects

from the second mission after the nuke.

//--- Wind & Dust
[] spawn {
waituntil {isplayer brown};
setwind [0.201112,0.204166,true];
while {true} do {
	_ran = ceil random 5;
	playsound format ["wind_%1",_ran];
	_obj = vehicle player;
	_pos = position _obj;

	//--- Dust
		setwind [0.201112*2,0.204166*2,false];
	_velocity = [random 10,random 10,-1];
	_color = [1.0, 0.9, 0.8];
	_alpha = 0.02 + random 0.02;
	_ps = "#particlesource" createVehicleLocal _pos;  
	_ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 8], "", "Billboard", 1, 3, [0, 0, -6], _velocity, 1, 1.275, 1, 0, [9], [_color + [0], _color + [_alpha], _color + [0]], [1000], 1, 0, "", "", _obj];
	_ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
	_ps setParticleCircle [0.1, [0, 0, 0]];
	_ps setDropInterval 0.01;

	sleep (random 1);
	deletevehicle _ps;
	_delay = 10 + random 20;
	sleep _delay;

};
};

//--- Ash
[] spawn {
waituntil {isplayer brown};
_pos = position player;
_parray = [
/* 00 */		["\Ca\Data\ParticleEffects\Universal\Universal", 16, 12, 8, 1],//"\Ca\Data\cl_water",
/* 01 */		"",
/* 02 */		"Billboard",
/* 03 */		1,
/* 04 */		4,
/* 05 */		[0,0,0],
/* 06 */		[0,0,0],
/* 07 */		1,
/* 08 */		0.000001,
/* 09 */		0,
/* 10 */		1.4,
/* 11 */		[0.05,0.05],
/* 12 */		[[0.1,0.1,0.1,1]],
/* 13 */		[0,1],
/* 14 */		0.2,
/* 15 */		1.2,
/* 16 */		"",
/* 17 */		"",
/* 18 */		vehicle player
];
_snow = "#particlesource" createVehicleLocal _pos;  
_snow setParticleParams _parray;
_snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
_snow setParticleCircle [0.0, [0, 0, 0]];
_snow setDropInterval 0.01;

_oldPlayer = vehicle player;
while {true} do {
	waituntil {vehicle player != _oldPlayer};
	_parray set [18,vehicle player];
	_snow setParticleParams _parray;
	_oldPlayer = vehicle player;
};
};

Goes in the mission init file. Ash is working great for me, oddly I don't see any dust effect :confused:

Obviously, the player name must be changed. Hopefully someone will find this useful. And if you figure out the dust let me know :)

Share this post


Link to post
Share on other sites

I used this in a few DM missions I made last month. I'm pretty sure the dust worked too. I didn't change a thing, I just cut and paste... I thought it all worked fine.

Anyways, I agree... it's a really nice effect for certain missions.

EDIT - you said I need to change player name, I thought it worked as is... but unfortunately my testing team has been slacking lately (me)... but it did work for me on a dedicated last time I tried it.

Edited by Mosh
more info

Share this post


Link to post
Share on other sites

I cant seem to get the dust working either, the wind and ash works without any glitches, but no dust. I am using the parameters in the above code segment without any changes.

Any tips would be greatly appriciated :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×