mmmyum

0.53.4 RC2

May 2nd, 2013
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.64 KB | None | 0 0
  1. ///// ///// ///// ///// ///// ///// ///// ///// /////
  2. /////////////////////////////////////////////////////////////////////////////////////
  3. ///////////////mmmyum's random animated air raid dayz////////////////////////////////
  4. /////////////////////////////////////////////////////////////////////////////////////
  5. // v0.53.4a may 2 2013 6pmEST
  6. // decided to get you guys some kind of update with some of the requested features.
  7. // non-animated version will not be updated at this time, maybe later if there is demand.
  8. // to do following the code
  9. // don't forget to read the readme! (below)
  10. //
  11. //-------------------------------------------------------------------------------------------------------------
  12. // README
  13. // README
  14. // README
  15. // change SETUP sections
  16. // change SETUP section later in code if you want custom bomber spawn in and spawn out locations
  17. // change SET UP AI CODE section if you want AI spawns
  18. // read further comments if you'd like to customize further
  19. // note: if you fuck up formatting, especially for _loc
  20. // it will not work
  21. //
  22. //!!!!!!!!!!!!!!!!!!!!!! IMPORTANT SETUP VALUES: MUST SET THESE FOR CODE TO WORK PROPERLY FOR YOU
  23. //_rmodyn ----- _useRandChoice ---------- _useRandBomb ------------ _spawnynAI -------------_spawnnumAI
  24. //locations list - change if you want less/different locations - if you change me, random(##) must represent number of cases.
  25. //
  26. //---------------------------------------------------------------------------------------------------------------
  27. //////////////////////////////BEGIN FILE
  28.  
  29. private ["_preWaypointPos","_spawnMarker","_spawnRadius","_x","_wp","_espl","_sound","_duration","_aispawncoords","_aispawn","_rndSel","_loc","_city","_z","_xx","_y","_coords","_target","_posdebug","_heliModel","_heliStart","_safetyPoint","_bomberName","_positionLand","_bomber","_landingzone2","_aigroup2","_helipilot2","_wp2","_pos","_siren","_pos1","_bombardDone","_wp3","_repeat","_break","_choice","_rmodyn","_preWaypoints","_sounddist","_ray","_pos2","_targetpos","_poswhistl","_sirenB","_citySwing","_wpT","_citySwing2","_wpT2","_wpLand","_rndSlp","_esp2","_useRandChoice","_useRandBomb","_aiSpawnX","_aiSpawnY","_spawnynAI","_spawnnumAI","_wpLandSpawn","_numbeofBombs","_esp3","_posEsp3","_debugPosEs","_debugPosEs1","_bomberDisT","_sirenPlayCnt","_randomLyn"];
  30.  
  31. sleep 5;
  32.  
  33. ////////////////////////////////////////////////////SETUP SETUP SETUP//SETUP SETUP SETUP//SETUP SETUP SETUP//SETUP SETUP SETUP//SETUP SETUP SETUP
  34. _repeat = 30; //times to repeat//number of times to cycle complete code (pick new place to bomb)
  35. _break = 240; //time to break between attacks, in seconds (time between cycles)
  36. _choice = 1; //type of bombing 1 light, 2 medium, 3 heavy
  37. _randomLyn = true; //true if you want random locations (be sure to set static location otherwise!)
  38. _loc = ["BalottaAirstrip",1.5,4829.9868,2450.1104]; //Set to static location format ["name",z,x,y] //skip if using random locations
  39. _city = "BalottaAirstrip"; //Set to string name of static location//allows for custom name in rpt
  40. _useRandChoice = true; //true if you want random choice of type of bomb per bomb
  41. _useRandBomb = true; //true if you want an extra random bomb
  42. _numbeofBombs = 60; // how many bombs are dropped assuming 1 per cycle
  43. _rmodyn = true; //true if you have rMod, false if you don't (choice of heli bomber) //mmmyum - it may work even without rmod as reported by users!
  44. _preWaypoints = 1; //add waypoints before arriving at location. //mmmyum testing now
  45. _sounddist = 6000; //distance sounds are audible at
  46. _ray = 120; //ray of bombing
  47. _spawnynAI = true; //true if you want AIs to spawn (sometimes) //MUST SET UP AI CODE for your particular method of spawning AI
  48. _spawnnumAI = 7; //number of times you want AIs to spawn MUST SET UP AI CODE
  49. ////////////////////////////////////////////////////END SETUP//END SETUP//END SETUP//END SETUP//END SETUP//END SETUP//END SETUP//END SETUP
  50.  
  51. //Initialize
  52. _spawnMarker = 'center';
  53. _spawnRadius = 4000;
  54. _xx = 4829.9868;
  55. _y = 2450.1104;
  56. _z = 1.5;
  57. //set
  58. _z = _loc select 1;
  59. _xx = _loc select 2;
  60. _y = _loc select 3;
  61. _coords = [_xx,_y,_z];
  62. diag_log format ["RANDOM WORLDSPACE: Initializing defaults... %1 | %2 %3 %4| RANDOM ON: %5",_city,_xx,_y,_z,_randomLyn];
  63.  
  64.  
  65. //BEGIN LOOP! //change to While {true} do... for infinite loops
  66. While {_repeat > 1} do {
  67. _duration = _numbeofBombs;
  68.  
  69. //if option for random/static
  70. if (_randomLyn) then {
  71. _rndSel=floor(random 49); //select random number 0-49, then set loc based on the case number//change locations if you'd like, format ["name",z,x,y]//change random number to number of last case
  72. _loc=
  73. switch (_rndSel) do {
  74. case 0: {["BalottaAirstrip",1.5,4829.9868,2450.1104]};
  75. case 1: {["Berenzino",1.5,12954.624,9783.1533]};
  76. case 2: {["Bereznio2",1.5,12043.963,9091.3477]};
  77. case 3: {["BlackMountain",1.5,10276.416,12049.6640]};
  78. case 4: {["Bor",1.5,3320.1643,3938.3496]};
  79. case 5: {["Cherno",1.5,6743.8853,2581.1865]};
  80. case 6: {["DevilsCastle",1.5,6891.9189,11438.73]};
  81. case 7: {["DonsCamp",1.5,7788.2856,12613.048]};
  82. case 8: {["Drozhino",1.5,3442.2849,4955.7129]};
  83. case 9: {["Dubrovka",1.5,10445.011,9868.9912]};
  84. case 10: {["Electro",1.5,10480.69,2217.8027]};
  85. case 11: {["Factory",1.5,13060.078,7094.0596]};
  86. case 12: {["Gorka",1.5,9659.084,8795.334]};
  87. case 13: {["Grishno",1.5,5979.6953,10343.341]};
  88. case 14: {["Guglovo",1.5,8517.8682,6676.3276]};
  89. case 15: {["Gvozdno",1.5,8614.4316,11868.967]};
  90. case 16: {["Kabanino",1.5,5318.8369,8602.6328]};
  91. case 17: {["Kamyshovo",1.5,12127.406,3496.2185]};
  92. case 18: {["Khelm",1.5,12290.833,10904.328]};
  93. case 19: {["Komarovo",1.5,3654.0908,2475.9468]};
  94. case 20: {["Kozlovka",1.5,4483.6777,4616.1675]};
  95. case 21: {["Krastonav",1.5,11212.624,12256.609]};
  96. case 22: {["Lopatino",1.5,2780.3135,10018.82]};
  97. case 23: {["Moglievka",1.5,7544.5845,5148.7822]};
  98. case 24: {["Msta",1.5,11275.323,5495.4053]};
  99. case 25: {["Myshkino",1.5,2019.2487,7327.7178]};
  100. case 26: {["Nadezhdino",1.5,5846.4434,4706.708]};
  101. case 27: {["NEAF",1.5,12073.906,12724.305]};
  102. case 28: {["Nizhnoye",1.5,13002.393,8285.8574]};
  103. case 29: {["NovySobor",1.5,7074.4854,7683.4883]};
  104. case 30: {["NWAF",1.5,4480.0781,10375.544]};
  105. case 31: {["Orlovets",1.5,12146.174,7266.5801]};
  106. case 32: {["Pavlovo",1.5,1693.9392,3845.0657]};
  107. case 33: {["Petrovka",1.5,5014.1143,12493.039]};
  108. case 34: {["Pogorevka",1.5,4473.5957,6411.3198]};
  109. case 35: {["Polana",1.5,10753.393,8132.6606]};
  110. case 36: {["Prigorodki",1.5,7976.5557,3299.5386]};
  111. case 37: {["Pulkovo",1.5,4915.0903,5605.6401]};
  112. case 38: {["Pusta",1.5,9156.2549,3897.7598]};
  113. case 39: {["Pustoshka",1.5,3072.9629,7945.4404]};
  114. case 40: {["Rogovo",1.5,4808.0024,6805.0518]};
  115. case 41: {["Shakhovka",1.5,9654.5244,6555.2583]};
  116. case 42: {["Solnichny",1.5,13454.279,6233.647]};
  117. case 43: {["Soosnovka",1.5,2528.7561,6354.9839]};
  118. case 44: {["Staroye",1.5,10140.659,5434.4302]};
  119. case 45: {["StarySobor",1.5,6143.6167,7721.5176]};
  120. case 46: {["Tulga",1.5,12803.296,4450.7466]};
  121. case 47: {["Vybor",1.5,3815.0635,8865.0938]};
  122. case 48: {["Vyshnoye",1.5,6590.3159,6029.1128]};
  123. case 49: {["Zelenogorsk",1.5,2758.7144,5304.3457]};
  124. };
  125. _city = _loc select 0;
  126. _z = _loc select 1;
  127. _xx = _loc select 2;
  128. _y = _loc select 3;
  129. _coords = [_xx,_y,_z];
  130. diag_log format ["RANDOM WORLDSPACE: %1 | %2",_city,_coords];
  131. sleep 1;
  132. diag_log format ["RANDOM WORLDSPACE SELECTED: %1 | City: %2 | Coords: %3 %4 |||Try %5",_rndSel,_city,_xx,_y,_repeat];
  133. }; //end if random locations //otherwise static
  134.  
  135. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  136. //above ---- the worldpace is selected, coordinates stored in _coords = [_xx,_y,_z]/////////////////////////////////////////////////////////
  137. //below ---- chopper is created, flies to waypoint _coords while sirens play, hangs around till bombs are done flies off and is deleted/////////////
  138. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  139.  
  140. //CREATE TARGET///////////////
  141. _loc = createVehicle ["HeliHEmpty", _coords,[], 0, "NONE"];
  142. _target = createVehicle ["HeliHEmpty",position _loc,[], 0, "NONE"];
  143. _posdebug = position _target;
  144. diag_log format ["AIRRAID: SEL: %1 | TARGET: %2",_posdebug,_coords];
  145. sleep 2;
  146. //Random Heli-Type
  147. if (_rmodyn) then {
  148. _heliModel = ["Mi24_D","MV22"] call BIS_fnc_selectRandom;
  149. } else {
  150. _heliModel = ["UH1H_DZ","Mi17_DZ"] call BIS_fnc_selectRandom;
  151. };
  152.  
  153. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////SETUP//SETUP//SETUP
  154. //Random-Startposition - change to where you want the bomber to come from
  155. _heliStart = [[13987.627,10755.155,300],[13987.627,10755.155,300]] call BIS_fnc_selectRandom;
  156. //A Backup Waypoint, change to whatever you like - goes here after bombing
  157. _safetyPoint = [14990.6675, 10800.042];
  158. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////SETUP//SETUP//SETUP
  159.  
  160. _bomberName = getText (configFile >> "CfgVehicles" >> _heliModel >> "displayName");
  161. diag_log(format["AIRRAID: BOMBER: %1 | TYPE: %4 Start at %2 | Backup %3",_bomberName,str(_heliStart),str(_safetyPoint),_heliModel]);
  162. _positionLand = [position _target,0,200,5,0,2000,0] call BIS_fnc_findSafePos; //set chopper destination
  163. diag_log(format["AIRRAID: BOMBER: %1 moving from %2 to %3 NOW!( TIME: %4 )", _bomberName, str(_heliStart), str(_positionLand), round(time)]);
  164. //Build bomber
  165. _bomber = createVehicle [_heliModel,_heliStart, [], 0, "FLY"];
  166. _bomber setVariable["Sarge",1,true];
  167. _bomber engineOn true;
  168. _bomber flyInHeight 350;
  169. _bomber forceSpeed 180;
  170. //Create an Invisibile Landingpad near place to be bombed
  171. _landingzone2 = createVehicle ["HeliHEmpty", [_positionLand select 0, _positionLand select 1,0], [], 0, "CAN_COLLIDE"]; //_targets x,y
  172. diag_log(format["AIRRAID: BOMBER: LANDINGZONE: %1 | BOMBER POS: %2 | POS LAND: %3 | TARGET: %4",str(getPosATL _landingzone2),str(getPosATL _bomber),str(_positionLand),str(getPosATL _target)]);
  173. //Bandit woman pilot
  174. _aigroup2 = creategroup civilian;
  175. _helipilot2 = _aigroup2 createUnit ["SurvivorW2_DZ",getPos _bomber,[],0,"FORM"];
  176. _helipilot2 moveindriver _bomber;
  177. _helipilot2 assignAsDriver _bomber;
  178. sleep 0.5;
  179. if(_preWaypoints > 0) then {
  180. for "_x" from 1 to _preWaypoints do {
  181. _preWaypointPos = [getMarkerPos _spawnMarker,0,_spawnRadius,10,0,2000,0] call BIS_fnc_findSafePos;
  182. };
  183. diag_log(format["AIRRAID: BOMBER: Adding Pre-target Waypoint #%1 on %2", _x,str(_preWaypointPos)]);
  184. _wp = _aigroup2 addWaypoint [_preWaypointPos, 0];
  185. _wp setWaypointType "MOVE";
  186. //_wp setWaypointBehaviour "CARELESS";
  187. };
  188. //Tell bomber to move to target
  189. _wp2 = _aigroup2 addWaypoint [position _target, 0];
  190. _wp2 setWaypointType "MOVE";
  191.  
  192.  
  193. waituntil {(_bomber distance _positionLand) <= 6500 || not alive _bomber};
  194. _bomber flyInHeight 300;
  195. _bomber forceSpeed 260;
  196. _bomber setspeedmode "NORMAL";
  197. ///////////////////////////////////////////////////////////////////START SIRENS/////////////////////////////////////////////////////
  198. _pos = position _target;
  199. diag_log format ["AIRRAID: INCOMING ATTACK: Sounding Siren at: %1 %2",_pos,_wp2];
  200. //Create sirens
  201. _siren = createVehicle ["HeliHEmpty",position _target,[], 0, "NONE"];
  202. _sirenB = createVehicle ["HeliHEmpty",position _target,[], 0, "NONE"];
  203. _pos1 = position _siren;
  204. diag_log format ["AIRRAID: DEBUG: SIREN: %1 | TARGET: %2 | POS_TARGET %3",_pos1,_coords,_pos];
  205. diag_log(format["AIRRAID: BOMBER: %1 is at %2!", _bomberName, str(getPosATL _bomber)]);
  206. [nil,_siren,rSAY,['eve', _sounddist]] call RE;
  207. sleep 2;
  208. [nil,_sirenB,rSAY,['puk', _sounddist]] call RE;
  209.  
  210. _bomberDisT = _bomber distance _target;
  211. diag_log(format["AIRRAID: BOMBER: DISTANCE: %1 | POSITION: %2",_bomberDisT,str(getPosATL _bomber)]);
  212. _sirenPlayCnt = 0;
  213. while {(_bomberDisT < 7500) and (_bomberDisT > 1000) and (_sirenPlayCnt < 15)} do {
  214. diag_log(format["AIRRAID: Playing Siren at %1 | Siren Nam %2 | Loop Num: %3",str(getPosATL _siren),_sounddist,_sirenPlayCnt]);
  215. [nil,_siren,rSAY,['nam', _sounddist]] call RE;
  216. sleep 9;
  217. _rndSlp = floor(random 3);
  218. sleep _rndSlp;
  219. _bomberDisT = _bomber distance _pos;
  220. sleep 1;
  221. _sirenPlayCnt = _sirenPlayCnt + 1;
  222. };
  223. diag_log(format["AIRRAID: BOMBER: DISTANCE: %1 | POSITION: %2",_bomberDisT,str(getPosATL _bomber)]);
  224. [nil,_siren,rSAY,['eve', _sounddist]] call RE;
  225. sleep 4;
  226. [nil,_sirenB,rSAY,['puk', _sounddist]] call RE;
  227. sleep 7;
  228.  
  229. _bomber flyInHeight 350;
  230. _bomber forceSpeed 180;
  231. _bomber setspeedmode "NORMAL";
  232. diag_log(format["AIRRAID: BOMBER: %1 is at %2!", _bomberName, str(getPosATL _bomber)]);
  233. [nil,_siren,rSAY,['eve', _sounddist]] call RE;
  234. sleep 12;
  235. [nil,_sirenB,rSAY,['puk', _sounddist]] call RE;
  236. sleep 3;
  237.  
  238. waituntil {(_bomber distance _target) <= 1500 || not alive _bomber};
  239. _bomber flyInHeight 360;
  240. _bomber forceSpeed 90;
  241. _bomber setspeedmode "NORMAL";
  242. [nil,_sirenB,rSAY,['nam', _sounddist]] call RE;
  243. _citySwing = [position _target,0,20,1,0,2000,0] call BIS_fnc_findSafePos; //set chopper cycle move back and forth over city
  244. _wpT = _aigroup2 addWaypoint [_citySwing, 0];
  245. _wpT setWaypointType "MOVE";
  246. [nil,_siren,rSAY,['eve', _sounddist]] call RE;
  247. sleep 3;
  248. _citySwing2 = [position _target,20,45,1,0,2000,0] call BIS_fnc_findSafePos; //set chopper cycle move back and forth over city
  249. _wpT2 = _aigroup2 addWaypoint [_citySwing2, 0];
  250. _wpT2 setWaypointType "MOVE";
  251. diag_log(format["AIRRAID: BOMBER: %1 Bombing Initialize: arrived at %2!, ", _bomberName, str(getPosATL _bomber)]);
  252. [nil,_siren,rSAY,['nam', _sounddist]] call RE;
  253.  
  254. ///////////////////////////////////////////////////START BOMBING////////////////////////////////////////////////////////////////////
  255. _pos2 = getPosATL _target;
  256. diag_log format ["AIRRAID: Bombing Area: %1 | ATL debug: %2",_posdebug,_pos2];
  257. _debugPosEs = [getPosATL _bomber];
  258. _debugPosEs1 = _debugPosEs select 0;
  259. _debugPosEs1 set [2, 0.1];
  260. sleep 0.2;
  261. _esp3 = createVehicle ["SH_105_HE",_debugPosEs1,[], 0, "NONE"];
  262. _posEsp3 = position _esp3;
  263. diag_log format ["AIRRAID: DEBUG ESP3: %1 | debugPosEs: %2 | debugPosEs1: %3",_posEsp3,_debugPosEs,_debugPosEs1];
  264. ///////////////////////////debug
  265. [nil,_sirenB,rSAY,['puk', _sounddist]] call RE;
  266. sleep 1;
  267. [nil,_siren,rSAY,['nam', _sounddist]] call RE;
  268.  
  269. While {_duration > 0} do {
  270. if (not alive _bomber) exitWith{diag_log format ["AIRRAID: BOMBER DESTROYED: %1",_bomberName]};
  271. if (_useRandChoice) then {
  272. _choice = floor(random 3);
  273. };
  274. _sound = createVehicle ["HeliHEmpty",position _target,[], _ray, "NONE"];
  275. [nil,_sound,rSAY,['mortar1', _sounddist]] call RE;
  276. sleep 2;
  277. If (_choice == 0) then {
  278. _espl = createVehicle ["SH_105_HE",position _sound,[], 0, "NONE"];
  279. };
  280. If (_choice == 1) then {
  281. _espl = createVehicle ["SH_105_HE",position _sound,[], 0, "NONE"];
  282. };
  283. If (_choice == 2) then {
  284. _espl = createVehicle ["SH_125_HE",position _sound,[], 0, "NONE"];
  285. };
  286. If (_choice == 3) then {
  287. _espl = createVehicle ["BO_GBU12_LGB",position _sound,[], 0, "NONE"];
  288. };
  289. //sleep 0.1;
  290. if (_duration > 58 || _duration < 2) then {
  291. [nil,_siren,rSAY,['puk', _sounddist]] call RE;
  292. _pos2 = getPosATL _espl;
  293. _poswhistl = getPosATL _sound;
  294. _targetpos = getPosATL _target;
  295. diag_log format ["AIRRAID: BOMB: %1 | TARGET: %2 | NUMBER: %3 | SOUND %4 | CHOICE %5",str(_pos2),_targetpos,_duration,_poswhistl,_choice];
  296. };
  297. _duration = _duration - 1;
  298. sleep (random 2);
  299. if (_useRandBomb) then {
  300. [nil,_sound,rSAY,['mortar1', _sounddist]] call RE;
  301. sleep 1;
  302. _esp2 = createVehicle ["SH_105_HE",position _sound,[], 0, "NONE"];
  303. };
  304. deletevehicle _sound;
  305.  
  306. }; // Close while loop. loop while _duration >1
  307. _bombardDone = true; //set done bombing
  308. ///////////////////////////////////////////////////END SIRENS AND BOMBING, HELI LOWER TO GROUND, (SPAWN AIs), FLY AWAY//////////////////////////////////////////////////////////////
  309.  
  310. //waituntil {_bombardDone}; ///////////////////hover over town until town is bombed to shit
  311. sleep 2;
  312. _wpLandSpawn = [position _landingzone2,5,120,4,0,2000,0] call BIS_fnc_findSafePos; //set chopper cycle move back and forth over city
  313. _wpLand = _aigroup2 addWaypoint [_wpLandSpawn, 0];
  314. _wpLand setWaypointType "MOVE";
  315. _bomber flyInHeight 100;
  316. _bomber forceSpeed 140;
  317. _bomber setspeedmode "NORMAL";
  318. sleep 15;
  319. if (_heliModel == "MV22") then { _bomber flyInHeight 35; } else {
  320. _bomber flyInHeight 15;
  321. };
  322. _bomber forceSpeed 0;
  323. _bomber setspeedmode "NORMAL";
  324. sleep 16;
  325. diag_log(format["AIRRAID: BOMBER: %1 has Completed Bombing at %2!", _bomberName, str(getPosATL _bomber)]);
  326. if (_spawnynAI) then {
  327. if (_spawnnumAI > 0) then {
  328. _aispawncoords = position _bomber;
  329. sleep 15;
  330. diag_log(format["AIRRAID: BOMBER: AISPAWN: %1 | NUMBER %2",_aispawncoords,_spawnnumAI]);
  331. _aiSpawnX = _aispawncoords select 0;
  332. _aiSpawnY = _aispawncoords select 1;
  333. _spawnnumAI = _spawnnumAI - 1;
  334.  
  335. /////////////////////////////////////////////////////////////////// //SET UP AI CODE//SET UP AI CODE//SETUP SETUP SETUP//SETUP SETUP SETUP
  336. _aispawn = [[_aiSpawnX,_aiSpawnY,0],5000,20,5] execVM "units\add_unit_server_band.sqf"; //whole map waypoints//SETUP AI CODE HERE SETUP AI CODE HERE SETUP AI CODE HERE
  337. //THIS is how I call AI spawns on my server, you will need to set it up for your own code
  338. //use _aiSpawnX for x coords and _aiSpawnY for y coords - copy how you call AI spawn coords
  339. //SARGE's AI setup example coming soon - when I got time to install it
  340. /////////////////////////////////////////////////////////////// //SET UP AI CODE//SET UP AI CODE//SETUP SETUP SETUP//SETUP SETUP SETUP END SETUP
  341.  
  342. };
  343. };
  344. //Giving the bomber some time to leave
  345. sleep 15;
  346.  
  347. //Adding a last Waypoint up in the North, to send bomber away after completion. Chane this location (_safetypoint) to where you want the AI to seem to originate from
  348. _wp3 = _aigroup2 addWaypoint [_safetyPoint, 0];
  349. _wp3 setWaypointType "MOVE";
  350. //Get position of the helis
  351. //_posBomb = [getpos _bomber select 0, getpos _bomber select 1,0];
  352. sleep 2;
  353. _bomber forceSpeed 200;
  354. _bomber flyInHeight 300;
  355. _bomber setspeedmode "NORMAL";
  356. diag_log(format["AIRRAID: BOMBER: %1 Leaving Area %2", _bomberName, str(getPosATL _bomber)]);
  357.  
  358. //////////////////////////////////////////////////////////CLEAN UP//CLEAN UP//CLEAN UP//
  359. sleep 15;
  360. waituntil {(_bomber distance _safetyPoint) <= 1000 || not alive _bomber};
  361. _bomber forceSpeed 200;
  362. _bomber flyInHeight 150;
  363. _bomber setspeedmode "NORMAL";
  364. sleep 7;
  365. deletevehicle _helipilot2;
  366. deletevehicle _bomber;
  367. sleep 0.1;
  368. deletevehicle _landingzone2;
  369. sleep 0.1;
  370. _repeat = _repeat - 1;
  371. sleep 0.1;
  372. deletevehicle _siren;
  373. sleep 0.1;
  374. deletevehicle _loc;
  375. sleep 0.1;
  376. deletevehicle _target;
  377. diag_log format ["AIRRAID: Going down for sleep: Repeat:%1 | Sleep:%2",_repeat,_break];
  378. sleep _break;
  379. }; //close while loop. loop - while _repeat > 1
  380. exit
  381.  
  382. ///////////////////////////////////////////TO DO
  383. //
  384. //bombs start to drop from chopper pos as it hits city borders
  385. ///////////////////-- UP NEXT! see your rpt debug and report if it matches the bomber position message in the forum.
  386. //////////////////////////////also report if the heli seems to be relatively overtop of the town that should be bombed, but maybe still moving a bit.
  387. //crash site spawn if bomber destroyed
  388. //AI parachutes?
  389. //
  390. //nuke options (this is still a ways off)
  391. //
Advertisement
Add Comment
Please, Sign In to add comment