Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. while {true} do {
  2. {
  3. if (!(_x getVariable ["zeu_aiLoadout",false]) && {!isPlayer _x}) then {
  4. _x setVariable ["zeu_aiLoadout",true];
  5.  
  6. removeAllWeapons _x;
  7. removeAllItems _x;
  8. removeAllAssignedItems _x;
  9. removeUniform _x;
  10. removeVest _x;
  11. removeBackpack _x;
  12. removeHeadgear _x;
  13. removeGoggles _x;
  14.  
  15. switch (typeOf _x) do
  16. {
  17. case "O_Soldier_SL_F" : {
  18.  
  19. comment "Remove existing items";
  20. removeAllWeapons _x;
  21. removeAllItems _x;
  22. removeAllAssignedItems _x;
  23. removeUniform _x;
  24. removeVest _x;
  25. removeBackpack _x;
  26. removeHeadgear _x;
  27. removeGoggles _x;
  28.  
  29. comment "Add containers";
  30. _x forceAddUniform "rhsgref_uniform_olive";
  31. for "_i" from 1 to 4 do {_x addItemToUniform "ACE_elasticBandage";};
  32. for "_i" from 1 to 4 do {_x addItemToUniform "ACE_packingBandage";};
  33. _x addItemToUniform "ACE_tourniquet";
  34. _x addItemToUniform "SmokeShell";
  35. _x addItemToUniform "rhs_mag_rgd5";
  36. _x addVest "rhssaf_vest_md99_md2camo_rifleman_radio";
  37. for "_i" from 1 to 6 do {_x addItemToVest "rhs_30Rnd_762x39mm_bakelite";};
  38. _x addBackpack "B_Messenger_Black_F";
  39. for "_i" from 1 to 2 do {_x addItemToBackpack "rhs_30Rnd_762x39mm_bakelite";};
  40. _x addItemToBackpack "rhs_mag_m67";
  41. _x addItemToBackpack "SmokeShell";
  42. _x addHeadgear "rhssaf_helmet_m97_black_nocamo";
  43. _x addGoggles "rhsusf_shemagh2_od";
  44.  
  45. comment "Add weapons";
  46. _x addWeapon "rhs_weap_akm";
  47. _x addPrimaryWeaponItem "rhs_acc_dtkakm";
  48. _x addWeapon "rhs_weap_rpg26";
  49. _x addWeapon "Binocular";
  50.  
  51. comment "Add items";
  52. _x linkItem "ItemMap";
  53. _x linkItem "ItemCompass";
  54. _x linkItem "ItemWatch";
  55.  
  56. };
  57.  
  58. case "O_Soldier_AT_F" : {
  59.  
  60. comment "Remove existing items";
  61. removeAllWeapons _x;
  62. removeAllItems _x;
  63. removeAllAssignedItems _x;
  64. removeUniform _x;
  65. removeVest _x;
  66. removeBackpack _x;
  67. removeHeadgear _x;
  68. removeGoggles _x;
  69.  
  70. comment "Add containers";
  71. _x forceAddUniform "rhsgref_uniform_woodland_olive";
  72. for "_i" from 1 to 4 do {_x addItemToUniform "ACE_elasticBandage";};
  73. for "_i" from 1 to 4 do {_x addItemToUniform "ACE_packingBandage";};
  74. _x addItemToUniform "ACE_tourniquet";
  75. _x addItemToUniform "SmokeShell";
  76. _x addItemToUniform "rhs_mag_rgd5";
  77. _x addItemToUniform "rhs_30Rnd_762x39mm_bakelite";
  78. _x addVest "V_TacVest_oli";
  79. for "_i" from 1 to 4 do {_x addItemToVest "rhssaf_30Rnd_762x39mm_M67";};
  80. _x addBackpack "rhs_rpg_empty";
  81. _x addItemToBackpack "rhs_rpg7_PG7VL_mag";
  82. _x addItemToBackpack "rhs_rpg7_type69_airburst_mag";
  83. for "_i" from 1 to 2 do {_x addItemToBackpack "rhs_rpg7_PG7VL_mag";};
  84. _x addHeadgear "H_Shemag_olive";
  85.  
  86. comment "Add weapons";
  87. _x addWeapon "rhs_weap_m70ab2";
  88. _x addWeapon "rhs_weap_rpg7";
  89.  
  90. comment "Add items";
  91. _x linkItem "ItemMap";
  92. _x linkItem "ItemCompass";
  93. _x linkItem "ItemWatch";
  94.  
  95.  
  96. };
  97.  
  98.  
  99.  
  100. default {
  101.  
  102. comment "Exported from Arsenal by StRiKeR";
  103.  
  104. comment "Remove existing items";
  105. removeAllWeapons _x;
  106. removeAllItems _x;
  107. removeAllAssignedItems _x;
  108. removeUniform _x;
  109. removeVest _x;
  110. removeBackpack _x;
  111. removeHeadgear _x;
  112. removeGoggles _x;
  113.  
  114. comment "Add containers";
  115. _x forceAddUniform "U_I_C_Soldier_Bandit_5_F";
  116. for "_i" from 1 to 3 do {_x addItemToUniform "ACE_elasticBandage";};
  117. for "_i" from 1 to 3 do {_x addItemToUniform "ACE_fieldDressing";};
  118. for "_i" from 1 to 3 do {_x addItemToUniform "ACE_packingBandage";};
  119. _x addItemToUniform "rhs_mag_rgd5";
  120. _x addVest "V_Pocketed_coyote_F";
  121. for "_i" from 1 to 4 do {_x addItemToVest "hlc_20Rnd_762x51_B_fal";};
  122. _x addBackpack "B_Messenger_Black_F";
  123. _x addItemToBackpack "ACE_M26_Clacker";
  124. for "_i" from 1 to 4 do {_x addItemToBackpack "hlc_20Rnd_762x51_B_fal";};
  125. for "_i" from 1 to 2 do {_x addItemToBackpack "DemoCharge_Remote_Mag";};
  126. _x addItemToBackpack "APERSMine_Range_Mag";
  127. _x addHeadgear "H_ShemagOpen_khk";
  128.  
  129. comment "Add weapons";
  130. _x addWeapon "hlc_rifle_SLRchopmod";
  131.  
  132. comment "Add items";
  133. _x linkItem "ItemMap";
  134. _x linkItem "ItemCompass";
  135. _x linkItem "ItemWatch";
  136.  
  137. };
  138. };
  139. };
  140. } forEach allUnits;
  141. sleep 10;
  142. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement