Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.23 KB | None | 0 0
  1. if(isServer) then {
  2.  
  3. private ["_complete","_vehicle","_rndnum","_crate_type","_crate","_mission","_tanktraps","_mines","_playerPresent","_cleanmission","_currenttime","_starttime","_missiontimeout","_vehname","_veh","_position","_vehclass","_vehdir","_objPosition"];
  4.  
  5. _position = [1360.51,4052.12,0.00143433];
  6. _mission = [_position,"Extreme",format["Millitary Compound","Special",false] call mission_init;
  7.  
  8. diag_log format["WAI: [Mission:[Bandit] Millitary Compound]: Starting... %1",_position];
  9.  
  10. //Setup the crate
  11. _crate_type = crates_medium call BIS_fnc_selectRandom;
  12. _crate = createVehicle [_crate_type,[1360.51,4057.12,0.00143433], [], 0, "CAN_COLLIDE"];
  13.  
  14. //Troops
  15. _rndnum = 2 + round (random 4);
  16. [[1360.51,4052.12,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  17. [[1375.88,4035.5,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  18. [[1356.18,4058.55,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  19. [[1323.05,4073.41,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
  20. [[1288.72,4108.64,0.00146484],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  21. [[1316.14,4140.07,0.00140381],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
  22. [[1346.16,4111.7,0.00141907],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  23. [[1342.37,4133.75,6.11308],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  24. [[1365.93,4107.52,6.14738],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  25. [[1317.04,4160.65,6.10353],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
  26. [[1291.07,4137.94,6.05693],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  27. [[1264.67,4114.53,6.01097],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
  28. [[1283.83,4089.79,6.04103],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  29. [[1304.2,4065.98,5.96754],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  30. [[1324.95,4041.73,6.01883],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
  31. [[1342.56,4020.79,13.8154],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  32. [[1386.92,4022.32,12.4604],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  33. [[1380.57,4004.46,0.0014801],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  34. [[1418.95,4035.12,0.00137329],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  35. [[1387.18,4091.74,0.00137329],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
  36. [[1310.07,4172.71,0.0014801],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  37. [[1246.54,4115.61,0.00138855],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  38. [[1292.82,4055.7,0.00146484],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
  39. [[1342.68,3995.37,0.0014801],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  40. [[1395.22,4019.98,0.180954],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  41. [[1366.54,4073.41,6.50793],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  42. [[1339.1,4050.42,6.50768],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
  43. [[1368.17,4017.32,6.5999],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
  44. [[1394.98,4040.7,6.64423],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
  45. [[1360.51,4052.12,0.00143433],[0,0,0],50,"BAF_Merlin_HC3_D",10,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",false,_mission] spawn heli_para;
  46. [[1283.83,4089.79,6.04103],[0,0,0],50,"BAF_Merlin_HC3_D",10,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",false,_mission] spawn heli_para;
  47. [[1418.95,4035.12,0.00137329],[0,0,0],50,"BAF_Merlin_HC3_D",10,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",false,_mission] spawn heli_para;
  48.  
  49.  
  50. //Static Guns
  51. [[
  52. [1317.39,4163.89,6.2141],
  53. [1289.29,4138.78,6.19453],
  54. [1261.41,4114.1,6.15121],
  55. [1283.21,4088.62,6.12053],
  56. [1303.04,4064.79,6.05202],
  57. [1324.9,4038.81,6.06107],
  58. [1343.81,4135.27,6.24918],
  59. [1369.55,4106.85,6.24127],
  60. [1339.61,4092.87,6.26547],
  61. [1331.07,4085.6,6.24545],
  62. [1327.37,4052.17,10.1411],
  63. [1354.56,4004.01,13.8787],
  64. [1331.55,4035.89,17.1395],
  65. [1392.12,4012.36,12.4613],
  66. [1403.03,4021.21,12.4699],
  67. [1406.04,4032.56,1.1506],
  68. [1391.91,4021.59,6.18607],
  69. [1371.81,4065.95,6.60786],
  70. [1387.42,4047.8,6.62195],
  71. [1363.49,4022.99,6.56668],
  72. [1344.81,4045.02,6.54799],
  73. [1383.2,4033.29,3.59219]
  74. ],"M2StaticMG","Extreme","Mercenary_Default22","Bandit",0,2,"Random","Random",_mission] call spawn_static;
  75.  
  76. [[1252.66,4088.46,0.00143433],[1252.66,4088.46,0.00143433],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
  77. [[1350.47,3974.26,0.00152588],[1350.47,3974.26,0.00152588],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
  78. [[1191.98,4138.82,0.00151062],[1191.98,4138.82,0.00151062],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
  79. [[1349.24,4235.88,0.00135803],[1349.24,4235.88,0.00135803],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
  80. [[1344.87,4143.97,0.00144958],[1344.87,4143.97,0.00144958],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
  81. [[1302.33,3900.48,0.00160217],[1302.33,3900.48,0.00160217],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
  82.  
  83. [
  84. [1261.97,4150.01,0.0014801], // Northern Position to patrol
  85. [1261.97,4150.01,0.0014801], // Position to spawn chopper at
  86. 750, // Radius of patrol
  87. 10, // Number of waypoints to give
  88. "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
  89. "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
  90. "Mercenary_Default22", // Skin classname, use "Random" or classname here
  91. "Bandit" // AI Type, "Hero" or "Bandit".
  92. ] spawn heli_patrol;
  93.  
  94. [
  95. [1241.97,3971.89,0.00140381], // Northern Position to patrol
  96. [1241.97,3971.89,0.00140381], // Position to spawn chopper at
  97. 750, // Radius of patrol
  98. 10, // Number of waypoints to give
  99. "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
  100. "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
  101. "Mercenary_Default22", // Skin classname, use "Random" or classname here
  102. "Bandit" // AI Type, "Hero" or "Bandit".
  103. ] spawn heli_patrol;
  104.  
  105. if(debug_mode) then {
  106. diag_log format["WAI: [Bandit] Millitary Compound spawned at %1",_position];
  107. };
  108.  
  109. [
  110. [1445.77,3944.14,0.0017395], // Northern Position to patrol
  111. [1445.77,3944.14,0.0017395], // Position to spawn chopper at
  112. 750, // Radius of patrol
  113. 10, // Number of waypoints to give
  114. "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
  115. "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
  116. "Mercenary_Default22", // Skin classname, use "Random" or classname here
  117. "Bandit" // AI Type, "Hero" or "Bandit".
  118. ] spawn heli_patrol;
  119.  
  120. [
  121. [1457.54,4205.3,0.00119019], // Northern Position to patrol
  122. [1457.54,4205.3,0.00119019], // Position to spawn chopper at
  123. 750, // Radius of patrol
  124. 10, // Number of waypoints to give
  125. "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
  126. "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
  127. "Mercenary_Default22", // Skin classname, use "Random" or classname here
  128. "Bandit" // AI Type, "Hero" or "Bandit".
  129. ] spawn heli_patrol;
  130.  
  131. [
  132. [1311.64,4116.16,0.00144958], // Northern Position to patrol
  133. [1311.64,4116.16,0.00144958], // Position to spawn chopper at
  134. 750, // Radius of patrol
  135. 10, // Number of waypoints to give
  136. "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
  137. "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
  138. "Mercenary_Default22", // Skin classname, use "Random" or classname here
  139. "Bandit" // AI Type, "Hero" or "Bandit".
  140. ] spawn heli_patrol;
  141.  
  142. //Condition
  143. _complete = [
  144. [_mission,_crate], // mission number and crate
  145. ["kill"], // ["crate"], or ["kill",wai_kill_percent], or ["assassinate", _unitGroup],
  146. "", // cleanup objects
  147. "Bandits have taken up residents at an abandoned prison. Take back the compound before they settle in.", // mission announcement
  148. "The bandits at the compound have been wiped out!", // mission success
  149. "The Bandits have settled in and there is no stopping them now." // mission fail
  150. ] call mission_winorfail;
  151.  
  152. if(_complete) then {
  153. [_crate,[10,ai_wep_sniper],[4,crate_tools_sniper],[4,crate_items_sniper],2] call dynamic_crate;
  154. };
  155.  
  156. diag_log format["WAI: [Mission:[Bandit] Millitary Compound]: Ended at %1",_position];
  157.  
  158. s_missionrunning = false;
  159. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement