Advertisement
Guest User

napalm.sqf

a guest
Jun 11th, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.45 KB | None | 0 0
  1. //gooncorp
  2. //2013
  3.  
  4. debug = false;
  5.  
  6. plane = (_this select 0);
  7. // 190 138 256 // 130 198 245
  8. ved = velocity plane;
  9. _tracker = true;
  10. _bullet = _this select 6;
  11. _dir=getdir _bullet;
  12. _planedir = getdir plane;
  13. _oldpos = [];
  14.  
  15.  
  16. //////
  17. bombtype = "Bo_Mk82";// change this for different bomb
  18. //////
  19.  
  20. if ((_this select 4) != bombtype) exitwith {};
  21.  
  22. if (debug) then {
  23. player globalchat format ["%1", (_this select 0)];
  24. };
  25.  
  26. publicvariable "plane";
  27.  
  28. if (debug) then {
  29. player globalchat format ["%1 is bombtype", bombtype];
  30. };
  31.  
  32.  
  33.  
  34. if (debug) then {
  35. player globalchat "about to run";
  36. };
  37.  
  38.  
  39. //if (bombcount != 1 && bombcount != 2 && bombcount != 3 && bombcount != 4 || isnil bombcount) then {
  40. //bombcount = 0;
  41. //};
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. if (isnil ("bombcount")) then {bombcount=0;} ;
  52. bombcount = bombcount + 1;
  53. if (bombcount >= 5) then {
  54. bombcount = 1;
  55. };
  56. if (debug) then {
  57. player globalchat format ["bombcount is %1", bombcount];
  58. };
  59.  
  60. if (bombcount == 1) exitwith {
  61.  
  62.  
  63.  
  64. while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
  65. if (debug) then {
  66. player globalchat "hit";};
  67. globalpos = _oldpos;
  68. glibilpos = _oldpos;
  69. ylobalpos = _oldpos;
  70. xlobalpos = _oldpos;
  71. publicvariable "globalpos";
  72. publicvariable "glibilpos";
  73. publicvariable "ylobalpos";
  74. publicvariable "xlobalpos";
  75. publicvariable "ved";
  76. dontrun = false;
  77. sleep .3;
  78. if (debug) then {
  79. player globalchat format ["bombcount is %1", bombcount];};
  80.  
  81.  
  82.  
  83. [-2, {
  84. [] spawn {
  85. _pos = globalpos;
  86.  
  87. p = ved select 0;
  88. z = ved select 1;
  89. p = p / 5;
  90. z = z / 5;
  91. _velocity = [1, 1, 1];
  92. _color = [.5, .2, 0];
  93. _alpha = 1;
  94.  
  95. slight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
  96. slight6 setlightBrightness .4;
  97. slight6 setlightAmbient[.3, .1, 0];
  98. slight6 setlightColor[.3, .1, 0];
  99.  
  100. _color = [1, 1, 1];
  101.  
  102. if (!isnull ps1) then { deletevehicle ps1;};
  103. if (!isnull ps2) then { deletevehicle ps2;};
  104. if (!isnull ps3) then { deletevehicle ps3;};
  105. if (!isnull ps4) then { deletevehicle ps4;};
  106. if (!isnull ps5) then { deletevehicle ps5;};
  107. if (!isnull ps6) then { deletevehicle ps6;};
  108. if (!isnull ps7) then { deletevehicle ps7;};
  109. if (!isnull ps8) then { deletevehicle ps8;};
  110.  
  111. ps1 = "#particlesource" createVehicleLocal _pos;
  112. 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];
  113. ps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
  114. ps1 setParticleCircle [0, [0, 0, -3]];
  115. ps1 setDropInterval .0001;
  116. _color = [.9, .2, 0];
  117. ps7 = "#particlesource" createVehicleLocal _pos;
  118. 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];
  119. ps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
  120. ps7 setParticleCircle [0, [0, 0, -3]];
  121. ps7 setDropInterval .003;
  122.  
  123. ps8 = "#particlesource" createVehicleLocal _pos;
  124. 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];
  125. ps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
  126. ps8 setParticleCircle [0, [0, 0, -3]];
  127. ps8 setDropInterval .0004;
  128.  
  129.  
  130. _color = [.5, .2, 0];
  131. gs3 = "#particlesource" createVehicleLocal _pos;
  132. 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];
  133. gs3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
  134. gs3 setParticleCircle [0, [0, 0, -3]];
  135. gs3 setDropInterval .005;
  136. _color = [.3, .1, 0];
  137.  
  138. _velocity = [p, z, -.2];
  139.  
  140. ps4 = "#particlesource" createVehicleLocal _pos;
  141. 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];
  142. ps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
  143. ps4 setParticleCircle [0, [0, 0, 0]];
  144. ps4 setvelocity ved;
  145. _velocity = [0, 0, 0];
  146. ps4 setDropInterval .005;
  147. _color = [.3, .1, .01];
  148.  
  149. ps5 = "#particlesource" createVehicleLocal _pos;
  150. ps5 setdir _planedir;
  151. 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];
  152. ps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  153. ps5 setParticleCircle [0, [15, 0, 0]];
  154. _color = [.01, .01, .01];
  155. ps6 = "#particlesource" createVehicleLocal _pos;
  156. ps6 setdir _planedir;
  157. 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];
  158. ps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  159. ps6 setParticleCircle [0, [15, 0, 0]];
  160.  
  161. ps6 setDropInterval .03;
  162. ps5 setDropInterval .01;
  163. _velocity = [3, 3, 3];
  164. ps2 = "#particlesource" createVehicleLocal _pos;
  165. 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];
  166. ps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
  167. ps2 setParticleCircle [0, [0, 0, 0]];
  168. ps2 setDropInterval .001;
  169.  
  170.  
  171.  
  172. sleep .2;
  173. deletevehicle ps1;
  174. deletevehicle ps7;
  175. deletevehicle ps8;
  176. //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;
  177. sleep .2;
  178. deletevehicle gs3;
  179. things = nearestObjects [globalpos, ["All"], 120];
  180. x = 0;
  181. deletevehicle ps3;
  182. {
  183. if (isserver) then {
  184. if (side _x == east) then {
  185. (driver plane) addscore 1;};
  186. pilotscore = score (driver plane);
  187. sleep .3;
  188. x = x + 1;};
  189. if (_x != plane && _x != driver plane) then {
  190. ps2 setpos getpos _x;
  191. ps6 setpos getpos _x;
  192. _x setdammage 2;
  193. 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;
  194. };
  195. if (isserver) then {publicvariable "pilotscore";};
  196. } foreach things;
  197. oldpos1 = globalpos;
  198. sleep 1.2;
  199. newposx = globalpos select 0;
  200. newposy = globalpos select 1;
  201. newposx = newposx + ((ved select 0) * 1);
  202. newposy = newposy + ((ved select 1) * 1);
  203. globalpos = [newposx, newposy, globalpos select 2];
  204. oldpos2 = globalpos;
  205. ps2 setpos globalpos;
  206. ps5 setpos globalpos;
  207. ps4 setpos globalpos;
  208. ps6 setpos globalpos;
  209. sleep .2;
  210. things = (globalpos) nearEntities [["All"],120];
  211. {
  212. if (_x != plane && _x != driver plane) then {
  213. if (isserver) then {
  214. if (side _x == east) then {
  215. (driver plane) addscore 1;};
  216. pilotscore = score (driver plane);
  217. sleep .3;
  218. x = x + 1;};
  219. ps6 setpos getpos _x;
  220. 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;};
  221. } foreach things;
  222. if (isserver) then {publicvariable "pilotscore";};
  223. slight7 = "#lightpoint" createVehicleLocal globalpos;
  224. slight7 setlightBrightness 1;
  225. slight7 setlightAmbient[1, .2, 0];
  226. slight7 setlightColor[1, .2, 0];
  227. newposx = newposx + ((ved select 0) * 1);
  228. newposy = newposy + ((ved select 1) * 1);
  229. globalpos = [newposx, newposy, globalpos select 2];
  230. things = (globalpos) nearEntities [["All"],120];
  231. ps4 setpos globalpos;
  232. ps2 setpos globalpos;
  233. ps5 setpos globalpos;
  234. ps6 setpos globalpos;
  235. sleep 2;
  236. deletevehicle ps4;
  237. {
  238. sleep .2;
  239. ps2 setpos oldpos2;
  240. ps5 setpos oldpos2;
  241. if (_x != plane && _x != driver plane) then {
  242. ps6 setpos getpos _x;
  243. if (isserver) then {
  244. if (side _x == east) then {
  245. (driver plane) addscore 1;};
  246. pilotscore = score (driver plane);
  247. sleep .3;
  248. x = x + 1;};
  249. 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;};
  250.  
  251. } foreach things;
  252. if (isserver) then {publicvariable "pilotscore";};
  253. ps2 setpos oldpos1;
  254. ps6 setpos oldpos1;
  255. ps5 setpos oldpos2;
  256. sleep 1;
  257. ps2 setpos oldpos2;
  258. ps6 setpos oldpos2;
  259. ps5 setpos oldpos2;
  260. slight8 = "#lightpoint" createVehicleLocal globalpos;
  261. slight8 setlightBrightness 3;
  262. slight8 setlightAmbient[1, 1, 1];
  263. slight8 setlightColor[1, 1, 1];
  264. sleep 5;
  265. dz = o;
  266. lightbrightness = 3;
  267. deletevehicle slight8;
  268. ps2 setpos globalpos;
  269. ps6 setpos globalpos;
  270. ps5 setpos globalpos;
  271. while {score (driver plane) < pilotscore} do {
  272. pilotscore = pilotscore + 1;
  273. };
  274. if (debug) then {hint format ["%1 is score " , pilotscore];};
  275. deletevehicle ps2;
  276. sleep 3;
  277. deletevehicle slight8;
  278. ps2 setpos oldpos1;
  279. ps6 setpos oldpos1;
  280. ps5 setpos oldpos1;
  281. sleep 3;
  282. sleep 4;
  283.  
  284.  
  285. things = (oldpos1) nearEntities [["All"],120];
  286. {
  287. if (_x != plane && _x != driver plane) then {
  288. sleep .1;
  289. 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;};
  290. } foreach things;
  291.  
  292. ps6 setpos oldpos2;
  293. deletevehicle ps2;
  294. sleep 4;
  295. ps6 setpos globalpos;
  296. ps5 setpos globalpos;
  297. sleep 4;
  298.  
  299. things = (oldpos2) nearEntities [["All"],120];
  300. {
  301. if (_x != plane && _x != driver plane) then {
  302. sleep .1;
  303. 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;};
  304. } foreach things;
  305.  
  306. ps6 setpos oldpos1;
  307. ps5 setpos oldpos1;
  308. sleep 4;
  309. ps6 setpos oldpos2;
  310. ps5 setpos oldpos2;
  311. sleep 4;
  312.  
  313. things = (globalpos) nearEntities [["All"],120];
  314. {
  315. if (_x != plane && _x != driver plane) then {
  316. sleep .1;
  317. 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;};
  318. } foreach things;
  319.  
  320. ps6 setpos globalpos;
  321. ps5 setpos oldpos2;
  322. sleep 4;
  323. ps6 setpos oldpos1;
  324. ps5 setpos oldpos1;
  325. sleep 4;
  326. things = (oldpos2) nearEntities [["All"],120];
  327. {
  328. if (_x != plane && _x != driver plane) then {
  329. sleep .1;
  330. 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;};
  331. } foreach things;
  332. ps6 setpos oldpos2;
  333. deletevehicle ps5;
  334. sleep 10;
  335. things = (oldpos1) nearEntities [["All"],120];
  336. {
  337. if (_x != plane && _x != driver plane) then {
  338. sleep .1;
  339. 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;};
  340. } foreach things;
  341. sleep 10;
  342. deletevehicle slight6;
  343. deletevehicle slight7;
  344. deletevehicle ps6;
  345. };
  346. }] call CBA_fnc_globalExecute;
  347. };
  348.  
  349.  
  350. if (bombcount == 2) exitwith {
  351.  
  352. if ((_this select 4) != bombtype) exitwith {};
  353. while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
  354. if (debug) then {
  355. player globalchat "hit";};
  356. globalpos = _oldpos;
  357. glibilpos = _oldpos;
  358. ylobalpos = _oldpos;
  359. xlobalpos = _oldpos;
  360. publicvariable "globalpos";
  361. publicvariable "glibilpos";
  362. publicvariable "ylobalpos";
  363. publicvariable "xlobalpos";
  364. publicvariable "globalpos";
  365. publicvariable "ved";
  366. dontrun = false;
  367. sleep .3;
  368. if (debug) then {
  369. player globalchat format ["bombcount is %1", bombcount];};
  370.  
  371. [-2, {
  372. [] spawn {
  373. _pos = glibilpos;
  374.  
  375. p = ved select 0;
  376. z = ved select 1;
  377. p = p / 5;
  378. z = z / 5;
  379. _velocity = [1, 1, 1];
  380. _color = [.5, .2, 0];
  381. _alpha = 1;
  382.  
  383. aslight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
  384. aslight6 setlightBrightness .4;
  385. aslight6 setlightAmbient[.3, .1, 0];
  386. aslight6 setlightColor[.3, .1, 0];
  387.  
  388. _color = [1, 1, 1];
  389.  
  390. if (!isnull aps1) then { deletevehicle aps1;};
  391. if (!isnull aps2) then { deletevehicle aps2;};
  392. if (!isnull aps3) then { deletevehicle aps3;};
  393. if (!isnull aps4) then { deletevehicle aps4;};
  394. if (!isnull aps5) then { deletevehicle aps5;};
  395. if (!isnull aps6) then { deletevehicle aps6;};
  396. if (!isnull aps7) then { deletevehicle aps7;};
  397. if (!isnull aps8) then { deletevehicle aps8;};
  398.  
  399. aps1 = "#particlesource" createVehicleLocal _pos;
  400. 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];
  401. aps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
  402. aps1 setParticleCircle [0, [0, 0, -3]];
  403. aps1 setDropInterval .0001;
  404. _color = [.9, .2, 0];
  405. aps7 = "#particlesource" createVehicleLocal _pos;
  406. 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];
  407. aps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
  408. aps7 setParticleCircle [0, [0, 0, -3]];
  409. aps7 setDropInterval .003;
  410.  
  411. aps8 = "#particlesource" createVehicleLocal _pos;
  412. 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];
  413. aps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
  414. aps8 setParticleCircle [0, [0, 0, -3]];
  415. aps8 setDropInterval .0004;
  416.  
  417.  
  418. _color = [.5, .2, 0];
  419. f3 = "#particlesource" createVehicleLocal _pos;
  420. 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];
  421. f3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
  422. f3 setParticleCircle [0, [0, 0, -3]];
  423. f3 setDropInterval .005;
  424. _color = [.3, .1, 0];
  425.  
  426. _velocity = [p, z, -.2];
  427.  
  428. aps4 = "#particlesource" createVehicleLocal _pos;
  429. 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];
  430. aps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
  431. aps4 setParticleCircle [0, [0, 0, 0]];
  432. aps4 setvelocity ved;
  433. _velocity = [0, 0, 0];
  434. aps4 setDropInterval .005;
  435. _color = [.3, .1, .01];
  436.  
  437. aps5 = "#particlesource" createVehicleLocal _pos;
  438. aps5 setdir _planedir;
  439. 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];
  440. aps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  441. aps5 setParticleCircle [0, [15, 0, 0]];
  442. _color = [.01, .01, .01];
  443. aps6 = "#particlesource" createVehicleLocal _pos;
  444. aps6 setdir _planedir;
  445. 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];
  446. aps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  447. aps6 setParticleCircle [0, [15, 0, 0]];
  448.  
  449. aps6 setDropInterval .03;
  450. aps5 setDropInterval .01;
  451. _velocity = [3, 3, 3];
  452. aps2 = "#particlesource" createVehicleLocal _pos;
  453. 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];
  454. aps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
  455. aps2 setParticleCircle [0, [0, 0, 0]];
  456. aps2 setDropInterval .001;
  457.  
  458.  
  459.  
  460. sleep .2;
  461. deletevehicle aps1;
  462. deletevehicle aps7;
  463. deletevehicle aps8;
  464. //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;
  465. sleep .2;
  466. deletevehicle f3;
  467. deletevehicle aps3;
  468. things = nearestObjects [glibilpos, ["All"], 120];
  469. x = 0;
  470. {
  471. if (isserver) then {
  472. if (side _x == east) then {
  473. (driver plane) addscore 1;};
  474. pilotscore = score (driver plane);
  475. sleep .3;
  476. x = x + 1;};
  477. if (_x != plane && _x != driver plane) then {
  478. aps2 setpos getpos _x;
  479. aps6 setpos getpos _x;
  480. _x setdammage 2;
  481. 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;
  482. };
  483. if (isserver) then {publicvariable "pilotscore";};
  484. } foreach things;
  485. ildpos1 = glibilpos;
  486. sleep 1.2;
  487. newposx = glibilpos select 0;
  488. newposy = glibilpos select 1;
  489. newposx = newposx + ((ved select 0) * 1);
  490. newposy = newposy + ((ved select 1) * 1);
  491. glibilpos = [newposx, newposy, glibilpos select 2];
  492. ildpos2 = glibilpos;
  493. aps2 setpos glibilpos;
  494. aps5 setpos glibilpos;
  495. aps4 setpos glibilpos;
  496. aps6 setpos glibilpos;
  497. sleep .2;
  498. things = (glibilpos) nearEntities [["All"],120];
  499. {
  500. if (_x != plane && _x != driver plane) then {
  501. if (isserver) then {
  502. if (side _x == east) then {
  503. (driver plane) addscore 1;};
  504. pilotscore = score (driver plane);
  505. sleep .3;
  506. x = x + 1;};
  507. aps6 setpos getpos _x;
  508. 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;};
  509. } foreach things;
  510. if (isserver) then {publicvariable "pilotscore";};
  511. aslight7 = "#lightpoint" createVehicleLocal glibilpos;
  512. aslight7 setlightBrightness 1;
  513. aslight7 setlightAmbient[1, .2, 0];
  514. aslight7 setlightColor[1, .2, 0];
  515. newposx = newposx + ((ved select 0) * 1);
  516. newposy = newposy + ((ved select 1) * 1);
  517. glibilpos = [newposx, newposy, glibilpos select 2];
  518. things = (glibilpos) nearEntities [["All"],120];
  519. aps4 setpos glibilpos;
  520. aps2 setpos glibilpos;
  521. aps5 setpos glibilpos;
  522. aps6 setpos glibilpos;
  523. sleep 2;
  524. deletevehicle aps4;
  525. {
  526. sleep .2;
  527. aps2 setpos ildpos2;
  528. aps5 setpos ildpos2;
  529. if (_x != plane && _x != driver plane) then {
  530. aps6 setpos getpos _x;
  531. if (isserver) then {
  532. if (side _x == east) then {
  533. (driver plane) addscore 1;};
  534. pilotscore = score (driver plane);
  535. sleep .3;
  536. x = x + 1;};
  537. 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;};
  538.  
  539. } foreach things;
  540. if (isserver) then {publicvariable "pilotscore";};
  541. aps2 setpos ildpos1;
  542. aps6 setpos ildpos1;
  543. aps5 setpos ildpos2;
  544. sleep 1;
  545. aps2 setpos ildpos2;
  546. aps6 setpos ildpos2;
  547. aps5 setpos ildpos2;
  548. aslight8 = "#lightpoint" createVehicleLocal glibilpos;
  549. aslight8 setlightBrightness 3;
  550. aslight8 setlightAmbient[1, 1, 1];
  551. aslight8 setlightColor[1, 1, 1];
  552. sleep 5;
  553.  
  554.  
  555. deletevehicle aslight8;
  556. aps2 setpos glibilpos;
  557. aps6 setpos glibilpos;
  558. aps5 setpos glibilpos;
  559. while {score (driver plane) < pilotscore} do {
  560. pilotscore = pilotscore + 1;
  561. };
  562. if (debug) then {hint format ["%1 is score " , pilotscore];};
  563. deletevehicle aps2;
  564. sleep 3;
  565. deletevehicle aslight8;
  566. aps2 setpos ildpos1;
  567. aps6 setpos ildpos1;
  568. aps5 setpos ildpos1;
  569. sleep 3;
  570. sleep 4;
  571. things = (ildpos1) nearEntities [["All"],120];
  572. {
  573. if (_x != plane && _x != driver plane) then {
  574. sleep .1;
  575. 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;};
  576. } foreach things;
  577. aps6 setpos ildpos2;
  578. deletevehicle aps2;
  579. sleep 4;
  580. aps6 setpos glibilpos;
  581. aps5 setpos glibilpos;
  582. sleep 4;
  583. things = (glibilpos) nearEntities [["All"],120];
  584. {
  585. if (_x != plane && _x != driver plane) then {
  586. sleep .1;
  587. 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;};
  588. } foreach things;
  589. aps6 setpos ildpos1;
  590. aps5 setpos ildpos1;
  591. sleep 4;
  592. aps6 setpos ildpos2;
  593. aps5 setpos ildpos2;
  594. sleep 4;
  595. things = (ildpos2) nearEntities [["All"],120];
  596. {
  597. if (_x != plane && _x != driver plane) then {
  598. sleep .1;
  599. 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;};
  600. } foreach things;
  601. aps6 setpos glibilpos;
  602. aps5 setpos ildpos2;
  603. sleep 4;
  604. aps6 setpos ildpos1;
  605. aps5 setpos ildpos1;
  606. sleep 4;
  607. things = (ildpos1) nearEntities [["All"],120];
  608. {
  609. if (_x != plane && _x != driver plane) then {
  610. sleep .1;
  611. 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;};
  612. } foreach things;
  613. aps6 setpos ildpos2;
  614. deletevehicle aps5;
  615. sleep 10;
  616. things = (glibilpos) nearEntities [["All"],120];
  617. {
  618. if (_x != plane && _x != driver plane) then {
  619. sleep .1;
  620. 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;};
  621. } foreach things;
  622. sleep 10;
  623. deletevehicle aslight6;
  624. deletevehicle aslight7;
  625. deletevehicle aps6;
  626. };
  627. }] call CBA_fnc_globalExecute;
  628. };
  629.  
  630.  
  631.  
  632.  
  633.  
  634. if (bombcount == 3) exitwith {
  635. if ((_this select 4) != bombtype) exitwith {};
  636. while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
  637. if (debug) then {
  638. player globalchat "hit";};
  639. globalpos = _oldpos;
  640. glibilpos = _oldpos;
  641. ylobalpos = _oldpos;
  642. xlobalpos = _oldpos;
  643. publicvariable "globalpos";
  644. publicvariable "glibilpos";
  645. publicvariable "ylobalpos";
  646. publicvariable "xlobalpos";
  647. publicvariable "globalpos";
  648. publicvariable "ved";
  649. dontrun = false;
  650. sleep .3;
  651. if (debug) then {
  652. player globalchat format ["bombcount is %1", bombcount];};
  653. [-2, {
  654. [] spawn {
  655. _pos = ylobalpos;
  656.  
  657. p = ved select 0;
  658. z = ved select 1;
  659. p = p / 5;
  660. z = z / 5;
  661. _velocity = [1, 1, 1];
  662. _color = [.5, .2, 0];
  663. _alpha = 1;
  664.  
  665. bslight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
  666. bslight6 setlightBrightness .4;
  667. bslight6 setlightAmbient[.3, .1, 0];
  668. bslight6 setlightColor[.3, .1, 0];
  669.  
  670. _color = [1, 1, 1];
  671.  
  672. if (!isnull bps1) then { deletevehicle bps1;};
  673. if (!isnull bps2) then { deletevehicle bps2;};
  674. if (!isnull bps3) then { deletevehicle bps3;};
  675. if (!isnull bps4) then { deletevehicle bps4;};
  676. if (!isnull bps5) then { deletevehicle bps5;};
  677. if (!isnull bps6) then { deletevehicle bps6;};
  678. if (!isnull bps7) then { deletevehicle bps7;};
  679. if (!isnull bps8) then { deletevehicle bps8;};
  680.  
  681. bps1 = "#particlesource" createVehicleLocal _pos;
  682. 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];
  683. bps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
  684. bps1 setParticleCircle [0, [0, 0, -3]];
  685. bps1 setDropInterval .0001;
  686. _color = [.9, .2, 0];
  687. bps7 = "#particlesource" createVehicleLocal _pos;
  688. 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];
  689. bps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
  690. bps7 setParticleCircle [0, [0, 0, -3]];
  691. bps7 setDropInterval .003;
  692.  
  693. bps8 = "#particlesource" createVehicleLocal _pos;
  694. 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];
  695. bps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
  696. bps8 setParticleCircle [0, [0, 0, -3]];
  697. bps8 setDropInterval .0004;
  698.  
  699.  
  700. _color = [.5, .2, 0];
  701. d3 = "#particlesource" createVehicleLocal _pos;
  702. 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];
  703. d3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
  704. d3 setParticleCircle [0, [0, 0, -3]];
  705. d3 setDropInterval .005;
  706. _color = [.3, .1, 0];
  707.  
  708. _velocity = [p, z, -.2];
  709.  
  710. bps4 = "#particlesource" createVehicleLocal _pos;
  711. 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];
  712. bps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
  713. bps4 setParticleCircle [0, [0, 0, 0]];
  714. bps4 setvelocity ved;
  715. _velocity = [0, 0, 0];
  716. bps4 setDropInterval .005;
  717. _color = [.3, .1, .01];
  718.  
  719. bps5 = "#particlesource" createVehicleLocal _pos;
  720. bps5 setdir _planedir;
  721. 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];
  722. bps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  723. bps5 setParticleCircle [0, [15, 0, 0]];
  724. _color = [.01, .01, .01];
  725. bps6 = "#particlesource" createVehicleLocal _pos;
  726. bps6 setdir _planedir;
  727. 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];
  728. bps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  729. bps6 setParticleCircle [0, [15, 0, 0]];
  730.  
  731. bps6 setDropInterval .03;
  732. bps5 setDropInterval .01;
  733. _velocity = [3, 3, 3];
  734. bps2 = "#particlesource" createVehicleLocal _pos;
  735. 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];
  736. bps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
  737. bps2 setParticleCircle [0, [0, 0, 0]];
  738. bps2 setDropInterval .001;
  739.  
  740.  
  741.  
  742. sleep .2;
  743. deletevehicle bps1;
  744. deletevehicle bps7;
  745. deletevehicle bps8;
  746. //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;
  747. sleep .2;
  748. deletevehicle d3;
  749. deletevehicle bps3;
  750. things = nearestObjects [ylobalpos, ["All"], 120];
  751.  
  752. x = 0;
  753. {
  754. if (isserver) then {
  755. if (side _x == east) then {
  756. (driver plane) addscore 1;};
  757. pilotscore = score (driver plane);
  758. sleep .3;
  759. x = x + 1;};
  760. if (_x != plane && _x != driver plane) then {
  761. bps2 setpos getpos _x;
  762. bps6 setpos getpos _x;
  763. _x setdammage 2;
  764. 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;
  765. };
  766. if (isserver) then {publicvariable "pilotscore";};
  767. } foreach things;
  768. kldpos1 = ylobalpos;
  769. sleep 1.2;
  770. newposx = ylobalpos select 0;
  771. newposy = ylobalpos select 1;
  772. newposx = newposx + ((ved select 0) * 1);
  773. newposy = newposy + ((ved select 1) * 1);
  774. ylobalpos = [newposx, newposy, ylobalpos select 2];
  775. kldpos2 = ylobalpos;
  776. bps2 setpos ylobalpos;
  777. bps5 setpos ylobalpos;
  778. bps4 setpos ylobalpos;
  779. bps6 setpos ylobalpos;
  780. sleep .2;
  781. things = (ylobalpos) nearEntities [["All"],120];
  782. {
  783. if (_x != plane && _x != driver plane) then {
  784. if (isserver) then {
  785. if (side _x == east) then {
  786. (driver plane) addscore 1;};
  787. pilotscore = score (driver plane);
  788. sleep .3;
  789. x = x + 1;};
  790. bps6 setpos getpos _x;
  791. 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;};
  792. } foreach things;
  793. if (isserver) then {publicvariable "pilotscore";};
  794. bslight7 = "#lightpoint" createVehicleLocal ylobalpos;
  795. bslight7 setlightBrightness 1;
  796. bslight7 setlightAmbient[1, .2, 0];
  797. bslight7 setlightColor[1, .2, 0];
  798. newposx = newposx + ((ved select 0) * 1);
  799. newposy = newposy + ((ved select 1) * 1);
  800. ylobalpos = [newposx, newposy, ylobalpos select 2];
  801. things = (ylobalpos) nearEntities [["All"],120];
  802. bps4 setpos ylobalpos;
  803. bps2 setpos ylobalpos;
  804. bps5 setpos ylobalpos;
  805. bps6 setpos ylobalpos;
  806. sleep 2;
  807. deletevehicle bps4;
  808. {
  809. sleep .2;
  810. bps2 setpos kldpos2;
  811. bps5 setpos kldpos2;
  812. if (_x != plane && _x != driver plane) then {
  813. bps6 setpos getpos _x;
  814. if (isserver) then {
  815. if (side _x == east) then {
  816. (driver plane) addscore 1;};
  817. pilotscore = score (driver plane);
  818. sleep .3;
  819. x = x + 1;};
  820. 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;};
  821.  
  822. } foreach things;
  823. if (isserver) then {publicvariable "pilotscore";};
  824. bps2 setpos kldpos1;
  825. bps6 setpos kldpos1;
  826. bps5 setpos kldpos2;
  827. sleep 1;
  828. bps2 setpos kldpos2;
  829. bps6 setpos kldpos2;
  830. bps5 setpos kldpos2;
  831. bslight8 = "#lightpoint" createVehicleLocal ylobalpos;
  832. bslight8 setlightBrightness 3;
  833. bslight8 setlightAmbient[1, 1, 1];
  834. bslight8 setlightColor[1, 1, 1];
  835. sleep 5;
  836. deletevehicle bslight8;
  837. bps2 setpos ylobalpos;
  838. bps6 setpos ylobalpos;
  839. bps5 setpos ylobalpos;
  840. while {score (driver plane) < pilotscore} do {
  841. pilotscore = pilotscore + 1;
  842. };
  843. if (debug) then {hint format ["%1 is score " , pilotscore];};
  844. deletevehicle bps2;
  845. sleep 3;
  846. deletevehicle bslight8;
  847. bps2 setpos kldpos1;
  848. bps6 setpos kldpos1;
  849. bps5 setpos kldpos1;
  850. sleep 3;
  851. sleep 4;
  852. things = (kldpos1) nearEntities [["All"],120];
  853. {
  854. if (_x != plane && _x != driver plane) then {
  855. sleep .1;
  856. 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;};
  857. } foreach things;
  858. bps6 setpos kldpos2;
  859. deletevehicle bps2;
  860. sleep 4;
  861. bps6 setpos ylobalpos;
  862. bps5 setpos ylobalpos;
  863. sleep 4;
  864. bps6 setpos kldpos1;
  865. bps5 setpos kldpos1;
  866. things = (kldpos2) nearEntities [["All"],120];
  867. {
  868. if (_x != plane && _x != driver plane) then {
  869. sleep .1;
  870. 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;};
  871. } foreach things;
  872. sleep 4;
  873. bps6 setpos kldpos2;
  874. bps5 setpos kldpos2;
  875. sleep 4;
  876. bps6 setpos ylobalpos;
  877. bps5 setpos kldpos2;
  878. things = (ylobalpos) nearEntities [["All"],120];
  879. {
  880. if (_x != plane && _x != driver plane) then {
  881. sleep .1;
  882. 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;};
  883. } foreach things;
  884. sleep 4;
  885. bps6 setpos kldpos1;
  886. bps5 setpos kldpos1;
  887. sleep 4;
  888. things = (kldpos1) nearEntities [["All"],120];
  889. {
  890. if (_x != plane && _x != driver plane) then {
  891. sleep .1;
  892. 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;};
  893. } foreach things;
  894. bps6 setpos kldpos2;
  895. deletevehicle bps5;
  896. sleep 10;
  897. things = (kldpos2) nearEntities [["All"],120];
  898. {
  899. if (_x != plane && _x != driver plane) then {
  900. sleep .1;
  901. 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;};
  902. } foreach things;
  903. sleep 10;
  904. deletevehicle bslight6;
  905. deletevehicle bslight7;
  906. deletevehicle bps6;
  907. };
  908. }] call CBA_fnc_globalExecute;
  909. };
  910.  
  911. if (bombcount == 4) exitwith {
  912. if ((_this select 4) != bombtype) exitwith {};
  913. while {not (isnull _bullet)} do { _oldpos = getposASL _bullet; sleep .01;};
  914. if (debug) then {
  915. player globalchat "hit";};
  916. globalpos = _oldpos;
  917. glibilpos = _oldpos;
  918. ylobalpos = _oldpos;
  919. xlobalpos = _oldpos;
  920. publicvariable "globalpos";
  921. publicvariable "glibilpos";
  922. publicvariable "ylobalpos";
  923. publicvariable "xlobalpos";
  924. publicvariable "globalpos";
  925. publicvariable "ved";
  926. dontrun = false;
  927. sleep .3;
  928. if (debug) then {
  929. player globalchat format ["bombcount is %1", bombcount];};
  930. [-2, {
  931. [] spawn {
  932. _pos = xlobalpos;
  933.  
  934. p = ved select 0;
  935. z = ved select 1;
  936. p = p / 5;
  937. z = z / 5;
  938. _velocity = [1, 1, 1];
  939. _color = [.5, .2, 0];
  940. _alpha = 1;
  941.  
  942. clight6 = "#lightpoint" createVehicleLocal [ _pos select 0, _pos select 1, 10];
  943. clight6 setlightBrightness .4;
  944. clight6 setlightAmbient[.3, .1, 0];
  945. clight6 setlightColor[.3, .1, 0];
  946.  
  947. _color = [1, 1, 1];
  948.  
  949. if (!isnull cps1) then { deletevehicle cps1;};
  950. if (!isnull cps2) then { deletevehicle cps2;};
  951. if (!isnull cps3) then { deletevehicle cps3;};
  952. if (!isnull cps4) then { deletevehicle cps4;};
  953. if (!isnull cps5) then { deletevehicle cps5;};
  954. if (!isnull cps6) then { deletevehicle cps6;};
  955. if (!isnull cps7) then { deletevehicle cps7;};
  956. if (!isnull cps8) then { deletevehicle cps8;};
  957.  
  958. cps1 = "#particlesource" createVehicleLocal _pos;
  959. 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];
  960. cps1 setParticleRandom [0, [2, 2, 2], [12, 12, 25], 1, 0, [.03, 0, .1, 8], 0, 0];
  961. cps1 setParticleCircle [0, [0, 0, -3]];
  962. cps1 setDropInterval .0001;
  963. _color = [.9, .2, 0];
  964. cps7 = "#particlesource" createVehicleLocal _pos;
  965. 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];
  966. cps7 setParticleRandom [0, [1, 1, 1], [3, 3, 12], 1, 0, [.03, 0, .1, 1], 0, 0];
  967. cps7 setParticleCircle [0, [0, 0, -3]];
  968. cps7 setDropInterval .003;
  969.  
  970. cps8 = "#particlesource" createVehicleLocal _pos;
  971. 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];
  972. cps8 setParticleRandom [0, [7, 7, 7], [22, 22, 35], 1, 0, [.03, 0, .1, -21], 0, 0];
  973. cps8 setParticleCircle [0, [0, 0, -3]];
  974. cps8 setDropInterval .0004;
  975.  
  976.  
  977. _color = [.5, .2, 0];
  978. t3 = "#particlesource" createVehicleLocal _pos;
  979. 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];
  980. t3 setParticleRandom [0, [0, 0, 0], [31, 31, 16], 1, 0, [.03, 0, .1, 8], 0, 0];
  981. t3 setParticleCircle [0, [0, 0, -3]];
  982. t3 setDropInterval .005;
  983. _color = [.3, .1, 0];
  984.  
  985. _velocity = [p, z, -.2];
  986.  
  987. cps4 = "#particlesource" createVehicleLocal _pos;
  988. 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];
  989. cps4 setParticleRandom [.2, [0, 0, 4], [1, 1, 4], 1, 0, [.03, 0, .1, 15], 4, 4];
  990. cps4 setParticleCircle [0, [0, 0, 0]];
  991. cps4 setvelocity ved;
  992. _velocity = [0, 0, 0];
  993. cps4 setDropInterval .005;
  994. _color = [.3, .1, .01];
  995.  
  996. cps5 = "#particlesource" createVehicleLocal _pos;
  997. cps5 setdir _planedir;
  998. 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];
  999. cps5 setParticleRandom [.2, [65, 65, 6], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  1000. cps5 setParticleCircle [0, [15, 0, 0]];
  1001. _color = [.01, .01, .01];
  1002. cps6 = "#particlesource" createVehicleLocal _pos;
  1003. cps6 setdir _planedir;
  1004. 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];
  1005. cps6 setParticleRandom [.2, [51, 51, 35], [1, 1, 1], 1, 0, [.03, 0, .1, .2], 0, 0];
  1006. cps6 setParticleCircle [0, [15, 0, 0]];
  1007.  
  1008. cps6 setDropInterval .03;
  1009. cps5 setDropInterval .01;
  1010. _velocity = [3, 3, 3];
  1011. cps2 = "#particlesource" createVehicleLocal _pos;
  1012. 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];
  1013. cps2 setParticleRandom [.2, [0, 0, 0], [2, 2, 2], 1, 0, [.03, 0, .1, 7], 4, 4];
  1014. cps2 setParticleCircle [0, [0, 0, 0]];
  1015. cps2 setDropInterval .001;
  1016.  
  1017.  
  1018.  
  1019. sleep .2;
  1020. deletevehicle cps1;
  1021. deletevehicle cps7;
  1022. deletevehicle cps8;
  1023. //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;
  1024. sleep .2;
  1025. deletevehicle cps3;
  1026. deletevehicle t3;
  1027. things = nearestObjects [xlobalpos, ["All"], 120];
  1028. x = 0;
  1029. {
  1030. if (isserver) then {
  1031. if (side _x == east) then {
  1032. (driver plane) addscore 1;};
  1033. pilotscore = score (driver plane);
  1034. sleep .3;
  1035. x = x + 1;};
  1036. if (_x != plane && _x != driver plane) then {
  1037. cps2 setpos getpos _x;
  1038. cps6 setpos getpos _x;
  1039. _x setdammage 2;
  1040. 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;
  1041. };
  1042. if (isserver) then {publicvariable "pilotscore";};
  1043. } foreach things;
  1044. xldpos1 = xlobalpos;
  1045. sleep 1.2;
  1046. newposx = xlobalpos select 0;
  1047. newposy = xlobalpos select 1;
  1048. newposx = newposx + ((ved select 0) * 1);
  1049. newposy = newposy + ((ved select 1) * 1);
  1050. xlobalpos = [newposx, newposy, xlobalpos select 2];
  1051. xldpos2 = xlobalpos;
  1052. cps2 setpos xlobalpos;
  1053. cps5 setpos xlobalpos;
  1054. cps4 setpos xlobalpos;
  1055. cps6 setpos xlobalpos;
  1056. sleep .2;
  1057. things = (xlobalpos) nearEntities [["All"],120];
  1058. {
  1059. if (_x != plane && _x != driver plane) then {
  1060. if (isserver) then {
  1061. if (side _x == east) then {
  1062. (driver plane) addscore 1;};
  1063. pilotscore = score (driver plane);
  1064. sleep .3;
  1065. x = x + 1;};
  1066. cps6 setpos getpos _x;
  1067. 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;};
  1068. } foreach things;
  1069. if (isserver) then {publicvariable "pilotscore";};
  1070. clight7 = "#lightpoint" createVehicleLocal xlobalpos;
  1071. clight7 setlightBrightness 1;
  1072. clight7 setlightAmbient[1, .2, 0];
  1073. clight7 setlightColor[1, .2, 0];
  1074. newposx = newposx + ((ved select 0) * 1);
  1075. newposy = newposy + ((ved select 1) * 1);
  1076. xlobalpos = [newposx, newposy, xlobalpos select 2];
  1077. things = (xlobalpos) nearEntities [["All"],120];
  1078. cps4 setpos xlobalpos;
  1079. cps2 setpos xlobalpos;
  1080. cps5 setpos xlobalpos;
  1081. cps6 setpos xlobalpos;
  1082. sleep 2;
  1083. deletevehicle cps4;
  1084. {
  1085. sleep .2;
  1086. cps2 setpos xldpos2;
  1087. cps5 setpos xldpos2;
  1088. if (_x != plane && _x != driver plane) then {
  1089. cps6 setpos getpos _x;
  1090. if (isserver) then {
  1091. if (side _x == east) then {
  1092. (driver plane) addscore 1;};
  1093. pilotscore = score (driver plane);
  1094. sleep .3;
  1095. x = x + 1;};
  1096. 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;};
  1097.  
  1098. } foreach things;
  1099. if (isserver) then {publicvariable "pilotscore";};
  1100. cps2 setpos xldpos1;
  1101. cps6 setpos xldpos1;
  1102. cps5 setpos xldpos2;
  1103. sleep 1;
  1104. cps2 setpos xldpos2;
  1105. cps6 setpos xldpos2;
  1106. cps5 setpos xldpos2;
  1107. clight8 = "#lightpoint" createVehicleLocal xlobalpos;
  1108. clight8 setlightBrightness 3;
  1109. clight8 setlightAmbient[1, 1, 1];
  1110. clight8 setlightColor[1, 1, 1];
  1111. sleep 5;
  1112. deletevehicle cps3;
  1113. deletevehicle clight8;
  1114. cps2 setpos xlobalpos;
  1115. cps6 setpos xlobalpos;
  1116. cps5 setpos xlobalpos;
  1117. while {score (driver plane) < pilotscore} do {
  1118. pilotscore = pilotscore + 1;
  1119. };
  1120. if (debug) then {hint format ["%1 is score " , pilotscore];};
  1121. deletevehicle cps2;
  1122. sleep 3;
  1123. deletevehicle clight8;
  1124. cps2 setpos xldpos1;
  1125. cps6 setpos xldpos1;
  1126. cps5 setpos xldpos1;
  1127. sleep 3;
  1128. sleep 4;
  1129. things = (xldpos1) nearEntities [["All"],110];
  1130. {
  1131. if (_x != plane && _x != driver plane) then {
  1132. sleep .1;
  1133.  
  1134. 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;};
  1135. } foreach things;
  1136. cps6 setpos xldpos2;
  1137. deletevehicle cps2;
  1138. sleep 4;
  1139. cps6 setpos xlobalpos;
  1140. cps5 setpos xlobalpos;
  1141. sleep 4;
  1142. things = (xldpos2) nearEntities [["All"],120];
  1143. {
  1144. if (_x != plane && _x != driver plane) then {
  1145. sleep .1;
  1146. 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;};
  1147. } foreach things;
  1148. cps6 setpos xldpos1;
  1149. cps5 setpos xldpos1;
  1150. sleep 4;
  1151. cps6 setpos xldpos2;
  1152. cps5 setpos xldpos2;
  1153. sleep 4;
  1154. things = (xlobalpos) nearEntities [["All"],120];
  1155. {
  1156. if (_x != plane && _x != driver plane) then {
  1157. sleep .1;
  1158. 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;};
  1159. } foreach things;
  1160. cps6 setpos xlobalpos;
  1161. cps5 setpos xldpos2;
  1162. sleep 4;
  1163. cps6 setpos xldpos1;
  1164. cps5 setpos xldpos1;
  1165. sleep 4;
  1166. things = (xldpos1) nearEntities [["All"],110];
  1167. {
  1168. if (_x != plane && _x != driver plane) then {
  1169. sleep .1;
  1170. 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;};
  1171. } foreach things;
  1172. cps6 setpos xldpos2;
  1173. deletevehicle cps5;
  1174. sleep 10;
  1175. things = (xldpos2) nearEntities [["All"],120];
  1176. {
  1177. if (_x != plane && _x != driver plane) then {
  1178. sleep .1;
  1179. 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;};
  1180. } foreach things;
  1181. sleep 10;
  1182. deletevehicle clight6;
  1183. deletevehicle clight7;
  1184. deletevehicle cps6;
  1185. };
  1186. }] call CBA_fnc_globalExecute;
  1187. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement