Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //gooncorp
- //2013
- debug = false;
- plane = (_this select 0);
- // 190 138 256 // 130 198 245
- ved = velocity plane;
- _tracker = true;
- _bullet = _this select 6;
- _dir=getdir _bullet;
- _planedir = getdir plane;
- _oldpos = [];
- //////
- bombtype = "Bo_Mk82";// change this for different bomb
- //////
- if ((_this select 4) != bombtype) exitwith {};
- if (debug) then {
- player globalchat format ["%1", (_this select 0)];
- };
- publicvariable "plane";
- if (debug) then {
- player globalchat format ["%1 is bombtype", bombtype];
- };
- if (debug) then {
- player globalchat "about to run";
- };
- //if (bombcount != 1 && bombcount != 2 && bombcount != 3 && bombcount != 4 || isnil bombcount) then {
- //bombcount = 0;
- //};
- if (isnil ("bombcount")) then {bombcount=0;} ;
- bombcount = bombcount + 1;
- if (bombcount >= 5) then {
- bombcount = 1;
- };
- if (debug) then {
- player globalchat format ["bombcount is %1", bombcount];
- };
- if (bombcount == 1) exitwith {
- while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
- if (debug) then {
- player globalchat "hit";};
- globalpos = _oldpos;
- glibilpos = _oldpos;
- ylobalpos = _oldpos;
- xlobalpos = _oldpos;
- publicvariable "globalpos";
- publicvariable "glibilpos";
- publicvariable "ylobalpos";
- publicvariable "xlobalpos";
- publicvariable "ved";
- dontrun = false;
- sleep .3;
- if (debug) then {
- player globalchat format ["bombcount is %1", bombcount];};
- [-2, {
- [] spawn {
- _pos = globalpos;
- p = ved select 0;
- z = ved select 1;
- p = p / 5;
- z = z / 5;
- _velocity = [1, 1, 1];
- _color = [.5, .2, 0];
- _alpha = 1;
- slight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
- slight6 setlightBrightness .4;
- slight6 setlightAmbient[.3, .1, 0];
- slight6 setlightColor[.3, .1, 0];
- _color = [1, 1, 1];
- if (!isnull ps1) then { deletevehicle ps1;};
- if (!isnull ps2) then { deletevehicle ps2;};
- if (!isnull ps3) then { deletevehicle ps3;};
- if (!isnull ps4) then { deletevehicle ps4;};
- if (!isnull ps5) then { deletevehicle ps5;};
- if (!isnull ps6) then { deletevehicle ps6;};
- if (!isnull ps7) then { deletevehicle ps7;};
- if (!isnull ps8) then { deletevehicle ps8;};
- ps1 = "#particlesource" createVehicleLocal _pos;
- ps1 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.11 + random .3], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
- ps1 setParticleCircle [0, [0, 0, -3]];
- ps1 setDropInterval .0001;
- _color = [.9, .2, 0];
- ps7 = "#particlesource" createVehicleLocal _pos;
- ps7 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 7, [0, 0, 0], [((ved select 0) / 4.8), ((ved select 1) / 4.8), 5],1, 1.7, 1, 0, [1 + random 1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
- ps7 setParticleCircle [0, [0, 0, -3]];
- ps7 setDropInterval .003;
- ps8 = "#particlesource" createVehicleLocal _pos;
- ps8 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.2], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
- ps8 setParticleCircle [0, [0, 0, -3]];
- ps8 setDropInterval .0004;
- _color = [.5, .2, 0];
- gs3 = "#particlesource" createVehicleLocal _pos;
- gs3 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], _velocity,1, 2, 1, 0, [.2 + random .1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- gs3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
- gs3 setParticleCircle [0, [0, 0, -3]];
- gs3 setDropInterval .005;
- _color = [.3, .1, 0];
- _velocity = [p, z, -.2];
- ps4 = "#particlesource" createVehicleLocal _pos;
- ps4 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 23, [0, 0, 2], _velocity,1, 1.34, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
- ps4 setParticleCircle [0, [0, 0, 0]];
- ps4 setvelocity ved;
- _velocity = [0, 0, 0];
- ps4 setDropInterval .005;
- _color = [.3, .1, .01];
- ps5 = "#particlesource" createVehicleLocal _pos;
- ps5 setdir _planedir;
- ps5 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 17, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 2.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- ps5 setParticleCircle [0, [15, 0, 0]];
- _color = [.01, .01, .01];
- ps6 = "#particlesource" createVehicleLocal _pos;
- ps6 setdir _planedir;
- ps6 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 45, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 9.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- ps6 setParticleCircle [0, [15, 0, 0]];
- ps6 setDropInterval .03;
- ps5 setDropInterval .01;
- _velocity = [3, 3, 3];
- ps2 = "#particlesource" createVehicleLocal _pos;
- ps2 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 6, [0, 0, 2], _velocity,1, 1.18, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- ps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
- ps2 setParticleCircle [0, [0, 0, 0]];
- ps2 setDropInterval .001;
- sleep .2;
- deletevehicle ps1;
- deletevehicle ps7;
- deletevehicle ps8;
- //if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [car1, 22, 1, false, true] spawn BIS_Effects_Burn;
- sleep .2;
- deletevehicle gs3;
- things = nearestObjects [globalpos, ["All"], 120];
- x = 0;
- deletevehicle ps3;
- {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (_x != plane && _x != driver plane) then {
- ps2 setpos getpos _x;
- ps6 setpos getpos _x;
- _x setdammage 2;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;
- };
- if (isserver) then {publicvariable "pilotscore";};
- } foreach things;
- oldpos1 = globalpos;
- sleep 1.2;
- newposx = globalpos select 0;
- newposy = globalpos select 1;
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- globalpos = [newposx, newposy, globalpos select 2];
- oldpos2 = globalpos;
- ps2 setpos globalpos;
- ps5 setpos globalpos;
- ps4 setpos globalpos;
- ps6 setpos globalpos;
- sleep .2;
- things = (globalpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- ps6 setpos getpos _x;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- slight7 = "#lightpoint" createVehicleLocal globalpos;
- slight7 setlightBrightness 1;
- slight7 setlightAmbient[1, .2, 0];
- slight7 setlightColor[1, .2, 0];
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- globalpos = [newposx, newposy, globalpos select 2];
- things = (globalpos) nearEntities [["All"],120];
- ps4 setpos globalpos;
- ps2 setpos globalpos;
- ps5 setpos globalpos;
- ps6 setpos globalpos;
- sleep 2;
- deletevehicle ps4;
- {
- sleep .2;
- ps2 setpos oldpos2;
- ps5 setpos oldpos2;
- if (_x != plane && _x != driver plane) then {
- ps6 setpos getpos _x;
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- ps2 setpos oldpos1;
- ps6 setpos oldpos1;
- ps5 setpos oldpos2;
- sleep 1;
- ps2 setpos oldpos2;
- ps6 setpos oldpos2;
- ps5 setpos oldpos2;
- slight8 = "#lightpoint" createVehicleLocal globalpos;
- slight8 setlightBrightness 3;
- slight8 setlightAmbient[1, 1, 1];
- slight8 setlightColor[1, 1, 1];
- sleep 5;
- dz = o;
- lightbrightness = 3;
- deletevehicle slight8;
- ps2 setpos globalpos;
- ps6 setpos globalpos;
- ps5 setpos globalpos;
- while {score (driver plane) < pilotscore} do {
- pilotscore = pilotscore + 1;
- };
- if (debug) then {hint format ["%1 is score " , pilotscore];};
- deletevehicle ps2;
- sleep 3;
- deletevehicle slight8;
- ps2 setpos oldpos1;
- ps6 setpos oldpos1;
- ps5 setpos oldpos1;
- sleep 3;
- sleep 4;
- things = (oldpos1) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- ps6 setpos oldpos2;
- deletevehicle ps2;
- sleep 4;
- ps6 setpos globalpos;
- ps5 setpos globalpos;
- sleep 4;
- things = (oldpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- ps6 setpos oldpos1;
- ps5 setpos oldpos1;
- sleep 4;
- ps6 setpos oldpos2;
- ps5 setpos oldpos2;
- sleep 4;
- things = (globalpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- ps6 setpos globalpos;
- ps5 setpos oldpos2;
- sleep 4;
- ps6 setpos oldpos1;
- ps5 setpos oldpos1;
- sleep 4;
- things = (oldpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- ps6 setpos oldpos2;
- deletevehicle ps5;
- sleep 10;
- things = (oldpos1) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- sleep 10;
- deletevehicle slight6;
- deletevehicle slight7;
- deletevehicle ps6;
- };
- }] call CBA_fnc_globalExecute;
- };
- if (bombcount == 2) exitwith {
- if ((_this select 4) != bombtype) exitwith {};
- while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
- if (debug) then {
- player globalchat "hit";};
- globalpos = _oldpos;
- glibilpos = _oldpos;
- ylobalpos = _oldpos;
- xlobalpos = _oldpos;
- publicvariable "globalpos";
- publicvariable "glibilpos";
- publicvariable "ylobalpos";
- publicvariable "xlobalpos";
- publicvariable "globalpos";
- publicvariable "ved";
- dontrun = false;
- sleep .3;
- if (debug) then {
- player globalchat format ["bombcount is %1", bombcount];};
- [-2, {
- [] spawn {
- _pos = glibilpos;
- p = ved select 0;
- z = ved select 1;
- p = p / 5;
- z = z / 5;
- _velocity = [1, 1, 1];
- _color = [.5, .2, 0];
- _alpha = 1;
- aslight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
- aslight6 setlightBrightness .4;
- aslight6 setlightAmbient[.3, .1, 0];
- aslight6 setlightColor[.3, .1, 0];
- _color = [1, 1, 1];
- if (!isnull aps1) then { deletevehicle aps1;};
- if (!isnull aps2) then { deletevehicle aps2;};
- if (!isnull aps3) then { deletevehicle aps3;};
- if (!isnull aps4) then { deletevehicle aps4;};
- if (!isnull aps5) then { deletevehicle aps5;};
- if (!isnull aps6) then { deletevehicle aps6;};
- if (!isnull aps7) then { deletevehicle aps7;};
- if (!isnull aps8) then { deletevehicle aps8;};
- aps1 = "#particlesource" createVehicleLocal _pos;
- aps1 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.11 + random .3], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
- aps1 setParticleCircle [0, [0, 0, -3]];
- aps1 setDropInterval .0001;
- _color = [.9, .2, 0];
- aps7 = "#particlesource" createVehicleLocal _pos;
- aps7 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 7, [0, 0, 0], [((ved select 0) / 4.8), ((ved select 1) / 4.8), 5],1, 1.7, 1, 0, [1 + random 1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
- aps7 setParticleCircle [0, [0, 0, -3]];
- aps7 setDropInterval .003;
- aps8 = "#particlesource" createVehicleLocal _pos;
- aps8 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.2], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
- aps8 setParticleCircle [0, [0, 0, -3]];
- aps8 setDropInterval .0004;
- _color = [.5, .2, 0];
- f3 = "#particlesource" createVehicleLocal _pos;
- f3 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], _velocity,1, 2, 1, 0, [.2 + random .1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- f3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
- f3 setParticleCircle [0, [0, 0, -3]];
- f3 setDropInterval .005;
- _color = [.3, .1, 0];
- _velocity = [p, z, -.2];
- aps4 = "#particlesource" createVehicleLocal _pos;
- aps4 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 23, [0, 0, 2], _velocity,1, 1.34, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
- aps4 setParticleCircle [0, [0, 0, 0]];
- aps4 setvelocity ved;
- _velocity = [0, 0, 0];
- aps4 setDropInterval .005;
- _color = [.3, .1, .01];
- aps5 = "#particlesource" createVehicleLocal _pos;
- aps5 setdir _planedir;
- aps5 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 17, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 2.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- aps5 setParticleCircle [0, [15, 0, 0]];
- _color = [.01, .01, .01];
- aps6 = "#particlesource" createVehicleLocal _pos;
- aps6 setdir _planedir;
- aps6 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 45, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 9.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- aps6 setParticleCircle [0, [15, 0, 0]];
- aps6 setDropInterval .03;
- aps5 setDropInterval .01;
- _velocity = [3, 3, 3];
- aps2 = "#particlesource" createVehicleLocal _pos;
- aps2 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 6, [0, 0, 2], _velocity,1, 1.18, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- aps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
- aps2 setParticleCircle [0, [0, 0, 0]];
- aps2 setDropInterval .001;
- sleep .2;
- deletevehicle aps1;
- deletevehicle aps7;
- deletevehicle aps8;
- //if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [car1, 22, 1, false, true] spawn BIS_Effects_Burn;
- sleep .2;
- deletevehicle f3;
- deletevehicle aps3;
- things = nearestObjects [glibilpos, ["All"], 120];
- x = 0;
- {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (_x != plane && _x != driver plane) then {
- aps2 setpos getpos _x;
- aps6 setpos getpos _x;
- _x setdammage 2;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;
- };
- if (isserver) then {publicvariable "pilotscore";};
- } foreach things;
- ildpos1 = glibilpos;
- sleep 1.2;
- newposx = glibilpos select 0;
- newposy = glibilpos select 1;
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- glibilpos = [newposx, newposy, glibilpos select 2];
- ildpos2 = glibilpos;
- aps2 setpos glibilpos;
- aps5 setpos glibilpos;
- aps4 setpos glibilpos;
- aps6 setpos glibilpos;
- sleep .2;
- things = (glibilpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- aps6 setpos getpos _x;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- aslight7 = "#lightpoint" createVehicleLocal glibilpos;
- aslight7 setlightBrightness 1;
- aslight7 setlightAmbient[1, .2, 0];
- aslight7 setlightColor[1, .2, 0];
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- glibilpos = [newposx, newposy, glibilpos select 2];
- things = (glibilpos) nearEntities [["All"],120];
- aps4 setpos glibilpos;
- aps2 setpos glibilpos;
- aps5 setpos glibilpos;
- aps6 setpos glibilpos;
- sleep 2;
- deletevehicle aps4;
- {
- sleep .2;
- aps2 setpos ildpos2;
- aps5 setpos ildpos2;
- if (_x != plane && _x != driver plane) then {
- aps6 setpos getpos _x;
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- aps2 setpos ildpos1;
- aps6 setpos ildpos1;
- aps5 setpos ildpos2;
- sleep 1;
- aps2 setpos ildpos2;
- aps6 setpos ildpos2;
- aps5 setpos ildpos2;
- aslight8 = "#lightpoint" createVehicleLocal glibilpos;
- aslight8 setlightBrightness 3;
- aslight8 setlightAmbient[1, 1, 1];
- aslight8 setlightColor[1, 1, 1];
- sleep 5;
- deletevehicle aslight8;
- aps2 setpos glibilpos;
- aps6 setpos glibilpos;
- aps5 setpos glibilpos;
- while {score (driver plane) < pilotscore} do {
- pilotscore = pilotscore + 1;
- };
- if (debug) then {hint format ["%1 is score " , pilotscore];};
- deletevehicle aps2;
- sleep 3;
- deletevehicle aslight8;
- aps2 setpos ildpos1;
- aps6 setpos ildpos1;
- aps5 setpos ildpos1;
- sleep 3;
- sleep 4;
- things = (ildpos1) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- aps6 setpos ildpos2;
- deletevehicle aps2;
- sleep 4;
- aps6 setpos glibilpos;
- aps5 setpos glibilpos;
- sleep 4;
- things = (glibilpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- aps6 setpos ildpos1;
- aps5 setpos ildpos1;
- sleep 4;
- aps6 setpos ildpos2;
- aps5 setpos ildpos2;
- sleep 4;
- things = (ildpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- aps6 setpos glibilpos;
- aps5 setpos ildpos2;
- sleep 4;
- aps6 setpos ildpos1;
- aps5 setpos ildpos1;
- sleep 4;
- things = (ildpos1) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- aps6 setpos ildpos2;
- deletevehicle aps5;
- sleep 10;
- things = (glibilpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- sleep 10;
- deletevehicle aslight6;
- deletevehicle aslight7;
- deletevehicle aps6;
- };
- }] call CBA_fnc_globalExecute;
- };
- if (bombcount == 3) exitwith {
- if ((_this select 4) != bombtype) exitwith {};
- while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
- if (debug) then {
- player globalchat "hit";};
- globalpos = _oldpos;
- glibilpos = _oldpos;
- ylobalpos = _oldpos;
- xlobalpos = _oldpos;
- publicvariable "globalpos";
- publicvariable "glibilpos";
- publicvariable "ylobalpos";
- publicvariable "xlobalpos";
- publicvariable "globalpos";
- publicvariable "ved";
- dontrun = false;
- sleep .3;
- if (debug) then {
- player globalchat format ["bombcount is %1", bombcount];};
- [-2, {
- [] spawn {
- _pos = ylobalpos;
- p = ved select 0;
- z = ved select 1;
- p = p / 5;
- z = z / 5;
- _velocity = [1, 1, 1];
- _color = [.5, .2, 0];
- _alpha = 1;
- bslight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
- bslight6 setlightBrightness .4;
- bslight6 setlightAmbient[.3, .1, 0];
- bslight6 setlightColor[.3, .1, 0];
- _color = [1, 1, 1];
- if (!isnull bps1) then { deletevehicle bps1;};
- if (!isnull bps2) then { deletevehicle bps2;};
- if (!isnull bps3) then { deletevehicle bps3;};
- if (!isnull bps4) then { deletevehicle bps4;};
- if (!isnull bps5) then { deletevehicle bps5;};
- if (!isnull bps6) then { deletevehicle bps6;};
- if (!isnull bps7) then { deletevehicle bps7;};
- if (!isnull bps8) then { deletevehicle bps8;};
- bps1 = "#particlesource" createVehicleLocal _pos;
- bps1 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.11 + random .3], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
- bps1 setParticleCircle [0, [0, 0, -3]];
- bps1 setDropInterval .0001;
- _color = [.9, .2, 0];
- bps7 = "#particlesource" createVehicleLocal _pos;
- bps7 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 7, [0, 0, 0], [((ved select 0) / 4.8), ((ved select 1) / 4.8), 5],1, 1.7, 1, 0, [1 + random 1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
- bps7 setParticleCircle [0, [0, 0, -3]];
- bps7 setDropInterval .003;
- bps8 = "#particlesource" createVehicleLocal _pos;
- bps8 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.2], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
- bps8 setParticleCircle [0, [0, 0, -3]];
- bps8 setDropInterval .0004;
- _color = [.5, .2, 0];
- d3 = "#particlesource" createVehicleLocal _pos;
- d3 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], _velocity,1, 2, 1, 0, [.2 + random .1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- d3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
- d3 setParticleCircle [0, [0, 0, -3]];
- d3 setDropInterval .005;
- _color = [.3, .1, 0];
- _velocity = [p, z, -.2];
- bps4 = "#particlesource" createVehicleLocal _pos;
- bps4 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 23, [0, 0, 2], _velocity,1, 1.34, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
- bps4 setParticleCircle [0, [0, 0, 0]];
- bps4 setvelocity ved;
- _velocity = [0, 0, 0];
- bps4 setDropInterval .005;
- _color = [.3, .1, .01];
- bps5 = "#particlesource" createVehicleLocal _pos;
- bps5 setdir _planedir;
- bps5 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 17, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 2.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- bps5 setParticleCircle [0, [15, 0, 0]];
- _color = [.01, .01, .01];
- bps6 = "#particlesource" createVehicleLocal _pos;
- bps6 setdir _planedir;
- bps6 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 45, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 9.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- bps6 setParticleCircle [0, [15, 0, 0]];
- bps6 setDropInterval .03;
- bps5 setDropInterval .01;
- _velocity = [3, 3, 3];
- bps2 = "#particlesource" createVehicleLocal _pos;
- bps2 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 6, [0, 0, 2], _velocity,1, 1.18, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- bps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
- bps2 setParticleCircle [0, [0, 0, 0]];
- bps2 setDropInterval .001;
- sleep .2;
- deletevehicle bps1;
- deletevehicle bps7;
- deletevehicle bps8;
- //if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [car1, 22, 1, false, true] spawn BIS_Effects_Burn;
- sleep .2;
- deletevehicle d3;
- deletevehicle bps3;
- things = nearestObjects [ylobalpos, ["All"], 120];
- x = 0;
- {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (_x != plane && _x != driver plane) then {
- bps2 setpos getpos _x;
- bps6 setpos getpos _x;
- _x setdammage 2;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;
- };
- if (isserver) then {publicvariable "pilotscore";};
- } foreach things;
- kldpos1 = ylobalpos;
- sleep 1.2;
- newposx = ylobalpos select 0;
- newposy = ylobalpos select 1;
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- ylobalpos = [newposx, newposy, ylobalpos select 2];
- kldpos2 = ylobalpos;
- bps2 setpos ylobalpos;
- bps5 setpos ylobalpos;
- bps4 setpos ylobalpos;
- bps6 setpos ylobalpos;
- sleep .2;
- things = (ylobalpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- bps6 setpos getpos _x;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- bslight7 = "#lightpoint" createVehicleLocal ylobalpos;
- bslight7 setlightBrightness 1;
- bslight7 setlightAmbient[1, .2, 0];
- bslight7 setlightColor[1, .2, 0];
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- ylobalpos = [newposx, newposy, ylobalpos select 2];
- things = (ylobalpos) nearEntities [["All"],120];
- bps4 setpos ylobalpos;
- bps2 setpos ylobalpos;
- bps5 setpos ylobalpos;
- bps6 setpos ylobalpos;
- sleep 2;
- deletevehicle bps4;
- {
- sleep .2;
- bps2 setpos kldpos2;
- bps5 setpos kldpos2;
- if (_x != plane && _x != driver plane) then {
- bps6 setpos getpos _x;
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- bps2 setpos kldpos1;
- bps6 setpos kldpos1;
- bps5 setpos kldpos2;
- sleep 1;
- bps2 setpos kldpos2;
- bps6 setpos kldpos2;
- bps5 setpos kldpos2;
- bslight8 = "#lightpoint" createVehicleLocal ylobalpos;
- bslight8 setlightBrightness 3;
- bslight8 setlightAmbient[1, 1, 1];
- bslight8 setlightColor[1, 1, 1];
- sleep 5;
- deletevehicle bslight8;
- bps2 setpos ylobalpos;
- bps6 setpos ylobalpos;
- bps5 setpos ylobalpos;
- while {score (driver plane) < pilotscore} do {
- pilotscore = pilotscore + 1;
- };
- if (debug) then {hint format ["%1 is score " , pilotscore];};
- deletevehicle bps2;
- sleep 3;
- deletevehicle bslight8;
- bps2 setpos kldpos1;
- bps6 setpos kldpos1;
- bps5 setpos kldpos1;
- sleep 3;
- sleep 4;
- things = (kldpos1) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- bps6 setpos kldpos2;
- deletevehicle bps2;
- sleep 4;
- bps6 setpos ylobalpos;
- bps5 setpos ylobalpos;
- sleep 4;
- bps6 setpos kldpos1;
- bps5 setpos kldpos1;
- things = (kldpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- sleep 4;
- bps6 setpos kldpos2;
- bps5 setpos kldpos2;
- sleep 4;
- bps6 setpos ylobalpos;
- bps5 setpos kldpos2;
- things = (ylobalpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- sleep 4;
- bps6 setpos kldpos1;
- bps5 setpos kldpos1;
- sleep 4;
- things = (kldpos1) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- bps6 setpos kldpos2;
- deletevehicle bps5;
- sleep 10;
- things = (kldpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- sleep 10;
- deletevehicle bslight6;
- deletevehicle bslight7;
- deletevehicle bps6;
- };
- }] call CBA_fnc_globalExecute;
- };
- if (bombcount == 4) exitwith {
- if ((_this select 4) != bombtype) exitwith {};
- while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
- if (debug) then {
- player globalchat "hit";};
- globalpos = _oldpos;
- glibilpos = _oldpos;
- ylobalpos = _oldpos;
- xlobalpos = _oldpos;
- publicvariable "globalpos";
- publicvariable "glibilpos";
- publicvariable "ylobalpos";
- publicvariable "xlobalpos";
- publicvariable "globalpos";
- publicvariable "ved";
- dontrun = false;
- sleep .3;
- if (debug) then {
- player globalchat format ["bombcount is %1", bombcount];};
- [-2, {
- [] spawn {
- _pos = xlobalpos;
- p = ved select 0;
- z = ved select 1;
- p = p / 5;
- z = z / 5;
- _velocity = [1, 1, 1];
- _color = [.5, .2, 0];
- _alpha = 1;
- clight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
- clight6 setlightBrightness .4;
- clight6 setlightAmbient[.3, .1, 0];
- clight6 setlightColor[.3, .1, 0];
- _color = [1, 1, 1];
- if (!isnull cps1) then { deletevehicle cps1;};
- if (!isnull cps2) then { deletevehicle cps2;};
- if (!isnull cps3) then { deletevehicle cps3;};
- if (!isnull cps4) then { deletevehicle cps4;};
- if (!isnull cps5) then { deletevehicle cps5;};
- if (!isnull cps6) then { deletevehicle cps6;};
- if (!isnull cps7) then { deletevehicle cps7;};
- if (!isnull cps8) then { deletevehicle cps8;};
- cps1 = "#particlesource" createVehicleLocal _pos;
- cps1 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.11 + random .3], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
- cps1 setParticleCircle [0, [0, 0, -3]];
- cps1 setDropInterval .0001;
- _color = [.9, .2, 0];
- cps7 = "#particlesource" createVehicleLocal _pos;
- cps7 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 7, [0, 0, 0], [((ved select 0) / 4.8), ((ved select 1) / 4.8), 5],1, 1.7, 1, 0, [1 + random 1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
- cps7 setParticleCircle [0, [0, 0, -3]];
- cps7 setDropInterval .003;
- cps8 = "#particlesource" createVehicleLocal _pos;
- cps8 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], [((ved select 0) / 3), ((ved select 1) / 3), 5],1, 2, 1, 0, [.2], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
- cps8 setParticleCircle [0, [0, 0, -3]];
- cps8 setDropInterval .0004;
- _color = [.5, .2, 0];
- t3 = "#particlesource" createVehicleLocal _pos;
- t3 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 12, [0, 0, 2], _velocity,1, 2, 1, 0, [.2 + random .1], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- t3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
- t3 setParticleCircle [0, [0, 0, -3]];
- t3 setDropInterval .005;
- _color = [.3, .1, 0];
- _velocity = [p, z, -.2];
- cps4 = "#particlesource" createVehicleLocal _pos;
- cps4 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 23, [0, 0, 2], _velocity,1, 1.34, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
- cps4 setParticleCircle [0, [0, 0, 0]];
- cps4 setvelocity ved;
- _velocity = [0, 0, 0];
- cps4 setDropInterval .005;
- _color = [.3, .1, .01];
- cps5 = "#particlesource" createVehicleLocal _pos;
- cps5 setdir _planedir;
- cps5 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 17, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 2.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- cps5 setParticleCircle [0, [15, 0, 0]];
- _color = [.01, .01, .01];
- cps6 = "#particlesource" createVehicleLocal _pos;
- cps6 setdir _planedir;
- cps6 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 3, 2], "", "Billboard", 1, 45, [0, 0, 2], _velocity,1, 1.22, 1, 0, [22.2 + (random 9.3)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
- cps6 setParticleCircle [0, [15, 0, 0]];
- cps6 setDropInterval .03;
- cps5 setDropInterval .01;
- _velocity = [3, 3, 3];
- cps2 = "#particlesource" createVehicleLocal _pos;
- cps2 setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 5, 4], "", "Billboard", 1, 6, [0, 0, 2], _velocity,1, 1.18, 1, 0, [.01 + (random .1)], [_color + [0], _color + [_alpha], _color + [0]], [1000], .1, 0, "", "", _obj];
- cps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
- cps2 setParticleCircle [0, [0, 0, 0]];
- cps2 setDropInterval .001;
- sleep .2;
- deletevehicle cps1;
- deletevehicle cps7;
- deletevehicle cps8;
- //if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [car1, 22, 1, false, true] spawn BIS_Effects_Burn;
- sleep .2;
- deletevehicle cps3;
- deletevehicle t3;
- things = nearestObjects [xlobalpos, ["All"], 120];
- x = 0;
- {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (_x != plane && _x != driver plane) then {
- cps2 setpos getpos _x;
- cps6 setpos getpos _x;
- _x setdammage 2;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;
- };
- if (isserver) then {publicvariable "pilotscore";};
- } foreach things;
- xldpos1 = xlobalpos;
- sleep 1.2;
- newposx = xlobalpos select 0;
- newposy = xlobalpos select 1;
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- xlobalpos = [newposx, newposy, xlobalpos select 2];
- xldpos2 = xlobalpos;
- cps2 setpos xlobalpos;
- cps5 setpos xlobalpos;
- cps4 setpos xlobalpos;
- cps6 setpos xlobalpos;
- sleep .2;
- things = (xlobalpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- cps6 setpos getpos _x;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- clight7 = "#lightpoint" createVehicleLocal xlobalpos;
- clight7 setlightBrightness 1;
- clight7 setlightAmbient[1, .2, 0];
- clight7 setlightColor[1, .2, 0];
- newposx = newposx + ((ved select 0) * 1);
- newposy = newposy + ((ved select 1) * 1);
- xlobalpos = [newposx, newposy, xlobalpos select 2];
- things = (xlobalpos) nearEntities [["All"],120];
- cps4 setpos xlobalpos;
- cps2 setpos xlobalpos;
- cps5 setpos xlobalpos;
- cps6 setpos xlobalpos;
- sleep 2;
- deletevehicle cps4;
- {
- sleep .2;
- cps2 setpos xldpos2;
- cps5 setpos xldpos2;
- if (_x != plane && _x != driver plane) then {
- cps6 setpos getpos _x;
- if (isserver) then {
- if (side _x == east) then {
- (driver plane) addscore 1;};
- pilotscore = score (driver plane);
- sleep .3;
- x = x + 1;};
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- if (isserver) then {publicvariable "pilotscore";};
- cps2 setpos xldpos1;
- cps6 setpos xldpos1;
- cps5 setpos xldpos2;
- sleep 1;
- cps2 setpos xldpos2;
- cps6 setpos xldpos2;
- cps5 setpos xldpos2;
- clight8 = "#lightpoint" createVehicleLocal xlobalpos;
- clight8 setlightBrightness 3;
- clight8 setlightAmbient[1, 1, 1];
- clight8 setlightColor[1, 1, 1];
- sleep 5;
- deletevehicle cps3;
- deletevehicle clight8;
- cps2 setpos xlobalpos;
- cps6 setpos xlobalpos;
- cps5 setpos xlobalpos;
- while {score (driver plane) < pilotscore} do {
- pilotscore = pilotscore + 1;
- };
- if (debug) then {hint format ["%1 is score " , pilotscore];};
- deletevehicle cps2;
- sleep 3;
- deletevehicle clight8;
- cps2 setpos xldpos1;
- cps6 setpos xldpos1;
- cps5 setpos xldpos1;
- sleep 3;
- sleep 4;
- things = (xldpos1) nearEntities [["All"],110];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .4] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- cps6 setpos xldpos2;
- deletevehicle cps2;
- sleep 4;
- cps6 setpos xlobalpos;
- cps5 setpos xlobalpos;
- sleep 4;
- things = (xldpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- cps6 setpos xldpos1;
- cps5 setpos xldpos1;
- sleep 4;
- cps6 setpos xldpos2;
- cps5 setpos xldpos2;
- sleep 4;
- things = (xlobalpos) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- cps6 setpos xlobalpos;
- cps5 setpos xldpos2;
- sleep 4;
- cps6 setpos xldpos1;
- cps5 setpos xldpos1;
- sleep 4;
- things = (xldpos1) nearEntities [["All"],110];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- cps6 setpos xldpos2;
- deletevehicle cps5;
- sleep 10;
- things = (xldpos2) nearEntities [["All"],120];
- {
- if (_x != plane && _x != driver plane) then {
- sleep .1;
- if (isserver) then {BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";}; bobby = [_x, 1.4, time, true, true] spawn BIS_Effects_Burn;[_x, .1] call ace_sys_wounds_fnc_addDamage;};
- } foreach things;
- sleep 10;
- deletevehicle clight6;
- deletevehicle clight7;
- deletevehicle cps6;
- };
- }] call CBA_fnc_globalExecute;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement