Guest User

gf airdrop

a guest
Jul 7th, 2020
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.92 KB | None | 0 0
  1.  
  2.  
  3.  
  4. //________________ Author : [GR]GEORGE F ___________ 24.01.19 _____________
  5.  
  6. /*
  7. ________________ GF Cargo Airdrops Script - Mod ________________
  8.  
  9. https://forums.bohemia.net/forums/topic/215257-cargo_airdrops_gf-script/
  10.  
  11. Please keep the Credits or add them to your Diary
  12.  
  13. https://community.bistudio.com/wiki/SQF_syntax
  14. Don't try to open this with the simple notepad.
  15. For everything that is with comment // in front or between /*
  16. means that it is disabled , so there is no need to delete the extra lines.
  17.  
  18. You can open this ex:
  19. with notepad++
  20. https://notepad-plus-plus.org/
  21.  
  22. ArmA 3 | Notepad ++ SQF tutorial
  23. https://www.youtube.com/watch?v=aI5P7gp3x90
  24.  
  25. and also use the extra pluggins
  26. (this way will be better , it will give also some certain colours to be able to detect ex. problems )
  27. http://www.armaholic.com/page.php?id=8680
  28.  
  29. or use any other program for editing .
  30.  
  31. For the Compilation List of my GF Scripts , you can search in:
  32. https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/
  33. */
  34.  
  35.  
  36. // If you want the script to run only in the server use the code below
  37. // if(!isServer) exitWith {};
  38.  
  39.  
  40. diag_log "//________________ GF Cargo Airdrops Script - Mod _____________";
  41.  
  42.  
  43. //________________ GF Cargo Airdrops Script - Mod _____________
  44.  
  45. //________________ Settings ________________
  46. //________________ Set true or false ________________
  47.  
  48. _Radio_Call = true; // Play some Radio Sounds
  49. _Virtual_Arsenal = false; // Add Virtual Arsenal to Cargo
  50. _Random_Loot = true; // Add random loot , you need to select this or the one below
  51. _Custom_loot = false; // Selected loot
  52. _Create_Markers = true; // Show the Airdrop position with a marker
  53. _Number = 5; // Number of the Airdrops
  54. _Number_random = 5; // + random 5 Airdrops
  55. _next_drop_in_sec = 10; // _next_drop_in_sec - 10 is for test
  56. _height_of_drop = 100; // _height_of_drop - 75 is for test
  57.  
  58.  
  59. //________________ Enemies ________________
  60.  
  61. _Spawn_Enemy = true; // Spawn Enemy at the site
  62. _Enemy_Side = east;
  63.  
  64. _Squad_Members = 5; // + floor random 5 below
  65. _Squad_Members_random = 5;
  66.  
  67. _set_AiSkill = 0.50;
  68. _set_AiSkill_random = 0.50;
  69.  
  70. _Patrol_distance = 100; // The distance for BIS_fnc_taskPatrol
  71. _Patrol_distance_random = 250;
  72.  
  73.  
  74.  
  75. //________________ Enemy Array ________________
  76.  
  77. _Pool_Infantry = [
  78. "O_G_officer_F","O_G_Soldier_SL_F","O_G_Soldier_TL_F","O_G_medic_F","O_G_engineer_F","O_G_Soldier_exp_F","O_G_Soldier_GL_F",
  79. "O_G_Soldier_M_F","O_G_Soldier_LAT_F","O_G_Soldier_A_F","O_G_Soldier_F","O_G_Soldier_lite_F","O_G_Sharpshooter_F",
  80. "O_G_Soldier_universal_F"
  81. ];
  82.  
  83.  
  84.  
  85.  
  86. systemchat "C a r g o A i r d r o p s I n i t i a l i z e d";
  87.  
  88.  
  89. if (_Radio_Call) then {
  90.  
  91. // systemchat "_Radio_Call";
  92. _grid = mapGridPosition getPos player;
  93. player sideChat format ["This is %1, requesting Supply drop at the transmitting coordinates %2, OVER.", name player, _grid];
  94. playSound3D ["A3\dubbing_f\modules\supports\drop_request.ogg", player];
  95. sleep 6;
  96. player sideChat format ["Affirmative %1, Supplies on route , OUT.", name player];
  97. playSound3D ["A3\dubbing_f\modules\supports\drop_acknowledged.ogg", player];
  98. sleep 10;
  99. };
  100.  
  101.  
  102. private ["_Plane_sound","_x"];
  103. _x = 0;
  104. _a = 0;
  105.  
  106. //________________ The number of the Cargo to spawn (on random) ________________
  107. for "_x" from 0 to (_Number + (random _Number_random)) do {
  108. _a = _a + 1;
  109.  
  110. //________________ For spawn one Cargo ________________
  111. //for "_x" from 1 to (1) do {
  112.  
  113. //________________ The position to drop the Cargo ________________
  114. _Pos = [] call BIS_fnc_randomPos; // For random location
  115. // _Pos = getmarkerPos "MarkerName"; // Create a Marker if you want a certain location -
  116.  
  117.  
  118. // Create a marker
  119. // _Pos = getmarkerPos "DROP_Marker_1";
  120.  
  121. /*
  122. // or select a random marker
  123. _Marker_array =selectRandom[
  124. "DROP_Marker_1",
  125. "DROP_Marker_2",
  126. "DROP_Marker_3"
  127. ];
  128. _Pos = getmarkerPos _Marker_array;
  129. */
  130.  
  131.  
  132. // this can be a Supply drop with an add action in an item or player https://community.bistudio.com/wiki/addAction
  133. // _Pos = getPos player; // for test or for support purpose
  134.  
  135.  
  136.  
  137. // systemchat "_next_drop_in_sec 5";
  138. sleep _next_drop_in_sec;
  139. // systemchat "d r o p p i n g";
  140.  
  141.  
  142. //________________ Sound of plane flying above ________________
  143. // https://community.bistudio.com/wiki/Arma_3:_SoundFiles
  144. // playSound3D ["A3\Sounds_F\ambient\battlefield\battlefield_jet1.wss", _Cargo];
  145.  
  146. _sound = selectRandom [
  147. "Plane_sound1",
  148. "Plane_sound2",
  149. "Plane_sound3"
  150. ];
  151.  
  152. publicVariable _sound;
  153. _sound remoteExec ["playSound"];
  154.  
  155.  
  156. sleep 10;
  157.  
  158. if (_Radio_Call) then {
  159.  
  160. player sideChat format ["%1, The Supplies have been dropped , OUT.", name player];
  161. playSound3D ["A3\dubbing_f\modules\supports\drop_accomplished.ogg", player];
  162. };
  163.  
  164. //________________ Type of parachute ________________
  165. // B_Parachute_02_F
  166. _parachute = createVehicle ["B_Parachute_02_F",_Pos, [], 0, "FLY"];
  167. _parachute setPosATL [getPosATL _parachute select 0, getPosATL _parachute select 1, _height_of_drop];
  168.  
  169.  
  170. // Type_of_Cargo_array - can be anything
  171. // B_supplyCrate_F B_G_Mortar_01_F B_MRAP_01_hmg_F B_Boat_Transport_01_F B_Heli_Transport_03_unarmed_F
  172.  
  173. _Cargo_array =[
  174. "B_supplyCrate_F",
  175. "I_CargoNet_01_ammo_F"
  176. ];
  177.  
  178. _Create_Cargo = selectRandom _Cargo_array;
  179.  
  180. _Cargo = createVehicle [_Create_Cargo, position _parachute, [], 0, 'NONE'];
  181. _Cargo attachTo [_parachute,[0,0,0]];
  182. _Cargo enableSimulation false;
  183.  
  184.  
  185. //________________ add your items here ________________
  186.  
  187. // clear Cargo - leaves medkits in place.
  188. // add clearItemCargoGlobal _Cargo; to remove medkits
  189. clearWeaponCargoGlobal _Cargo;
  190. clearMagazineCargoGlobal _Cargo;
  191.  
  192.  
  193. //________________ add Virtual Arsenal to Cargo ________________
  194. if (_Virtual_Arsenal) then {
  195. // systemchat "_Virtual_Arsenal";
  196. _Cargo addAction ["Open Virtual Arsenal", {["Open",true] spawn BIS_fnc_arsenal}];
  197. };
  198.  
  199.  
  200. //________________ Add random loot , you need to select this or the one below ________________
  201. if (_Random_Loot) then {
  202.  
  203.  
  204. //Type of loot
  205. _weapons_Loot = selectRandom [
  206. //LightMachineGuns
  207. "arifle_MX_SW_Black_F",
  208. "arifle_MX_SW_F",
  209. "LMG_Mk200_F",
  210. "LMG_Zafir_F",
  211. "LMG_03_F",
  212. "MMG_01_hex_F",
  213. "MMG_01_tan_F",
  214. "MMG_02_black_F",
  215. "MMG_02_camo_F",
  216. "MMG_02_sand_F",
  217. //Apex
  218. "LMG_03_F",
  219.  
  220. //AssaultRifles
  221. "arifle_Katiba_C_F",
  222. "arifle_Katiba_F",
  223. "arifle_Katiba_GL_F",
  224. "arifle_Mk20_F",
  225. "arifle_Mk20_GL_F",
  226. "arifle_Mk20_GL_plain_F",
  227. "arifle_Mk20_plain_F",
  228. "arifle_Mk20C_F",
  229. "arifle_Mk20C_plain_F",
  230. "arifle_MX_Black_F",
  231. "arifle_MX_F",
  232. "arifle_MX_GL_Black_F",
  233. "arifle_MX_GL_F",
  234. "arifle_MXC_Black_F",
  235. "arifle_MXC_F",
  236. "arifle_SDAR_F",
  237. "arifle_TRG20_F",
  238. "arifle_TRG21_F",
  239. "arifle_TRG21_GL_F",
  240. //Apex AssaultRifles
  241. "arifle_AK12_F",
  242. "arifle_AK12_GL_F",
  243. "arifle_AKM_F",
  244. "arifle_AKM_FL_F",
  245. "arifle_AKS_F",
  246. //AK x2
  247. "arifle_AK12_F",
  248. "arifle_AK12_GL_F",
  249. "arifle_AKM_F",
  250. "arifle_AKM_FL_F",
  251. "arifle_AKS_F",
  252. //
  253. "arifle_ARX_blk_F",
  254. "arifle_ARX_ghex_F",
  255. "arifle_ARX_hex_F",
  256. "arifle_CTAR_blk_F",
  257. "arifle_CTAR_hex_F",
  258. "arifle_CTAR_ghex_F",
  259. "arifle_CTAR_GL_blk_F",
  260. "arifle_CTARS_blk_F",
  261. "arifle_CTARS_hex_F",
  262. "arifle_CTARS_ghex_F",
  263. "arifle_SPAR_01_blk_F",
  264. "arifle_SPAR_01_khk_F",
  265. "arifle_SPAR_01_snd_F",
  266. "arifle_SPAR_01_GL_blk_F",
  267. "arifle_SPAR_01_GL_khk_F",
  268. "arifle_SPAR_01_GL_snd_F",
  269. "arifle_SPAR_02_blk_F",
  270. "arifle_SPAR_02_khk_F",
  271. "arifle_SPAR_02_snd_F",
  272. "arifle_SPAR_03_blk_F",
  273. "arifle_SPAR_03_khk_F",
  274. "arifle_SPAR_03_snd_F",
  275. "arifle_MX_khk_F",
  276. "arifle_MX_GL_khk_F",
  277. "arifle_MXC_khk_F",
  278. "arifle_MXM_khk_F",
  279.  
  280. //SniperRifles
  281. "arifle_MXM_Black_F",
  282. "arifle_MXM_F",
  283. "srifle_DMR_01_F",
  284. "srifle_DMR_02_camo_F",
  285. "srifle_DMR_02_F",
  286. "srifle_DMR_02_sniper_F",
  287. "srifle_DMR_03_F",
  288. "srifle_DMR_03_khaki_F",
  289. "srifle_DMR_03_multicam_F",
  290. "srifle_DMR_03_tan_F",
  291. "srifle_DMR_03_woodland_F",
  292. "srifle_DMR_04_F",
  293. "srifle_DMR_04_Tan_F",
  294. "srifle_DMR_05_blk_F",
  295. "srifle_DMR_05_hex_F",
  296. "srifle_DMR_05_tan_f",
  297. "srifle_DMR_06_camo_F",
  298. "srifle_DMR_06_olive_F",
  299. "srifle_EBR_F",
  300. "srifle_GM6_camo_F",
  301. "srifle_GM6_F",
  302. "srifle_LRR_camo_F",
  303. "srifle_LRR_F",
  304. //Apex SniperRifles
  305. "srifle_LRR_tna_F",
  306. "srifle_GM6_ghex_F",
  307. "srifle_DMR_07_blk_F",
  308. "srifle_DMR_07_hex_F",
  309. "srifle_DMR_07_ghex_F",
  310.  
  311. // Launchers
  312. "launch_NLAW_F",
  313. "launch_RPG32_F",
  314. "launch_RPG32_ghex_F",
  315. "launch_RPG7_F",
  316. "launch_RPG7_F", //x2
  317. "launch_Titan_F",
  318. "launch_I_Titan_F",
  319. "launch_O_Titan_ghex_F",
  320. "launch_O_Titan_F",
  321. "launch_B_Titan_F",
  322. "launch_B_Titan_tna_F",
  323. "launch_Titan_short_F",
  324. "launch_O_Titan_short_F",
  325. "launch_O_Titan_short_ghex_F",
  326. "launch_I_Titan_short_F",
  327. "launch_B_Titan_short_F",
  328. "launch_B_Titan_short_tna_F"
  329. ];
  330.  
  331.  
  332. _sideweapons_loot = selectRandom [
  333. //Pistols
  334. "hgun_ACPC2_F",
  335. "hgun_P07_F",
  336. "hgun_Pistol_heavy_01_F",
  337. "hgun_Pistol_heavy_02_F",
  338. "hgun_Pistol_Signal_F",
  339. "hgun_Rook40_F",
  340. //Apex
  341. "hgun_Pistol_01_F",
  342. "hgun_P07_khk_F",
  343.  
  344. //SubMachineGuns
  345. "hgun_PDW2000_F",
  346. "SMG_01_F",
  347. "SMG_02_F",
  348. "SMG_05_F"
  349. ];
  350.  
  351.  
  352. _items_loot1 = selectRandom [
  353. //for RyanZombies
  354. //"RyanZombiesAntiVirusTemporary_Item",
  355. //"RyanZombiesAntiVirusCure_Item",
  356.  
  357. //Vanilla
  358. "ToolKit",
  359. "MediKit",
  360. "FirstAidKit",
  361. "FirstAidKit",
  362. //Tools
  363. "Binocular",
  364. "Rangefinder",
  365. "Laserdesignator",
  366. "Laserdesignator_02",
  367. "Laserdesignator_03"
  368. ];
  369.  
  370.  
  371. _items_loot2 = selectRandom [
  372. //Here ONLY :items , PointerAttachments , BipodAttachments , MuzzleAttachments , OpticAttachments , NVG
  373. "ItemCompass",
  374. "ItemWatch",
  375. "ItemRadio",
  376. "ItemGPS",
  377. "ItemMap",
  378. //x2
  379. "ItemCompass",
  380. "ItemWatch",
  381. "ItemRadio",
  382. "ItemGPS",
  383. "ItemMap",
  384. //PointerAttachments
  385. "acc_flashlight",
  386. "acc_pointer_IR",
  387. //BipodAttachments
  388. "bipod_01_F_blk",
  389. "bipod_01_F_mtp",
  390. "bipod_01_F_snd",
  391. "bipod_02_F_blk",
  392. "bipod_02_F_hex",
  393. "bipod_02_F_tan",
  394. "bipod_03_F_blk",
  395. "bipod_03_F_oli",
  396. //Apex
  397. "bipod_01_F_khk",
  398. //MuzzleAttachments
  399. "muzzle_snds_338_black",
  400. "muzzle_snds_338_green",
  401. "muzzle_snds_338_sand",
  402. "muzzle_snds_93mmg",
  403. "muzzle_snds_93mmg_tan",
  404. "muzzle_snds_acp",
  405. "muzzle_snds_B",
  406. "muzzle_snds_H",
  407. "muzzle_snds_H_MG",
  408. "muzzle_snds_H_SW",
  409. "muzzle_snds_L",
  410. "muzzle_snds_M",
  411. //Apex
  412. "muzzle_snds_H_khk_F",
  413. "muzzle_snds_H_snd_F",
  414. "muzzle_snds_58_blk_F",
  415. "muzzle_snds_m_khk_F",
  416. "muzzle_snds_m_snd_F",
  417. "muzzle_snds_B_khk_F",
  418. "muzzle_snds_B_snd_F",
  419. "muzzle_snds_58_wdm_F",
  420. "muzzle_snds_65_TI_blk_F",
  421. "muzzle_snds_65_TI_hex_F",
  422. "muzzle_snds_65_TI_ghex_F",
  423. "muzzle_snds_H_MG_blk_F",
  424. "muzzle_snds_H_MG_khk_F",
  425. //OpticAttachments
  426. "optic_Aco",
  427. "optic_ACO_grn",
  428. "optic_ACO_grn_smg",
  429. "optic_Aco_smg",
  430. "optic_AMS",
  431. "optic_AMS_khk",
  432. "optic_AMS_snd",
  433. "optic_Arco",
  434. "optic_DMS",
  435. "optic_Hamr",
  436. "optic_Holosight",
  437. "optic_Holosight_smg",
  438. "optic_KHS_blk",
  439. "optic_KHS_hex",
  440. "optic_KHS_old",
  441. "optic_KHS_tan",
  442. "optic_LRPS",
  443. "optic_MRCO",
  444. "optic_MRD",
  445. "optic_Nightstalker",
  446. "optic_NVS",
  447. "optic_SOS",
  448. "optic_tws",
  449. "optic_tws_mg",
  450. "optic_Yorris",
  451. //Apex
  452. "optic_Arco_blk_F",
  453. "optic_Arco_ghex_F",
  454. "optic_DMS_ghex_F",
  455. "optic_Hamr_khk_F",
  456. "optic_ERCO_blk_F",
  457. "optic_ERCO_khk_F",
  458. "optic_ERCO_snd_F",
  459. "optic_SOS_khk_F",
  460. "optic_LRPS_tna_F",
  461. "optic_LRPS_ghex_F",
  462. "optic_Holosight_blk_F",
  463. "optic_Holosight_khk_F",
  464. "optic_Holosight_smg_blk_F",
  465.  
  466. //NVG
  467. "NVGoggles",
  468. "NVGoggles_INDEP",
  469. "NVGoggles_OPFOR",
  470. //Apex
  471. "O_NVGoggles_hex_F",
  472. "O_NVGoggles_urb_F",
  473. "O_NVGoggles_ghex_F",
  474. "NVGoggles_tna_F"
  475. ];
  476.  
  477.  
  478. _items_loot3 = selectRandom [
  479. //Flares
  480. "Chemlight_blue",
  481. "Chemlight_green",
  482. "Chemlight_red",
  483. //Smokes
  484. "SmokeShell",
  485. "SmokeShellBlue",
  486. "SmokeShellGreen",
  487. "SmokeShellOrange",
  488. "SmokeShellPurple",
  489. "SmokeShellRed",
  490. "SmokeShellYellow",
  491. "1Rnd_Smoke_Grenade_shell",
  492. "1Rnd_SmokeBlue_Grenade_shell",
  493. "1Rnd_SmokeGreen_Grenade_shell",
  494. "1Rnd_SmokeOrange_Grenade_shell",
  495. "1Rnd_SmokePurple_Grenade_shell",
  496. "1Rnd_SmokeRed_Grenade_shell",
  497. "1Rnd_SmokeYellow_Grenade_shell",
  498. "3Rnd_Smoke_Grenade_shell",
  499. "3Rnd_SmokeBlue_Grenade_shell",
  500. "3Rnd_SmokeGreen_Grenade_shell",
  501. "3Rnd_SmokeOrange_Grenade_shell",
  502. "3Rnd_SmokePurple_Grenade_shell",
  503. "3Rnd_SmokeRed_Grenade_shell",
  504. "3Rnd_SmokeYellow_Grenade_shell",
  505. //Explosives
  506. "HandGrenade",
  507. "MiniGrenade",
  508. "B_IR_Grenade",
  509. "O_IR_Grenade",
  510. "I_IR_Grenade",
  511. "1Rnd_HE_Grenade_shell",
  512. "3Rnd_HE_Grenade_shell",
  513. "APERSBoundingMine_Range_Mag",
  514. "APERSMine_Range_Mag",
  515. "APERSTripMine_Wire_Mag",
  516. "ClaymoreDirectionalMine_Remote_Mag",
  517. "DemoCharge_Remote_Mag",
  518. "IEDLandBig_Remote_Mag",
  519. "IEDLandSmall_Remote_Mag",
  520. "IEDUrbanBig_Remote_Mag",
  521. "IEDUrbanSmall_Remote_Mag",
  522. "SatchelCharge_Remote_Mag",
  523. "SLAMDirectionalMine_Wire_Mag"
  524. ];
  525.  
  526.  
  527. _Ravage_item = selectRandom [
  528. // Ravage_items
  529. //x1
  530. "rvg_plasticBottleEmpty",
  531. "rvg_canteenEmpty",
  532. "rvg_hose",
  533. "rvg_sleepingBag_Blue",
  534. "rvg_foldedTent",
  535. "rvg_rustyCan",
  536. "rvg_Geiger",
  537. "rvg_canisterFuel_Empty",
  538. "rvg_toolkit",
  539. "rvg_tire",
  540. //x2 Vital
  541. "rvg_money",
  542. "rvg_notepad",
  543. "rvg_docFolder",
  544. "rvg_canOpener",
  545. "rvg_guttingKnife",
  546. "rvg_matches",
  547. "rvg_plasticBottle",
  548. "rvg_plasticBottlePurified",
  549. "rvg_spirit",
  550. "rvg_franta",
  551. "rvg_beans",
  552. "rvg_bacon",
  553. "rvg_milk",
  554. "rvg_rice",
  555. "rvg_antiRad",
  556. "rvg_purificationTablets",
  557. //x2 Vital
  558. "rvg_money",
  559. "rvg_notepad",
  560. "rvg_docFolder",
  561. "rvg_canOpener",
  562. "rvg_guttingKnife",
  563. "rvg_matches",
  564. "rvg_plasticBottle",
  565. "rvg_plasticBottlePurified",
  566. "rvg_spirit",
  567. "rvg_franta",
  568. "rvg_beans",
  569. "rvg_bacon",
  570. "rvg_milk",
  571. "rvg_rice",
  572. "rvg_antiRad",
  573. "rvg_purificationTablets",
  574.  
  575. //addon Ravage
  576. "Mask_M40_OD",
  577. "Mask_M40",
  578. "Mask_M50"
  579. ];
  580.  
  581.  
  582.  
  583. //addweaponcargo addItemCargo addMagazineCargo
  584.  
  585. // weapons
  586. _Cargo addweaponcargo [_weapons_Loot, 5]; // 5 is the amount
  587.  
  588. // sideweapons
  589. _Cargo addweaponcargo [_sideweapons_loot, 5];
  590.  
  591. // items 1
  592. _Cargo addweaponcargo [_items_loot1, 5];
  593.  
  594. // items 2 Here ONLY :items , PointerAttachments , BipodAttachments , MuzzleAttachments , OpticAttachments , NVG
  595. _Cargo addItemCargo [_items_loot2, 5];
  596.  
  597. // items 2 Here ONLY :Flares , Smokes , Explosives
  598. _Cargo addMagazineCargo [_items_loot3, 5];
  599.  
  600. //lootitems6 items 3 Ravage
  601. _Cargo addItemCargo [_Ravage_item, 5];
  602.  
  603. // weapon's cargo mags
  604. _magazines_weapon = getArray (configFile / "CfgWeapons" / _weapons_Loot / "magazines");
  605. _magazineClass_weapon = selectRandom _magazines_weapon;
  606.  
  607. _Cargo addMagazineCargoGlobal [_magazineClass_weapon, 10]; // 10 mags
  608.  
  609.  
  610. // sideweapon's cargo mag
  611. _magazines_sideweapon = getArray (configFile / "CfgWeapons" / _sideweapons_loot / "magazines");
  612. _magazineClass_sideweapon = selectRandom _magazines_sideweapon;
  613.  
  614. _Cargo addMagazineCargoGlobal [_magazineClass_sideweapon, 10]; // 10 mags
  615.  
  616.  
  617. // Extra type of magazines
  618. _magazines_Extra = getArray (configFile / "CfgWeapons" / _weapons_Loot / "magazines");
  619. _magazineClass_Extra = selectRandom _magazines_Extra;
  620. _Cargo addMagazineCargoGlobal [_magazineClass_Extra, 10]; // 10 mags
  621. };
  622.  
  623.  
  624. //________________ Selected loot ________________
  625. if (_Custom_loot) then {
  626.  
  627. // systemchat "_Custom_loot";
  628.  
  629.  
  630. // weapons
  631. {
  632. _cargo addweaponcargo _x;
  633. }forEach [
  634.  
  635. //LightMachineGuns
  636. "arifle_MX_SW_Black_F",
  637. "arifle_MX_SW_F",
  638. "LMG_Mk200_F",
  639. "LMG_Zafir_F",
  640. "LMG_03_F",
  641. "MMG_01_hex_F",
  642. "MMG_01_tan_F",
  643. "MMG_02_black_F",
  644. "MMG_02_camo_F",
  645. "MMG_02_sand_F",
  646. //Apex
  647. "LMG_03_F",
  648.  
  649. //AssaultRifles
  650. "arifle_Katiba_C_F",
  651. "arifle_Katiba_F",
  652. "arifle_Katiba_GL_F",
  653. "arifle_Mk20_F",
  654. "arifle_Mk20_GL_F",
  655. "arifle_Mk20_GL_plain_F",
  656. "arifle_Mk20_plain_F",
  657. "arifle_Mk20C_F",
  658. "arifle_Mk20C_plain_F",
  659. "arifle_MX_Black_F",
  660. "arifle_MX_F",
  661. "arifle_MX_GL_Black_F",
  662. "arifle_MX_GL_F",
  663. "arifle_MXC_Black_F",
  664. "arifle_MXC_F",
  665. "arifle_SDAR_F",
  666. "arifle_TRG20_F",
  667. "arifle_TRG21_F",
  668. "arifle_TRG21_GL_F",
  669. //Apex AssaultRifles
  670. "arifle_AK12_F",
  671. "arifle_AK12_GL_F",
  672. "arifle_AKM_F",
  673. "arifle_AKM_FL_F",
  674. "arifle_AKS_F",
  675. //AK x2
  676. "arifle_AK12_F",
  677. "arifle_AK12_GL_F",
  678. "arifle_AKM_F",
  679. "arifle_AKM_FL_F",
  680. "arifle_AKS_F",
  681. //
  682. "arifle_ARX_blk_F",
  683. "arifle_ARX_ghex_F",
  684. "arifle_ARX_hex_F",
  685. "arifle_CTAR_blk_F",
  686. "arifle_CTAR_hex_F",
  687. "arifle_CTAR_ghex_F",
  688. "arifle_CTAR_GL_blk_F",
  689. "arifle_CTARS_blk_F",
  690. "arifle_CTARS_hex_F",
  691. "arifle_CTARS_ghex_F",
  692. "arifle_SPAR_01_blk_F",
  693. "arifle_SPAR_01_khk_F",
  694. "arifle_SPAR_01_snd_F",
  695. "arifle_SPAR_01_GL_blk_F",
  696. "arifle_SPAR_01_GL_khk_F",
  697. "arifle_SPAR_01_GL_snd_F",
  698. "arifle_SPAR_02_blk_F",
  699. "arifle_SPAR_02_khk_F",
  700. "arifle_SPAR_02_snd_F",
  701. "arifle_SPAR_03_blk_F",
  702. "arifle_SPAR_03_khk_F",
  703. "arifle_SPAR_03_snd_F",
  704. "arifle_MX_khk_F",
  705. "arifle_MX_GL_khk_F",
  706. "arifle_MXC_khk_F",
  707. "arifle_MXM_khk_F",
  708.  
  709. //SniperRifles
  710. "arifle_MXM_Black_F",
  711. "arifle_MXM_F",
  712. "srifle_DMR_01_F",
  713. "srifle_DMR_02_camo_F",
  714. "srifle_DMR_02_F",
  715. "srifle_DMR_02_sniper_F",
  716. "srifle_DMR_03_F",
  717. "srifle_DMR_03_khaki_F",
  718. "srifle_DMR_03_multicam_F",
  719. "srifle_DMR_03_tan_F",
  720. "srifle_DMR_03_woodland_F",
  721. "srifle_DMR_04_F",
  722. "srifle_DMR_04_Tan_F",
  723. "srifle_DMR_05_blk_F",
  724. "srifle_DMR_05_hex_F",
  725. "srifle_DMR_05_tan_f",
  726. "srifle_DMR_06_camo_F",
  727. "srifle_DMR_06_olive_F",
  728. "srifle_EBR_F",
  729. "srifle_GM6_camo_F",
  730. "srifle_GM6_F",
  731. "srifle_LRR_camo_F",
  732. "srifle_LRR_F",
  733. //Apex SniperRifles
  734. "srifle_LRR_tna_F",
  735. "srifle_GM6_ghex_F",
  736. "srifle_DMR_07_blk_F",
  737. "srifle_DMR_07_hex_F",
  738. "srifle_DMR_07_ghex_F",
  739.  
  740. // Launchers
  741. "launch_NLAW_F",
  742. "launch_RPG32_F",
  743. "launch_RPG32_ghex_F",
  744. "launch_RPG7_F",
  745. "launch_RPG7_F", //x2
  746. "launch_Titan_F",
  747. "launch_I_Titan_F",
  748. "launch_O_Titan_ghex_F",
  749. "launch_O_Titan_F",
  750. "launch_B_Titan_F",
  751. "launch_B_Titan_tna_F",
  752. "launch_Titan_short_F",
  753. "launch_O_Titan_short_F",
  754. "launch_O_Titan_short_ghex_F",
  755. "launch_I_Titan_short_F",
  756. "launch_B_Titan_short_F",
  757. "launch_B_Titan_short_tna_F"
  758. ];
  759.  
  760.  
  761. // Magazine
  762. {
  763. _cargo addMagazineCargoGlobal _x;
  764. } forEach [
  765.  
  766. ["MiniGrenade", (random 20)],
  767. ["HandGrenade", 10],
  768. ["Laserbatteries", 5],
  769. ["7Rnd_408_Mag", 10],
  770. ["9Rnd_45ACP_Mag", 10],
  771. ["130Rnd_338_Mag", 10],
  772. ["20Rnd_556x45_UW_mag", 10],
  773. ["20Rnd_762x51_Mag", 10],
  774. ["30Rnd_45ACP_Mag_SMG_01", 10],
  775. ["30Rnd_556x45_Stanag", 10],
  776. ["30Rnd_65x39_caseless_green", 10],
  777. ["30Rnd_9x21_Mag", 10],
  778. ["APERSBoundingMine_Range_Mag", 10],
  779. ["APERSMine_Range_Mag", 10],
  780. ["APERSTripMine_Wire_Mag", 10],
  781. ["ATMine_Range_Mag", 10],
  782. ["ClaymoreDirectionalMine_Remote_Mag", 10],
  783. ["DemoCharge_Remote_Mag", 10],
  784. ["SatchelCharge_Remote_Mag", 10],
  785. ["SLAMDirectionalMine_Wire_Mag", 10],
  786. ["SmokeShell", 10],
  787. ["SmokeShellBlue", 10],
  788. ["SmokeShellGreen", 10],
  789. ["SmokeShellOrange", 10],
  790. ["SmokeShellPurple", 10],
  791. ["SmokeShellRed", 10],
  792. ["SmokeShellYellow", 10]
  793. ];
  794.  
  795. // items
  796. {
  797. _cargo addItemCargoGlobal _x;
  798. } forEach
  799. [
  800. ["FirstAidKit", (10 + (random 10))],
  801. ["Binocular", 5],
  802. ["acc_flashlight", 5],
  803. ["acc_pointer_IR", 5],
  804. ["bipod_03_F_oli", 5],
  805. ["B_UavTerminal", 5],
  806. ["FirstAidKit", 5],
  807. ["ItemCompass", 5],
  808. ["ItemGPS", 5],
  809. ["ItemMap", 5],
  810. ["ItemRadio", 5],
  811. ["ItemWatch", 5],
  812. ["Laserdesignator", 5],
  813. ["Rangefinder", 5],
  814. ["ToolKit", 5],
  815. ["MineDetector", 5],
  816. ["muzzle_snds_338_green", 5],
  817. ["muzzle_snds_93mmg_tan", 5],
  818. ["muzzle_snds_acp", 5],
  819. ["muzzle_snds_B", 5],
  820. ["muzzle_snds_H", 5],
  821. ["muzzle_snds_H_MG", 5],
  822. ["muzzle_snds_H_SW", 5],
  823. ["muzzle_snds_L", 5],
  824. ["muzzle_snds_M", 5],
  825. ["NVGoggles", 5],
  826. ["optic_ACO_grn", 5],
  827. ["optic_ACO_grn_smg", 5],
  828. ["optic_AMS_snd", 5],
  829. ["optic_Arco", 5],
  830. ["optic_DMS", 5],
  831. ["optic_Hamr", 5],
  832. ["optic_Holosight", 5],
  833. ["optic_Holosight_smg", 5],
  834. ["optic_KHS_old", 5],
  835. ["optic_KHS_tan", 5],
  836. ["optic_LRPS", 5],
  837. ["optic_MRCO", 5],
  838. ["optic_MRD", 5],
  839. ["optic_Nightstalker", 5],
  840. ["optic_NVS", 5],
  841. ["optic_SOS", 5],
  842. ["optic_tws", 5],
  843. ["optic_tws_mg", 5],
  844. ["optic_Yorris", 5]
  845. ];
  846.  
  847. };
  848.  
  849.  
  850. //________________ Type of Chemlight and Smoke ________________
  851.  
  852. _Chemlight_1 = "Chemlight_red" createVehicle (position _Cargo);
  853. _Chemlight_1 attachTo [_Cargo, [0,0.5,-0.4]];
  854. _Chemlight_2 = "Chemlight_red" createVehicle (position _Cargo);
  855. _Chemlight_2 attachTo [_Cargo, [0,-0.5,-0.4]];
  856. _Smoke = "SmokeShellRed" createVehicle (position _Cargo);
  857. _Smoke attachTo [_Cargo, [0,0,0]];
  858.  
  859.  
  860. waitUntil {getPos _Cargo select 2 < 4};
  861. _vel = velocity _Cargo;
  862. _Cargo setVelocity _vel;
  863.  
  864. waitUntil {getPos _Cargo select 2 < 0};
  865. playSound3D ["a3\sounds_f\weapons\Flare_Gun\flaregun_1_shoot.wss",_Cargo];
  866.  
  867. detach _Cargo;
  868. _parachute disableCollisionWith _Cargo;
  869.  
  870. _time = time + 6;
  871. waitUntil {time > _time};
  872. if (!isNull _parachute) then {deleteVehicle _parachute};
  873. _Cargo enableSimulation true;
  874.  
  875.  
  876.  
  877.  
  878. //________________ Spawn a Group at the Airdrops ________________
  879.  
  880. if (_Spawn_Enemy) then {
  881.  
  882. // systemchat "_Spawn_Enemy";
  883.  
  884. _Pos_Spawn = [[[_Pos, 50 + random 250]],["water"]] call BIS_fnc_randomPos;
  885. _Group = createGroup _Enemy_Side;
  886.  
  887. for "_x" from 0 to (_Squad_Members + floor random _Squad_Members_random) do {
  888.  
  889. _unit = _Group createunit [selectRandom _Pool_Infantry,_Pos_Spawn,[],0,"None"];
  890. [_unit] JoinSilent _Group;
  891. (leader _Group) setSkill _set_AiSkill + random _set_AiSkill_random;
  892. };
  893. [_Group,_Pos,_Patrol_distance + random _Patrol_distance_random] call BIS_fnc_taskPatrol;
  894. };
  895.  
  896.  
  897.  
  898.  
  899. //________________ _Create_Markers ________________
  900.  
  901. if (_Create_Markers) then {
  902.  
  903. _Marker_Number_Pos = format ["%1",_Pos];
  904. _Marker_Pos = createMarker [_Marker_Number_Pos,_Pos];
  905. _Marker_Pos setMarkerShape "ICON";
  906. _Marker_Pos setMarkerType "mil_marker";
  907. _Marker_Pos setMarkerColor "ColorUNKNOWN";
  908. _Marker_Pos setMarkerText format ["Airdrop : %1",_a];
  909. _Marker_Pos setMarkerSize [1,1];
  910. };
  911.  
  912. };
  913.  
  914.  
  915. systemchat "C a r g o A i r d r o p s S p a w n e d";
Add Comment
Please, Sign In to add comment