Advertisement
Mikoi

Untitled

Oct 21st, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.75 KB | None | 0 0
  1. /*
  2.  
  3. Null = [] execVM "Scripts\MK_Missions\Shared\MK_Advance.sqf";
  4.  
  5. */
  6.  
  7. ADV_STATE_1 = 20;
  8. ADV_STATE_2 = 20;
  9.  
  10. if (isNil "ADV_GRP_1") then {} else {{deleteVehicle _x} forEach units ADV_GRP_1;};
  11. if (isNil "lvgroup900") then {} else {{deleteVehicle _x} forEach units lvgroup900;};
  12. if (isNil "lvgroup901") then {} else {{deleteVehicle _x} forEach units lvgroup901;};
  13. if (isNil "lvgroup902") then {} else {{deleteVehicle _x} forEach units lvgroup902;};
  14. if (isNil "lvgroup903") then {} else {{deleteVehicle _x} forEach units lvgroup903;};
  15. if (isNil "lvgroup904") then {} else {{deleteVehicle _x} forEach units lvgroup904;};
  16.  
  17. //["MK_ADVANCED"] call BIS_fnc_deleteTask;
  18.  
  19. _MISSION_SIDE_SELECTION_1 = ["West", "East"] call BIS_fnc_selectRandom;
  20.  
  21. sleep 5;
  22.  
  23. ADV_STATE_1 = 0;
  24. ADV_STATE_2 = 0;
  25. /*
  26. LOCATION SETUP
  27. */
  28.  
  29. _LOCATION = Floor (random count Advance_Select);
  30.  
  31. _LOCATION_MARKER = Advance_Select select _LOCATION;
  32.  
  33.  
  34. switch (_LOCATION_MARKER) do
  35. {
  36. case "Lakatoro": {DEFENCE_LOCATIONS = DEF_Lakatoro};
  37. case "Power_Plant": {DEFENCE_LOCATIONS = DEF_Power_Plant};
  38. case "Main_City": {DEFENCE_LOCATIONS = DEF_Main_City};
  39. case "Tuvanaka": {DEFENCE_LOCATIONS = DEF_Tuvanaka};
  40. case "Katkoula": {DEFENCE_LOCATIONS = DEF_Katkoula};
  41. case "Temple_1": {DEFENCE_LOCATIONS = DEF_Temple_1};
  42. case "Lumber_Yard": {DEFENCE_LOCATIONS = DEF_Lumber_Yard};
  43. case "Comms_Bravo": {DEFENCE_LOCATIONS = DEF_Comms_Bravo};
  44. };
  45.  
  46. /*
  47. SITUATION
  48. */
  49. _01_SIT_RND_1 = [
  50. "The enemy has made Tanoa a war zone after the local government was overthrown by the rebel forces a few months ago. We have been slowly losing ground to the advancing rebel forces with the assistance from the enemy, the only thing that has enabled us to hold on is the air power from the fighter groups. "
  51. ] call BIS_fnc_selectRandom;
  52.  
  53. _02_SIT_RND_2 = [
  54. "As of last night the main fighter group may have to move further out to sea due to approaching the enemy naval forces far out numbering ours, this now means we are on a timer. We need to carry on and as such reports have come in about some enemy activity increasing over the last few days."
  55. ] call BIS_fnc_selectRandom;
  56.  
  57. _03_SIT_RND_3 = [
  58. "We need to act of this information fast before the enemy are able to take a strong foothold here. The continued movements of the enemies forces throughout Tanoa has the higher ups worried, and with limited supplies coming into the country we may not be able to hold on for much longer. "
  59. ] call BIS_fnc_selectRandom;
  60.  
  61. _04_SIT_RND_4 = [
  62. "The only advantage we have over our enemy is air superiority, however that may not last for to much longer. Enemy forces have access to fighters and bombers however they lack the numbers for air power at the present time and they may position increased Anti-Air assets around the operations area."
  63. ] call BIS_fnc_selectRandom;
  64.  
  65. /*
  66. WEATHER DESCRIPTIONS
  67. */
  68.  
  69. _05_WEATHER_Val = FOGVal_Desc;
  70.  
  71. _06_WEATHER_Dec = FOGDec_Desc;
  72.  
  73. _07_WEATHER_Base = FOGBase_Desc;
  74.  
  75. _08_WEATHER_Overcast = Overcast_Desc;
  76.  
  77. _09_WEATHER_Rain = Rain_Desc;
  78.  
  79. _10_WEATHER_Description = WeatherTimerDesc;
  80.  
  81. /*
  82. TERRAIN
  83. */
  84.  
  85. _11_TERRAIN_RND_1 = [
  86. "Tanoa is characterized by its rugged topography, with little flat land apart from the Lovoni Valley in the centre of the island."
  87. ] call BIS_fnc_selectRandom;
  88.  
  89. _12_TERRAIN_RND_2 = [
  90. "There is one road which circles the whole island. Connecting most of the main towns and cities"
  91. ] call BIS_fnc_selectRandom;
  92.  
  93. _13_TERRAIN_RND_3 = [
  94. "The island is an eroded volcanic crater with a narrow belt of flat to undulating country between the encircling lagoon and the steep crater sides."
  95. ] call BIS_fnc_selectRandom;
  96.  
  97. _14_TERRAIN_RND_4 = [
  98. "The highest peaks are Nadelaiovalau, with an altitude of 625 meters, in the east, and Tomuna, 526 meters, in the south."
  99. ] call BIS_fnc_selectRandom;
  100.  
  101. /*
  102. FRIENDLY FORCES
  103. */
  104.  
  105. _15_FRIENDLY_HIGH_1 = [
  106. "4th Fighter Squadron (Fightin' Fuujins) are currently deploying within the area to support all ground forces.",
  107. "13th Fighter Squadron (The Panther Pack) are currently deploying within the area to support all ground forces.",
  108. "14th Fighter Squadron (Fightin' Samurai) are currently deploying within the area to support all ground forces.",
  109. "19th Fighter Squadron (Gamecocks) are currently deploying within the area to support all ground forces.",
  110. "25th Fighter Squadron (Fighting Eagles) are currently deploying within the area to support all ground forces."
  111. ] call BIS_fnc_selectRandom;
  112.  
  113. _16_FRIENDLY_HIGH_2 = [
  114. "All Section commanders have the authority to call in CAS support from both the Fixed and Rotary winged airframes for any actions within the Area of Operations.",
  115. "All commanders will have authority to call in CAS support from the UAV, Fixed, and Rotary winged aircraft on their command for any actions within the Area of Operations."
  116. ] call BIS_fnc_selectRandom;
  117.  
  118.  
  119.  
  120. _17_FRIENDLY_ADJA_1 = [
  121. "103rd Rotary Support are currently assisting in the logistics within Tanoa",
  122. "93rd Rotary Support are currently assisting in the logistics within Tanoa",
  123. "3rd Rotary Support are currently assisting in the logistics within Tanoa",
  124. "43rd Rotary Support are currently assisting in the logistics within Tanoa",
  125. "26th Rotary Support are currently assisting in the logistics within Tanoa",
  126. "10th Rotary Support are currently assisting in the logistics within Tanoa"
  127. ] call BIS_fnc_selectRandom;
  128.  
  129. _18_FRIENDLY_ADJA_2 = [
  130. "We have authorised the use of both re-supply and transport Rotary winged support for all units deployed within the Area of Operations"
  131. ] call BIS_fnc_selectRandom;
  132.  
  133.  
  134.  
  135. _19_FRIENDLY_SUPP_1 = [
  136. "APC's located at the main Airfield are equipped to take up the role of a Forward element HQ."
  137. ] call BIS_fnc_selectRandom;
  138.  
  139. _20_FRIENDLY_SUPP_2 = [
  140. "With the APC's deployed out in the field, friendly forces are able to conduct long range recon, fire support missions, and resupply."
  141. ] call BIS_fnc_selectRandom;
  142.  
  143. _21_FRIENDLY_SUPP_3 = [
  144. "These vehicles are equipped with Mortars for Indirect fire support, Ammunition for field supply, and Medical facilities."
  145. ] call BIS_fnc_selectRandom;
  146.  
  147. /*
  148. ENEMY FORCES
  149. */
  150.  
  151. _PlayersOnline = count allPlayers;
  152.  
  153. _ENEMY_SPAWN_LOWER = _PlayersOnline * 6;
  154.  
  155. _ENEMY_SPAWN_HIGHER = _ENEMY_SPAWN_LOWER + ([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] call BIS_fnc_selectRandom);
  156.  
  157. if (_ENEMY_SPAWN_LOWER > 40) then {_ENEMY_SPAWN_LOWER = [40,45,50,55,60] call BIS_fnc_selectRandom;};
  158.  
  159. if (_MISSION_SIDE_SELECTION_1 == "WEST") then
  160. {
  161. ENEMY_SIDE = [OPFOR, INDEPENDENT] call BIS_fnc_selectRandom;
  162. MISSION_SIDE_SELECTION_2 = WEST;
  163.  
  164. MISSION_SIDE_SELECTION_3 = EAST;
  165. MISSION_SIDE_SELECTION_4 = "EAST";
  166. }
  167. else
  168. {
  169. ENEMY_SIDE = [BLUFOR, INDEPENDENT] call BIS_fnc_selectRandom;
  170. MISSION_SIDE_SELECTION_2 = EAST;
  171.  
  172. MISSION_SIDE_SELECTION_3 = WEST;
  173. MISSION_SIDE_SELECTION_4 = "WEST";
  174. };
  175.  
  176. _ENEMY_SIDE = ENEMY_SIDE;
  177. _MISSION_SIDE_SELECTION_2 = MISSION_SIDE_SELECTION_2;
  178. _MISSION_SIDE_SELECTION_3 = MISSION_SIDE_SELECTION_3;
  179. _MISSION_SIDE_SELECTION_4 = MISSION_SIDE_SELECTION_4;
  180.  
  181.  
  182. _ENEMY_VEHICLE_PRESENT = [True, False] call BIS_fnc_selectRandom;
  183.  
  184. _ENEMY_AIRCRAFT_PRESENT = [True, False] call BIS_fnc_selectRandom;
  185.  
  186. if (_ENEMY_SIDE == OPFOR) then
  187. {
  188. ENEMY_SELECT_SECTION = [OPF_Section_Main, OPF_Section_Patrol, OPF_Section_Gunner, OPF_Section_Rifleman, OPF_Section_AntiTank];
  189. ENEMY_SELECT_SIDE = "EAST";
  190. };
  191. if (_ENEMY_SIDE == INDEPENDENT) then
  192. {
  193. ENEMY_SELECT_SECTION = [IND_Section_Main, IND_Section_Patrol, IND_Section_Gunner, IND_Section_Rifleman, IND_Section_AntiTank];
  194. ENEMY_SELECT_SIDE = "GUER";
  195. };
  196. if (_ENEMY_SIDE == BLUFOR) then
  197. {
  198. ENEMY_SELECT_SECTION = [IND_Section_Main, IND_Section_Patrol, IND_Section_Gunner, IND_Section_Rifleman, IND_Section_AntiTank];
  199. ENEMY_SELECT_SIDE = "WEST";
  200. };
  201.  
  202. _ENEMY_SELECT_SECT = ENEMY_SELECT_SECTION call BIS_fnc_selectRandom;
  203.  
  204. _ENEMY_SELECT_SIDE = ENEMY_SELECT_SIDE;
  205.  
  206. switch (_ENEMY_SELECT_SECT) do
  207. {
  208. case OPF_Section_Main: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. They appear to have AT, AA, and heavy weapons.";};
  209. case OPF_Section_Patrol: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. We suspect from the equipment that we could manage to make out, is that they form part of the highly skilled Viper assault squads.";};
  210. case OPF_Section_Gunner: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. From all reports from our recon team near the location they spotted a heavy weapons team moving towards the area of operations";};
  211. case OPF_Section_Rifleman: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad moving in and around the area, they appear to be well equipped and are commanded by a known section commander that has successfully assaulted military bases around Tanoa";};
  212. case OPF_Section_AntiTank: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. A large force of Anti-Tank Infantry has been spotted in and around the area where the mission will be taking place.";};
  213.  
  214. case IND_Section_Main: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. They appear to have AT, AA, and heavy weapons.";};
  215. case IND_Section_Patrol: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. We suspect from the equipment that we could manage to make out, is that they form part of the highly skilled Horiun Special Operations.";};
  216. case IND_Section_Gunner: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. From all reports from our recon team near the location they spotted a heavy weapons team moving towards the area of operations";};
  217. case IND_Section_Rifleman: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad moving in and around the area, they appear to be well equipped and are commanded by a known section commander that has successfully assaulted military bases around Tanoa";};
  218. case IND_Section_AntiTank: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. A large force of Anti-Tank Infantry has been spotted in and around the area where the mission will be taking place.";};
  219.  
  220. case BLU_Section_Main: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. They appear to have AT, AA, and heavy weapons.";};
  221. case BLU_Section_Patrol: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. We suspect from the equipment that we could manage to make out, is that they form part of the highly skilled special forces section.";};
  222. case BLU_Section_Gunner: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. From all reports from our recon team near the location they spotted a heavy weapons team moving towards the area of operations";};
  223. case BLU_Section_Rifleman: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad moving in and around the area, they appear to be well equipped and are commanded by a known section commander that has successfully assaulted military bases around Tanoa";};
  224. case BLU_Section_AntiTank: {ENEMY_UNIT_DESCRIPTION = "All intelligence points towards a standard infantry make up, with what appears to be a more specialised squad. A large force of Anti-Tank Infantry has been spotted in and around the area where the mission will be taking place.";};
  225. };
  226.  
  227. switch (_ENEMY_VEHICLE_PRESENT) do
  228. {
  229. case true: {ENEMY_VEHICLE_DESCRIPTION = "They will have vehicles assets within the area, most of their assets will feature heavy armour and 50cal weapon systems.";};
  230. case false: {ENEMY_VEHICLE_DESCRIPTION = "They will not have vehicles assets within the area as far as our intelligence forces are aware.";};
  231. };
  232.  
  233. switch (_ENEMY_AIRCRAFT_PRESENT) do
  234. {
  235. case true: {ENEMY_AIRCRAFT_DESCRIPTION = "With the advance of their forces through Tanoa the continued use of air assets in the form of rotary aircraft has also increased. They use heavy armed transport helicopters to move troops to the front line, while conducting protection for ground forces within the AO. Well trained pilots.";};
  236. case false: {ENEMY_AIRCRAFT_DESCRIPTION = "They will not have air assets within the area as far as all intelligence points towards, however based off their standard tactics of transporting troops into the front line via armed helicopters you may expect an air presence shortly after the first contact.";};
  237. };
  238.  
  239. switch (_ENEMY_SIDE) do
  240. {
  241. case OPFOR: {
  242. ENEMY_SIDE_TITLE = "The Canton-Protocol Strategic Alliance Treaty (CSAT)";
  243. ENEMY_SIDE_NUM = 2;
  244. ENEMY_SIDE_STAT = east;
  245. };
  246. case INDEPENDENT: {
  247. ENEMY_SIDE_TITLE = "Freedom and Independence Army (FIA)";
  248. ENEMY_SIDE_NUM = 3;
  249. ENEMY_SIDE_STAT = resistance;
  250. };
  251. case BLUFOR: {
  252. ENEMY_SIDE_TITLE = "North Atlantic Treaty Organization (NATO)";
  253. ENEMY_SIDE_NUM = 1;
  254. ENEMY_SIDE_STAT = west;
  255. };
  256. };
  257.  
  258. _ENEMY_SELECT_NUMB = ENEMY_SIDE_NUM;
  259.  
  260. _ENEMY_SELECT_STAT = ENEMY_SIDE_STAT;
  261.  
  262. _22_ENEMY_SIZE_L = _ENEMY_SPAWN_LOWER;
  263.  
  264. _23_ENEMY_SIZE_H = _ENEMY_SPAWN_HIGHER;
  265.  
  266. _24_ENEMY_ACTI_1 = ["The reconnaissance teams have moved into location a few hours ago to gain as much intel on the enemy as possible."] call BIS_fnc_selectRandom;
  267.  
  268. _ENEMY_SPAWN_PATROL = [150, 200, 250, 300, 350, 400] call BIS_fnc_selectRandom;
  269.  
  270. switch (_ENEMY_SPAWN_PATROL) do
  271. {
  272. case 150: {ENEMY_SPAWN_PATROL_RADI = "The enemy patrols have been sighted and recorded out to around 150 m from the area.";};
  273. case 200: {ENEMY_SPAWN_PATROL_RADI = "Recon teams have determined that the patrols around are moving around 200 m from the area.";};
  274. case 250: {ENEMY_SPAWN_PATROL_RADI = "UAV photos have shown that the patrols are moving out to around 250 m from the central location.";};
  275. case 300: {ENEMY_SPAWN_PATROL_RADI = "The enemy patrols have been sighted and recorded out to around 300 m from the area.";};
  276. case 350: {ENEMY_SPAWN_PATROL_RADI = "Recon teams have determined that the patrols around are moving around 350 m from the area.";};
  277. case 400: {ENEMY_SPAWN_PATROL_RADI = "UAV photos have shown that the patrols are moving out to around 400 m from the central location.";};
  278. };
  279.  
  280. _25_ENEMY_ACTI_2 = ENEMY_SPAWN_PATROL_RADI;
  281.  
  282. _26_ENEMY_ACTI_3 = ["They have also been conducting regular movements, however not time pattern has been noticed"] call BIS_fnc_selectRandom;
  283.  
  284. switch (_LOCATION_MARKER) do
  285. {
  286. case "Lakatoro": {ADV_LOC = "The area around the Town of Lakatoro is dense terrain. The Northern approach features a dense jungle with a steep decline hill heading into the town, the Eastern approach is more open, with the main and only road heading into the area heading down a slight hill, Southern approach is a slight incline heading up to the town and the Western approach is hampered with dense trees and a walking track. The town itself is located at GR:";};
  287.  
  288. case "Power_Plant": {ADV_LOC = "The Power Plant is a primary asset within Tanoa, it provides close to 70% of the power across the island. The plant itself is in open terrain with its Northern approach being the most dense, with a hill and tree lines coming within 100m of the fence line, with a rail track moving close to the area. South is again a tree line, however less dense, The power station itself is located at GR:";};
  289.  
  290. case "Main_City": {ADV_LOC = "The main city of Georgetown controls a vital sea port, and one of the few deep water ports for larger ships. The city itself is a standard urban built up area with limited avenues of approach, tree lines and hills surround the whole area. The city itself is located at GR:";};
  291.  
  292. case "Tuvanaka": {ADV_LOC = "The city of Tuvanaka is one of the capitals around Tanoa, the AAF first took over the airfield on its island. The town is surrounded by high hills and a sea port to the south west. Observation points are located at GR: 022 116, 027 123, 022 126. The city itself is located at GR:";};
  293.  
  294. case "Katkoula": {ADV_LOC = "The town of Katkoula is located on the third largest island of Tanoa. To the north is a large open field providing limited cover of approaching forces, the west has a tree line and suitable cover allowing forces to approach, the southern area along the water line has tree lines heading close to the town itself. The city itself is located at GR:";};
  295.  
  296. case "Temple_1": {ADV_LOC = "The temple itself is located within a dense jungle with limited access. Large rock walls, cliffs and dense tight terrain will limit the use of large vehicles. The temple itself is located at GR:";};
  297.  
  298. case "Lumber_Yard": {ADV_LOC = "Forming a check point on the main MSR heading south on the main island of Tanoa to the airfield, the Lumber Yard features a good staging location to limit supply to both the northern and southern regions of Tanoa. The area itself has a cliff face to the North West, and dense terrain surrounding. The Yard itself is located at GR:";};
  299.  
  300. case "Comms_Bravo": {ADV_LOC = "The communications base near one of the highest points of Tanoa allows for clear comms all over the islands, and a major tactical advantage. Securing this sight will both limit the enemies ability to maintain command and control, but allow friendly forces the ability to maintain communications all across Tanoa. The array is surrounded by jungle, with its northern approach having more open terrain. Steep hills to the south and east allows for a clean approach, but limit visibility while moving up to the location, the old research base to the west allows for clear line of sight into the Communications base. The area itself is located at GR:";};
  301. };
  302.  
  303. _27_ENEMY_LOC_1 = ADV_LOC;
  304.  
  305. _28_ENEMY_LOC_2 = mapGridPosition getMarkerPos _LOCATION_MARKER;
  306.  
  307. _29_ENEMY_LOC_3 = [""] call BIS_fnc_selectRandom;
  308.  
  309. _30_ENEMY_UNIT_1 = ENEMY_SIDE_TITLE;
  310.  
  311. _31_ENEMY_UNIT_2 = ["has moved a large amount of forces around the battle space, they have also increased Fixed and Rotary winged aircraft around Tanoa."] call BIS_fnc_selectRandom;
  312.  
  313. _32_ENEMY_UNIT_3 = ENEMY_UNIT_DESCRIPTION;
  314.  
  315. _33_ENEMY_UNIT_4 = ENEMY_VEHICLE_DESCRIPTION;
  316.  
  317. _34_ENEMY_UNIT_5 = ENEMY_AIRCRAFT_DESCRIPTION;
  318.  
  319. _ENEMY_HOUR_MOD = [1,1.5,2,2.5,3,3.5,4,4.5,5,5.5] call BIS_fnc_selectRandom;
  320.  
  321. _35_ENEMY_HOUR = [dayTime - _ENEMY_HOUR_MOD, "HH:MM"] call BIS_fnc_timeToString;
  322.  
  323. _TIME_DATE_NOW = date;
  324.  
  325. _month = _TIME_DATE_NOW select 1;
  326.  
  327. switch (_month) do
  328. {
  329. case 1: { TIME_MONTH = "JAN"; };
  330. case 2: { TIME_MONTH = "FEB"; };
  331. case 3: { TIME_MONTH = "MAR"; };
  332. case 4: { TIME_MONTH = "APR"; };
  333. case 5: { TIME_MONTH = "MAY"; };
  334. case 6: { TIME_MONTH = "JUN"; };
  335. case 7: { TIME_MONTH = "JUL"; };
  336. case 8: { TIME_MONTH = "AUG"; };
  337. case 9: { TIME_MONTH = "SEP"; };
  338. case 10: { TIME_MONTH = "OCT"; };
  339. case 11: { TIME_MONTH = "NOV"; };
  340. case 12: { TIME_MONTH = "DEC"; };
  341. };
  342.  
  343. _36_ENEMY_TIME_DESC = ["H, local time. This information is from both credible sources and recon elements within the area."] call BIS_fnc_selectRandom;
  344.  
  345. _37_ENEMY_TIME_DAY = _TIME_DATE_NOW select 2;
  346.  
  347. _38_ENEMY_TIME_MONTH = TIME_MONTH;
  348.  
  349. _39_ENEMY_TIME_YEAR = _TIME_DATE_NOW select 0;
  350.  
  351. switch (_ENEMY_SIDE) do
  352. {
  353. case OPFOR: {ENEMY_STAND = "Standard CSAT Weapon systems";};
  354. case BLUFOR: {ENEMY_STAND = "Standard NATO Weapon systems";};
  355. case INDEPENDENT: {ENEMY_STAND = "Standard AAF Weapon systems";};
  356. };
  357.  
  358. _40_ENEMY_EQUIPMENT_1 = ENEMY_STAND;
  359.  
  360. switch (_ENEMY_SELECT_SECT) do
  361. {
  362. case OPF_Section_Main: {ENEMY_EQUIPMENT = "";};
  363. case OPF_Section_Patrol: {ENEMY_EQUIPMENT = "<br/>Special Forces Equipment<br/>Heavy weapon systems";};
  364. case OPF_Section_Gunner: {ENEMY_EQUIPMENT = "<br/>Heavy machine guns";};
  365. case OPF_Section_Rifleman: {ENEMY_EQUIPMENT = "";};
  366. case OPF_Section_AntiTank: {ENEMY_EQUIPMENT = "<br/>Heavy Anti-Tank weapons";};
  367.  
  368. case IND_Section_Main: {ENEMY_EQUIPMENT = "";};
  369. case IND_Section_Patrol: {ENEMY_EQUIPMENT = "<br/>Special Forces Equipment<br/>Heavy weapon systems";};
  370. case IND_Section_Gunner: {ENEMY_EQUIPMENT = "<br/>Heavy machine guns";};
  371. case IND_Section_Rifleman: {ENEMY_EQUIPMENT = "";};
  372. case IND_Section_AntiTank: {ENEMY_EQUIPMENT = "<br/>Heavy Anti-Tank weapons";};
  373.  
  374. case BLU_Section_Main: {ENEMY_EQUIPMENT = "<br/>No specialised weapon systems";};
  375. case BLU_Section_Patrol: {ENEMY_EQUIPMENT = "<br/>Special Forces Equipment<br/>Heavy weapon systems";};
  376. case BLU_Section_Gunner: {ENEMY_EQUIPMENT = "<br/>Heavy machine guns";};
  377. case BLU_Section_Rifleman: {ENEMY_EQUIPMENT = "";};
  378. case BLU_Section_AntiTank: {ENEMY_EQUIPMENT = "<br/>Heavy Anti-Tank weapons";};
  379. };
  380.  
  381. _41_ENEMY_EQUIPMENT_2 = ENEMY_EQUIPMENT;
  382.  
  383. switch (_ENEMY_SELECT_SECT) do
  384. {
  385. case OPF_Section_Main: {SPECIAL_ITEMS = "";};
  386. case OPF_Section_Patrol: {SPECIAL_ITEMS = "<br/>Anti-Thermal body armour<br/>Thermal Optics";};
  387. case OPF_Section_Gunner: {SPECIAL_ITEMS = "<br/>Anti-Tank weapons";};
  388. case OPF_Section_Rifleman: {SPECIAL_ITEMS = "";};
  389. case OPF_Section_AntiTank: {SPECIAL_ITEMS = "<br/>UAV Support";};
  390.  
  391. case IND_Section_Main: {SPECIAL_ITEMS = "";};
  392. case IND_Section_Patrol: {SPECIAL_ITEMS = "<br/>Anti-Thermal body armour<br/>Thermal Optics";};
  393. case IND_Section_Gunner: {SPECIAL_ITEMS = "<br/>Anti-Tank weapons";};
  394. case IND_Section_Rifleman: {SPECIAL_ITEMS = "";};
  395. case IND_Section_AntiTank: {SPECIAL_ITEMS = "<br/>UAV Support";};
  396.  
  397. case BLU_Section_Main: {SPECIAL_ITEMS = "";};
  398. case BLU_Section_Patrol: {SPECIAL_ITEMS = "<br/>Anti-Thermal body armour<br/>Thermal Optics";};
  399. case BLU_Section_Gunner: {SPECIAL_ITEMS = "<br/>Anti-Tank weapons";};
  400. case BLU_Section_Rifleman: {SPECIAL_ITEMS = "";};
  401. case BLU_Section_AntiTank: {SPECIAL_ITEMS = "<br/>UAV Support";};
  402. };
  403.  
  404. _42_ENEMY_EQUIPMENT_3 = SPECIAL_ITEMS;
  405.  
  406. /*
  407. MISSION
  408. */
  409.  
  410. _43_MISSION_WHEN = [dayTime, "HH:MM"] call BIS_fnc_timeToString;
  411.  
  412. _44_MISSION_WHO =
  413. [
  414. "1st Pl, Alpha - COY",
  415. "2nd Pl, Alpha - COY",
  416. "3rd Pl, Alpha - COY",
  417. "1st Pl, Bravo - COY",
  418. "2nd Pl, Bravo - COY",
  419. "3rd Pl, Bravo - COY",
  420. "1st Pl, Charlie - COY",
  421. "2nd Pl, Charlie - COY",
  422. "3rd Pl, Charlie - COY",
  423. "1st Pl, Echo - COY",
  424. "2nd Pl, Echo - COY",
  425. "3rd Pl, Echo - COY"
  426. ] call BIS_fnc_selectRandom;
  427.  
  428. _45_MISSION_WHAT =
  429. [
  430. "will seek out and destroy the enemy around GR:",
  431. "will destroy any enemy assets and equipment around GR:",
  432. "will close upon the enemy and destroy them around GR:",
  433. "will seek and destroy any enemy forces around GR:",
  434. "will conduct area clearance to destroy enemy personnel and equipment around GR:"
  435. ] call BIS_fnc_selectRandom;
  436.  
  437. _46_MISSION_WHERE = mapGridPosition getMarkerPos _LOCATION_MARKER;
  438.  
  439. _47_MISSION_WHY =
  440. [
  441. ", to hold ground for our advancing forces.",
  442. ", to secure and hold the ground for allied advancing forces.",
  443. ", to take and hold the area.",
  444. ", to enable advancing forces a foothold to continue the assault."
  445. ] call BIS_fnc_selectRandom;
  446.  
  447. _MISSION_HOUR_MOD = [2.5,3,3.5,4,4.5,5,5.5] call BIS_fnc_selectRandom;
  448.  
  449. _48_MISSION_WHEN = [dayTime + _MISSION_HOUR_MOD, "HH:MM"] call BIS_fnc_timeToString;
  450.  
  451. /*
  452. EXECUTION
  453. */
  454.  
  455. _49_EXECUTION_CMDINT_RND_1 =
  456. [
  457. "Once the area is secured, you are to defend the location until friendly forces arrive to release you. HQ will be responsible for command, control and communications for the duration of this mission."
  458. ] call BIS_fnc_selectRandom;
  459.  
  460. _50_EXECUTION_CMDINT_RND_2 =
  461. [
  462. "Any support weapons should be placed on high ground to support any operations within the Operations Area"
  463. ] call BIS_fnc_selectRandom;
  464.  
  465. _51_EXECUTION_CMDINT_RND_3 =
  466. [
  467. "It is recommended that you move into location on foot from either a Landing Zone or dismount from a vehicle convoy to avoid any engagements before we gain any intelligence on the situation on the ground."
  468. ] call BIS_fnc_selectRandom;
  469.  
  470. _52_EXECUTION_COO_SCHEME_1 =
  471. [
  472. "You should find a location to gain intel on the area to form a better understanding of the situation on ground, the use of UAV's, Air Assets or other means are at your disposal for tasking."
  473. ] call BIS_fnc_selectRandom;
  474.  
  475. _53_EXECUTION_COO_SCHEME_2 =
  476. [
  477. "Air support should be used for the duration of this mission for complete superiority of the situation."
  478. ] call BIS_fnc_selectRandom;
  479.  
  480. _54_EXECUTION_COO_SCHEME_3 =
  481. [
  482. "It would also be recommended that any fire support from DFSW would provide the domination on the ground that we require for the completion of this Mission."
  483. ] call BIS_fnc_selectRandom;
  484.  
  485. _55_EXECUTION_TASK_RND_1 =
  486. [
  487. "The Fires radio net should be controlled by the PL-COMD RTO for the duration of this Mission. There are currently no specific targets at this time, however ground observation should generate any required targets while infantry forces around within the operations area."
  488. ] call BIS_fnc_selectRandom;
  489.  
  490.  
  491. switch (_LOCATION_MARKER) do
  492. {
  493. case "Lakatoro": {EXEC_CORD = "";};
  494.  
  495. case "Power_Plant": {EXEC_CORD = "";};
  496.  
  497. case "Main_City": {EXEC_CORD = "";};
  498.  
  499. case "Tuvanaka": {EXEC_CORD = "";};
  500.  
  501. case "Katkoula": {EXEC_CORD = "";};
  502.  
  503. case "Temple_1": {EXEC_CORD = "";};
  504.  
  505. case "Lumber_Yard": {EXEC_CORD = "";};
  506.  
  507. case "Comms_Bravo": {EXEC_CORD = "";};
  508.  
  509. };
  510.  
  511. _56_EXECUTION_COORD_RND_1 = EXEC_CORD;
  512.  
  513. /*
  514. ADMINISTRATION AND LOGISTICS
  515. */
  516.  
  517. switch (_ENEMY_VEHICLE_PRESENT) do
  518. {
  519. case true: {
  520. ADMIN_EQUIPMENT_VEH = "SECTION EQUIPMENT:
  521. <br/>- Assault Rifle
  522. <br/>- Section Support Weapon
  523. <br/>- Grenade Launcher
  524. <br/>- Anti Tank Weapon
  525. <br/>- Smoke (White / Green / Red)
  526. <br/>- Medical Supplies";
  527. };
  528. case false: {
  529. ADMIN_EQUIPMENT_VEH = "SECTION EQUIPMENT:
  530. <br/>- Assault Rifle
  531. <br/>- Section Support Weapon
  532. <br/>- Grenade Launcher
  533. <br/>- Smoke (White / Green / Red)
  534. <br/>- Medical Supplies";
  535. };
  536. };
  537.  
  538. switch (_ENEMY_AIRCRAFT_PRESENT) do
  539. {
  540. case true: { ADMIN_EQUIPMENT_AIR = "- Anti-Air weapon"; };
  541. case false: { ADMIN_EQUIPMENT_AIR = " "; };
  542. };
  543.  
  544. _57_ADMINLOG_VEHICLE = ADMIN_EQUIPMENT_VEH;
  545.  
  546. _58_ADMINLOG_AIRCRAFT = ADMIN_EQUIPMENT_AIR;
  547.  
  548. /*
  549. COMMAND AND SIGNALS
  550. */
  551.  
  552. // NO CHANGE
  553.  
  554. [
  555. _MISSION_SIDE_SELECTION_2,
  556. ["MK_ADVANCED"],
  557. [
  558. ["
  559. <br/>1. SITUATION
  560. <br/>%1 %2
  561. <br/>
  562. <br/>%3 %4
  563. <br/>
  564. <br/>(1) Weather
  565. <br/>%5 %6 %7 %8 %9 %10
  566. <br/>
  567. <br/>(2) Terrain
  568. <br/>%11 %12
  569. <br/>
  570. <br/>%13 %14
  571. <br/>
  572. <br/>A. Friendly Forces
  573. <br/>(1) %15 %16
  574. <br/>
  575. <br/>(2) %17 %18
  576. <br/>
  577. <br/>(3) %19 %20 %21
  578. <br/>
  579. <br/>B. Enemy Forces
  580. <br/>(1) Size
  581. <br/> Estimated enemy presence of %22 to around %23
  582. <br/>
  583. <br/>(2) Activity
  584. <br/>%24 %25 %26
  585. <br/>
  586. <br/>(3) Location
  587. <br/>%27 %28 %29
  588. <br/>
  589. <br/>(4) Unit
  590. <br/>%30 %31
  591. <br/>
  592. <br/>%32 %33
  593. <br/>
  594. <br/>%34
  595. <br/>
  596. <br/>(5) Time
  597. <br/>The enemy forces have been recorded at around %35 %36 (%37 %38 %39)
  598. <br/>
  599. <br/>(6) Equipment (Observed)
  600. <br/>%40 %41 %42
  601. <br/>
  602. <br/>2. MISSION
  603. <br/>%44 %45 %46 %47 NLT %48 H.
  604. <br/>
  605. <br/>3. EXECUTION
  606. <br/>%49 %50 %51
  607. <br/>
  608. <br/>(1) Concept of Operation
  609. <br/>%52 %53 %54
  610. <br/>
  611. <br/>(2) Tasks
  612. <br/>%55
  613. <br/>
  614. <br/>(3) Coordination Instruction
  615. <br/>%56
  616. <br/>
  617. <br/>4. ADMINISTATION AND LOGISTICS
  618. <br/>%57
  619. <br/>%58
  620. <br/>
  621. <br/>CASEVAC plan for ground forces will be as follows:
  622. <br/>- Pri 3: Assess the injury and treat on the ground.
  623. <br/>- Pri 2: Treatment by combat medic on the ground.
  624. <br/>- Pri 1: Evacuation back to airfield for treatment via AME.
  625. <br/>
  626. <br/>FIGHTER PILOT plan of evacuation will be as follows:
  627. <br/>- Secure the area surrounding your crash site
  628. <br/>- Destroy any classified material
  629. <br/>- Radio into the ground forces your estimated location
  630. <br/>- Await further instructions from the ground commander
  631. <br/>
  632. <br/>5. COMMAND AND SIGNALS
  633. <br/>AN/PRC-152 AND AN/PRC-117 RADIO FREQUENCY
  634. <br/>(a) CH:01 ~ Infantry Ground Forces
  635. <br/>(c) CH:10 ~ Air Forces
  636. <br/>(d) CH:99 ~ Air Traffic Controller
  637. ",
  638. _01_SIT_RND_1,
  639. _02_SIT_RND_2,
  640. _03_SIT_RND_3,
  641. _04_SIT_RND_4,
  642. _05_WEATHER_Val,
  643. _06_WEATHER_Dec,
  644. _07_WEATHER_Base,
  645. _08_WEATHER_Overcast,
  646. _09_WEATHER_Rain,
  647. _10_WEATHER_Description,
  648. _11_TERRAIN_RND_1,
  649. _12_TERRAIN_RND_2,
  650. _13_TERRAIN_RND_3,
  651. _14_TERRAIN_RND_4,
  652. _15_FRIENDLY_HIGH_1,
  653. _16_FRIENDLY_HIGH_2,
  654. _17_FRIENDLY_ADJA_1,
  655. _18_FRIENDLY_ADJA_2,
  656. _19_FRIENDLY_SUPP_1,
  657. _20_FRIENDLY_SUPP_2,
  658. _21_FRIENDLY_SUPP_3,
  659. _22_ENEMY_SIZE_L,
  660. _23_ENEMY_SIZE_H,
  661. _24_ENEMY_ACTI_1,
  662. _25_ENEMY_ACTI_2,
  663. _26_ENEMY_ACTI_3,
  664. _27_ENEMY_LOC_1,
  665. _28_ENEMY_LOC_2,
  666. _29_ENEMY_LOC_3,
  667. _30_ENEMY_UNIT_1,
  668. _31_ENEMY_UNIT_2,
  669. _32_ENEMY_UNIT_3,
  670. _33_ENEMY_UNIT_4,
  671. _34_ENEMY_UNIT_5,
  672. _35_ENEMY_HOUR,
  673. _36_ENEMY_TIME_DESC,
  674. _37_ENEMY_TIME_DAY,
  675. _38_ENEMY_TIME_MONTH,
  676. _39_ENEMY_TIME_YEAR,
  677. _40_ENEMY_EQUIPMENT_1,
  678. _41_ENEMY_EQUIPMENT_2,
  679. _42_ENEMY_EQUIPMENT_3,
  680. _43_MISSION_WHEN,
  681. _44_MISSION_WHO,
  682. _45_MISSION_WHAT,
  683. _46_MISSION_WHERE,
  684. _47_MISSION_WHY,
  685. _48_MISSION_WHEN,
  686. _49_EXECUTION_CMDINT_RND_1,
  687. _50_EXECUTION_CMDINT_RND_2,
  688. _51_EXECUTION_CMDINT_RND_3,
  689. _52_EXECUTION_COO_SCHEME_1,
  690. _53_EXECUTION_COO_SCHEME_2,
  691. _54_EXECUTION_COO_SCHEME_3,
  692. _55_EXECUTION_TASK_RND_1,
  693. _56_EXECUTION_COORD_RND_1,
  694. _57_ADMINLOG_VEHICLE,
  695. _58_ADMINLOG_AIRCRAFT
  696. ],
  697. "BHQ: Secure Location",
  698. "BHQ: Secure Location"
  699. ],
  700. _LOCATION_MARKER,
  701. true,
  702. 1,
  703. true
  704. ] call BIS_fnc_taskCreate;
  705.  
  706. ADV_GRP_1 = [getMarkerPos _LOCATION_MARKER,_ENEMY_SIDE,_ENEMY_SELECT_SECT] call BIS_fnc_spawnGroup;
  707. sleep 10;
  708. [ADV_GRP_1, getMarkerPos _LOCATION_MARKER, _ENEMY_SPAWN_PATROL] call BIS_fnc_taskPatrol;
  709. sleep 5;
  710. {_x allowFleeing 0} forEach units ADV_GRP_1;
  711.  
  712. [_LOCATION_MARKER,_ENEMY_SELECT_NUMB,_ENEMY_SPAWN_PATROL,[true,false],[_ENEMY_VEHICLE_PRESENT,false,_ENEMY_AIRCRAFT_PRESENT],false,[_ENEMY_SPAWN_LOWER,_ENEMY_SPAWN_LOWER],[2,3],"DEFAULT",nil,nil,900] execVM "LV\Militarize.sqf";
  713.  
  714. sleep 5;
  715.  
  716. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  717.  
  718. _ADVTRIG = createTrigger ["EmptyDetector", getmarkerPos _LOCATION_MARKER];
  719. _ADVTRIG setTriggerArea [300, 300, 1, false];
  720. _ADVTRIG setTriggerActivation [_ENEMY_SELECT_SIDE, "NOT PRESENT", false];
  721. _ADVTRIG setTriggerStatements ["this", "ADV_STATE_1 = 20;", ""];
  722.  
  723. waitUntil {sleep 1; ADV_STATE_1 >= 10};
  724.  
  725. ["MK_ADVANCED","Succeeded"] call BIS_fnc_taskSetState
  726.  
  727. sleep 10;
  728.  
  729. [
  730. _MISSION_SIDE_SELECTION_2,
  731. ["MK_ADVANCED"],
  732. [
  733. ["
  734. <br/>1. SITUATION
  735. <br/>%1 %2
  736. <br/>
  737. <br/>%3 %4
  738. <br/>
  739. <br/>(1) Weather
  740. <br/>%5 %6 %7 %8 %9 %10
  741. <br/>
  742. <br/>(2) Terrain
  743. <br/>%11 %12
  744. <br/>
  745. <br/>%13 %14
  746. <br/>
  747. <br/>A. Friendly Forces
  748. <br/>(1) %15 %16
  749. <br/>
  750. <br/>(2) %17 %18
  751. <br/>
  752. <br/>(3) %19 %20 %21
  753. <br/>
  754. <br/>B. Enemy Forces
  755. <br/>(1) Size
  756. <br/> Estimated enemy presence of %22 to around %23
  757. <br/>
  758. <br/>(2) Activity
  759. <br/>%24 %25 %26
  760. <br/>
  761. <br/>(3) Location
  762. <br/>%27 %28 %29
  763. <br/>
  764. <br/>(4) Unit
  765. <br/>%30 %31
  766. <br/>
  767. <br/>%32 %33
  768. <br/>
  769. <br/>%34
  770. <br/>
  771. <br/>(5) Time
  772. <br/>The enemy forces have been recorded at around %35 %36 (%37 %38 %39)
  773. <br/>
  774. <br/>(6) Equipment (Observed)
  775. <br/>%40 %41 %42
  776. <br/>
  777. <br/>2. MISSION
  778. <br/>%44 %45 %46 %47 NLT %48 H.
  779. <br/>
  780. <br/>3. EXECUTION
  781. <br/>%49 %50 %51
  782. <br/>
  783. <br/>(1) Concept of Operation
  784. <br/>%52 %53 %54
  785. <br/>
  786. <br/>(2) Tasks
  787. <br/>%55
  788. <br/>
  789. <br/>(3) Coordination Instruction
  790. <br/>%56
  791. <br/>
  792. <br/>4. ADMINISTATION AND LOGISTICS
  793. <br/>%57
  794. <br/>%58
  795. <br/>
  796. <br/>CASEVAC plan for ground forces will be as follows:
  797. <br/>- Pri 3: Assess the injury and treat on the ground.
  798. <br/>- Pri 2: Treatment by combat medic on the ground.
  799. <br/>- Pri 1: Evacuation back to airfield for treatment via AME.
  800. <br/>
  801. <br/>FIGHTER PILOT plan of evacuation will be as follows:
  802. <br/>- Secure the area surrounding your crash site
  803. <br/>- Destroy any classified material
  804. <br/>- Radio into the ground forces your estimated location
  805. <br/>- Await further instructions from the ground commander
  806. <br/>
  807. <br/>5. COMMAND AND SIGNALS
  808. <br/>AN/PRC-152 AND AN/PRC-117 RADIO FREQUENCY
  809. <br/>(a) CH:01 ~ Infantry Ground Forces
  810. <br/>(c) CH:10 ~ Air Forces
  811. <br/>(d) CH:99 ~ Air Traffic Controller
  812. ",
  813. _01_SIT_RND_1,
  814. _02_SIT_RND_2,
  815. _03_SIT_RND_3,
  816. _04_SIT_RND_4,
  817. _05_WEATHER_Val,
  818. _06_WEATHER_Dec,
  819. _07_WEATHER_Base,
  820. _08_WEATHER_Overcast,
  821. _09_WEATHER_Rain,
  822. _10_WEATHER_Description,
  823. _11_TERRAIN_RND_1,
  824. _12_TERRAIN_RND_2,
  825. _13_TERRAIN_RND_3,
  826. _14_TERRAIN_RND_4,
  827. _15_FRIENDLY_HIGH_1,
  828. _16_FRIENDLY_HIGH_2,
  829. _17_FRIENDLY_ADJA_1,
  830. _18_FRIENDLY_ADJA_2,
  831. _19_FRIENDLY_SUPP_1,
  832. _20_FRIENDLY_SUPP_2,
  833. _21_FRIENDLY_SUPP_3,
  834. _22_ENEMY_SIZE_L,
  835. _23_ENEMY_SIZE_H,
  836. _24_ENEMY_ACTI_1,
  837. _25_ENEMY_ACTI_2,
  838. _26_ENEMY_ACTI_3,
  839. _27_ENEMY_LOC_1,
  840. _28_ENEMY_LOC_2,
  841. _29_ENEMY_LOC_3,
  842. _30_ENEMY_UNIT_1,
  843. _31_ENEMY_UNIT_2,
  844. _32_ENEMY_UNIT_3,
  845. _33_ENEMY_UNIT_4,
  846. _34_ENEMY_UNIT_5,
  847. _35_ENEMY_HOUR,
  848. _36_ENEMY_TIME_DESC,
  849. _37_ENEMY_TIME_DAY,
  850. _38_ENEMY_TIME_MONTH,
  851. _39_ENEMY_TIME_YEAR,
  852. _40_ENEMY_EQUIPMENT_1,
  853. _41_ENEMY_EQUIPMENT_2,
  854. _42_ENEMY_EQUIPMENT_3,
  855. _43_MISSION_WHEN,
  856. _44_MISSION_WHO,
  857. _45_MISSION_WHAT,
  858. _46_MISSION_WHERE,
  859. _47_MISSION_WHY,
  860. _48_MISSION_WHEN,
  861. _49_EXECUTION_CMDINT_RND_1,
  862. _50_EXECUTION_CMDINT_RND_2,
  863. _51_EXECUTION_CMDINT_RND_3,
  864. _52_EXECUTION_COO_SCHEME_1,
  865. _53_EXECUTION_COO_SCHEME_2,
  866. _54_EXECUTION_COO_SCHEME_3,
  867. _55_EXECUTION_TASK_RND_1,
  868. _56_EXECUTION_COORD_RND_1,
  869. _57_ADMINLOG_VEHICLE,
  870. _58_ADMINLOG_AIRCRAFT
  871. ],
  872. "BHQ: Defence of Location",
  873. "BHQ: Defence of Location"
  874. ],
  875. _LOCATION_MARKER,
  876. true,
  877. 1,
  878. true
  879. ] call BIS_fnc_taskCreate;
  880.  
  881. sleep 150;
  882.  
  883. if (50 > random 100) then
  884. {
  885. _DEFENCEATTACK = Floor (random count DEFENCE_LOCATIONS);
  886. _DEFENCEATTACK_MARKER = DEFENCE_LOCATIONS select _DEFENCEATTACK;
  887. [_DEFENCEATTACK_MARKER,_ENEMY_SELECT_NUMB,false,true,1500,"random",true,300,150,16,0.3,50,false,false,false,true,_LOCATION_MARKER,false,"default",nil,nil,901,false] execVM "LV\heliParadrop.sqf";
  888. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  889. }
  890. else
  891. {
  892. _DEFENCEATTACK = Floor (random count DEFENCE_LOCATIONS);
  893. _DEFENCEATTACK_MARKER = DEFENCE_LOCATIONS select _DEFENCEATTACK;
  894. [_DEFENCEATTACK_MARKER,true,_ENEMY_SELECT_NUMB,1,true,true,_LOCATION_MARKER,"random",1000,true,false,16,"default",[false,true,false,false],nil,nil,901,false] execVM "LV\reinforcementChopper.sqf";
  895. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  896. };
  897.  
  898. sleep 60;
  899. sleep random 60;
  900.  
  901. if (50 > random 100) then
  902. {
  903. _DEFENCEATTACK = Floor (random count DEFENCE_LOCATIONS);
  904. _DEFENCEATTACK_MARKER = DEFENCE_LOCATIONS select _DEFENCEATTACK;
  905. [_DEFENCEATTACK_MARKER,_ENEMY_SELECT_NUMB,false,true,1500,"random",true,300,150,16,0.3,50,false,false,false,true,_LOCATION_MARKER,false,"default",nil,nil,902,false] execVM "LV\heliParadrop.sqf";
  906. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  907. }
  908. else
  909. {
  910. _DEFENCEATTACK = Floor (random count DEFENCE_LOCATIONS);
  911. _DEFENCEATTACK_MARKER = DEFENCE_LOCATIONS select _DEFENCEATTACK;
  912. [_DEFENCEATTACK_MARKER,true,_ENEMY_SELECT_NUMB,1,true,true,_LOCATION_MARKER,"random",1000,true,false,16,"default",[false,true,false,false],nil,nil,902,false] execVM "LV\reinforcementChopper.sqf";
  913. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  914. };
  915.  
  916. sleep 60;
  917. sleep random 60;
  918.  
  919. if (50 > random 100) then
  920. {
  921. _DEFENCEATTACK = Floor (random count DEFENCE_LOCATIONS);
  922. _DEFENCEATTACK_MARKER = DEFENCE_LOCATIONS select _DEFENCEATTACK;
  923. [_DEFENCEATTACK_MARKER,_ENEMY_SELECT_NUMB,false,true,1500,"random",true,300,150,16,0.3,50,false,false,false,true,_LOCATION_MARKER,false,"default",nil,nil,903,false] execVM "LV\heliParadrop.sqf";
  924. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  925. }
  926. else
  927. {
  928. _DEFENCEATTACK = Floor (random count DEFENCE_LOCATIONS);
  929. _DEFENCEATTACK_MARKER = DEFENCE_LOCATIONS select _DEFENCEATTACK;
  930. [_DEFENCEATTACK_MARKER,true,_ENEMY_SELECT_NUMB,1,true,true,_LOCATION_MARKER,"random",1000,true,false,16,"default",[false,true,false,false],nil,nil,903,false] execVM "LV\reinforcementChopper.sqf";
  931. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  932. };
  933.  
  934. sleep 300;
  935.  
  936. {_x addCuratorEditableObjects [(AllUnits + AllDead + vehicles),true]}forEach allCurators;
  937.  
  938. _trgrIAss1 = createTrigger ["EmptyDetector", getmarkerPos _LOCATION_MARKER];
  939. _trgrIAss1 setTriggerArea [500, 500, 1, false];
  940. _trgrIAss1 setTriggerActivation [_ENEMY_SELECT_SIDE, "NOT PRESENT", false];
  941. _trgrIAss1 setTriggerStatements ["this", "['MK_ADVANCED','Succeeded'] call BIS_fnc_taskSetState; ADV_STATE_2 = 20;", ""];
  942.  
  943. _trgrIAss2 = createTrigger ["EmptyDetector", getmarkerPos _LOCATION_MARKER];
  944. _trgrIAss2 setTriggerArea [500, 500, 1, false];
  945. _trgrIAss2 setTriggerActivation [_MISSION_SIDE_SELECTION_1, "NOT PRESENT", false];
  946. _trgrIAss2 setTriggerStatements ["this", "['MK_ADVANCED','failed'] call BIS_fnc_taskSetState; ADV_STATE_2 = 20;", ""];
  947.  
  948. waitUntil {sleep 1; ADV_STATE_2 >= 10};
  949.  
  950. sleep 30;
  951.  
  952. ["MK_ADVANCED"] call BIS_fnc_deleteTask;
  953.  
  954. if (isNil "ADV_GRP_1") then {} else {{deleteVehicle _x} forEach units ADV_GRP_1;};
  955. if (isNil "lvgroup900") then {} else {{deleteVehicle _x} forEach units lvgroup900;};
  956. if (isNil "lvgroup901") then {} else {{deleteVehicle _x} forEach units lvgroup901;};
  957. if (isNil "lvgroup902") then {} else {{deleteVehicle _x} forEach units lvgroup902;};
  958. if (isNil "lvgroup903") then {} else {{deleteVehicle _x} forEach units lvgroup903;};
  959. if (isNil "lvgroup904") then {} else {{deleteVehicle _x} forEach units lvgroup904;};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement