Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isServer) then {
- private ["_complete","_vehicle","_rndnum","_crate_type","_crate","_mission","_tanktraps","_mines","_playerPresent","_cleanmission","_currenttime","_starttime","_missiontimeout","_vehname","_veh","_position","_vehclass","_vehdir","_objPosition"];
- _position = [1360.51,4052.12,0.00143433];
- _mission = [_position,"Extreme",format["Millitary Compound","Special",false] call mission_init;
- diag_log format["WAI: [Mission:[Bandit] Millitary Compound]: Starting... %1",_position];
- //Setup the crate
- _crate_type = crates_medium call BIS_fnc_selectRandom;
- _crate = createVehicle [_crate_type,[1360.51,4057.12,0.00143433], [], 0, "CAN_COLLIDE"];
- //Troops
- _rndnum = 2 + round (random 4);
- [[1360.51,4052.12,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1375.88,4035.5,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1356.18,4058.55,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1323.05,4073.41,0.00143433],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
- [[1288.72,4108.64,0.00146484],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1316.14,4140.07,0.00140381],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
- [[1346.16,4111.7,0.00141907],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1342.37,4133.75,6.11308],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1365.93,4107.52,6.14738],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1317.04,4160.65,6.10353],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
- [[1291.07,4137.94,6.05693],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1264.67,4114.53,6.01097],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
- [[1283.83,4089.79,6.04103],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1304.2,4065.98,5.96754],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1324.95,4041.73,6.01883],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
- [[1342.56,4020.79,13.8154],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1386.92,4022.32,12.4604],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1380.57,4004.46,0.0014801],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1418.95,4035.12,0.00137329],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1387.18,4091.74,0.00137329],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default9a","Random","Bandit",_mission] call spawn_group;
- [[1310.07,4172.71,0.0014801],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1246.54,4115.61,0.00138855],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1292.82,4055.7,0.00146484],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
- [[1342.68,3995.37,0.0014801],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1395.22,4019.98,0.180954],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1366.54,4073.41,6.50793],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[1339.1,4050.42,6.50768],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default22","Random","Bandit",_mission] call spawn_group;
- [[1368.17,4017.32,6.5999],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default11","Random","Bandit",_mission] call spawn_group;
- [[1394.98,4040.7,6.64423],_rndnum,"Extreme","Random",4,"Random","Mercenary_Default27","Random","Bandit",_mission] call spawn_group;
- [[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;
- [[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;
- [[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;
- //Static Guns
- [[
- [1317.39,4163.89,6.2141],
- [1289.29,4138.78,6.19453],
- [1261.41,4114.1,6.15121],
- [1283.21,4088.62,6.12053],
- [1303.04,4064.79,6.05202],
- [1324.9,4038.81,6.06107],
- [1343.81,4135.27,6.24918],
- [1369.55,4106.85,6.24127],
- [1339.61,4092.87,6.26547],
- [1331.07,4085.6,6.24545],
- [1327.37,4052.17,10.1411],
- [1354.56,4004.01,13.8787],
- [1331.55,4035.89,17.1395],
- [1392.12,4012.36,12.4613],
- [1403.03,4021.21,12.4699],
- [1406.04,4032.56,1.1506],
- [1391.91,4021.59,6.18607],
- [1371.81,4065.95,6.60786],
- [1387.42,4047.8,6.62195],
- [1363.49,4022.99,6.56668],
- [1344.81,4045.02,6.54799],
- [1383.2,4033.29,3.59219]
- ],"M2StaticMG","Extreme","Mercenary_Default22","Bandit",0,2,"Random","Random",_mission] call spawn_static;
- [[1252.66,4088.46,0.00143433],[1252.66,4088.46,0.00143433],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
- [[1350.47,3974.26,0.00152588],[1350.47,3974.26,0.00152588],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
- [[1191.98,4138.82,0.00151062],[1191.98,4138.82,0.00151062],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
- [[1349.24,4235.88,0.00135803],[1349.24,4235.88,0.00135803],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
- [[1344.87,4143.97,0.00144958],[1344.87,4143.97,0.00144958],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
- [[1302.33,3900.48,0.00160217],[1302.33,3900.48,0.00160217],50,2,"HMMWV_Armored","Extreme","Mercenary_Default22","Bandit",_mission] call vehicle_patrol;
- [
- [1261.97,4150.01,0.0014801], // Northern Position to patrol
- [1261.97,4150.01,0.0014801], // Position to spawn chopper at
- 750, // Radius of patrol
- 10, // Number of waypoints to give
- "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
- "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
- "Mercenary_Default22", // Skin classname, use "Random" or classname here
- "Bandit" // AI Type, "Hero" or "Bandit".
- ] spawn heli_patrol;
- [
- [1241.97,3971.89,0.00140381], // Northern Position to patrol
- [1241.97,3971.89,0.00140381], // Position to spawn chopper at
- 750, // Radius of patrol
- 10, // Number of waypoints to give
- "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
- "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
- "Mercenary_Default22", // Skin classname, use "Random" or classname here
- "Bandit" // AI Type, "Hero" or "Bandit".
- ] spawn heli_patrol;
- if(debug_mode) then {
- diag_log format["WAI: [Bandit] Millitary Compound spawned at %1",_position];
- };
- [
- [1445.77,3944.14,0.0017395], // Northern Position to patrol
- [1445.77,3944.14,0.0017395], // Position to spawn chopper at
- 750, // Radius of patrol
- 10, // Number of waypoints to give
- "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
- "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
- "Mercenary_Default22", // Skin classname, use "Random" or classname here
- "Bandit" // AI Type, "Hero" or "Bandit".
- ] spawn heli_patrol;
- [
- [1457.54,4205.3,0.00119019], // Northern Position to patrol
- [1457.54,4205.3,0.00119019], // Position to spawn chopper at
- 750, // Radius of patrol
- 10, // Number of waypoints to give
- "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
- "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
- "Mercenary_Default22", // Skin classname, use "Random" or classname here
- "Bandit" // AI Type, "Hero" or "Bandit".
- ] spawn heli_patrol;
- [
- [1311.64,4116.16,0.00144958], // Northern Position to patrol
- [1311.64,4116.16,0.00144958], // Position to spawn chopper at
- 750, // Radius of patrol
- 10, // Number of waypoints to give
- "UH1H_DZ", // Classname of vehicle (make sure it has driver and two gunners)
- "Extreme", // Skill level of units (easy, medium, hard, extreme, Random)
- "Mercenary_Default22", // Skin classname, use "Random" or classname here
- "Bandit" // AI Type, "Hero" or "Bandit".
- ] spawn heli_patrol;
- //Condition
- _complete = [
- [_mission,_crate], // mission number and crate
- ["kill"], // ["crate"], or ["kill",wai_kill_percent], or ["assassinate", _unitGroup],
- "", // cleanup objects
- "Bandits have taken up residents at an abandoned prison. Take back the compound before they settle in.", // mission announcement
- "The bandits at the compound have been wiped out!", // mission success
- "The Bandits have settled in and there is no stopping them now." // mission fail
- ] call mission_winorfail;
- if(_complete) then {
- [_crate,[10,ai_wep_sniper],[4,crate_tools_sniper],[4,crate_items_sniper],2] call dynamic_crate;
- };
- diag_log format["WAI: [Mission:[Bandit] Millitary Compound]: Ended at %1",_position];
- s_missionrunning = false;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement