Jump to content
Sign in to follow this  
SGT Fuller

Looking for help with particle upgrade for AC-130

Recommended Posts

Hello i dont know if many have used my AC-130 but im trying to change the color of the AC-130's guns. In the script they use the same animation just one simulates rapid fire for the 25mm gun. Looking from the ground you can hardly see the tracers as they are appear at all. What i would really like is for the 25mm to actually look like tracer bullets flying through the air to the target. Like the ac-130s normal mode

. The L60 and the M102 dont look to bad but again you cannot see them. So if anybody is good with particle effects or the know how please let me know below

/*	ac130_createParticleSource.sqf for AC130-Script
*	@author: LurchiDerLurch
*	@param: nothing
*	@return: nothing
*	@description:
*/

_shell setVelocity _vel;

if (LDL_showParticles) then
{
//Flash
if (_weapon != 0) then
{
	for [{_i = 1},{_i < 3 + random 2},{_i = _i + 1}] do
	{
		drop [["\A3\Data_F\ParticleEffects\Universal\Universal",16,2,32],
		"", "Billboard", 1,(0.12 + 0.015*_i),
		//[-0.5 + random 1, -0.5 + random 1, -0.5 + random 1],
		_position,
		[2.5, 2.5, 2.5],
		0, 10, 7.9, 0.075,
		[2, _i],
		[[1, 1, 1, -2],[1, 1, 1, -2], [1, 1, 1, -1], [1, 1, 1, -0]],
		[3 + random 2], 1, 0, "", "", ""];
	};
};

//Smoke
_j = 8;
_color = [[0.6,0.6,0.6,0],[0.7,0.7,0.7,0.8],[0.7,0.7,0.7,0.7],[0.8,0.8,0.8,0.35],[0.9,0.9,0.9,0.15], [1,1,1,0]];

if(_weapon == 0) then
{
	_j = 0;
	_color = [[0.6,0.6,0.6,0],[0.7,0.7,0.7,0.8],[0.7,0.7,0.7,0.3],[0.8,0.8,0.8,0.35],[0.9,0.9,0.9,0.15], [1,1,1,0]];
};

for [{_i = 1},{_i < _j + random 4},{_i = _i + 1}] do
{
	drop [["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 48],
	"", "Billboard", 1, 4+random 2,
	_position,
	[random 1 - 1, _i, random 1 - 1],
	1, 1, 0.80, 0.4,
	[2,(3+random 2)*_i],
	_color,
	[2,0.7,0.5],0.1,0.1,"","", ""];
};

//Tracer
_color = [[1,0.5,0.1,0.2],[1,0.5,0.1,0],[1,0.5,0.1,0]];
_size = [1];
_weight = 80.0;
_volume = 0.005;
_rubbing = 0.001;

if (_weapon == 0) then
{
	_size = [0.5];
	_tracer = "#particlesource" createVehicleLocal getPos _shell;
	_tracer setParticleParams ["\A3\Data_F\koulesvetlo","","Billboard",100,0.2,[0,0,0],[0,0,0],0,_weight,_volume,_rubbing,_size,_color,[0],0,0,"","", _shell];
	_tracer setDropInterval 0.001;
}
else
{
	_tracer = "#particlesource" createVehicleLocal getPos _shell;
	_tracer setParticleParams ["\A3\Data_F\koulesvetlo","","Billboard",100,0.2,[0,0,0],[0,0,0],0,_weight,_volume,_rubbing,_size,_color,[0],0,0,"","", _shell];
	_tracer setDropInterval 0.001;

	_smoketrail = "#particlesource" createVehicleLocal getPos _shell;
	_smoketrail setParticleParams ["\A3\Data_F\missileSmoke","","Billboard",100,0.5,[0,0,0],[0,0,0],0,0.6,0.5,0.05,[1,2.5,3,3.5],[[1,1,1,0.05],[1,1,1,0.05],[0,0,0,0]],[0],0,0,"","",_shell];
	_smoketrail setDropInterval 0.002;
};

sleep 0.05; //error occurs because not in scheduled environment for those who receive it

//Light
if(daytime > 20 || daytime < 6) then
{
	_light = "#lightpoint" createVehicleLocal _position;
	if (_weapon == 0) then
	{
		_light setLightBrightness 0.2;
	}
	else
	{
		_light setLightBrightness 0.4;
	};
	_light setLightAmbient[0.0, 0.0, 0.0];
	_light setLightColor[1.0, 0.5, 0.0];
	_light lightAttachObject [_shell, [0,0,0]];

	waitUntil{(!alive _shell)};

	if(_weapon == 0) then
	{
		sleep 1;
	}
	else
	{
		sleep 1 + random 2;
	};

	deleteVehicle _light;
};
};

Share this post


Link to post
Share on other sites

Why do you use a script to create particles and tracers? Why do you not use a gun turret on the plane and a proper weapon/turret config?

tracers have nothing to do with particles (and particles are performance intensive...). So unless you want a smoke trail you don't need particles.

Modify the config values for the ammo for them to be visible.

nvgonly = 0; to make them visible during day

you also need to play around with

tracerscale = 1;

tracerstarttime = 0;

tracerendtime = 0.5;

so that the tracer is visible during the entire range

in cfgmagazine use

tracersevery = 1; to give every shot a tracer

Share this post


Link to post
Share on other sites

All this you see here is for the ac-130 orbit mode. Not the original version. If you open up the ldl_ac130 of my mod you will see what I'm talking about. It only uses magazines. In uploaded a video on my page of the ac-130 AI firing and you can't hardly see its weapons at all. I tried inheriting the base ac-130 weapons and magazines but it didn't work out

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  

×