Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. In the ammobox initialization line:
  2. null = [this] execVM "virtual_arsenal_init.sqf"
  3.  
  4. In virtual_arsenal_init.sqf:
  5. //Init stuff
  6. _crate = _this select 0;
  7. ["AmmoboxInit",[_crate,false,{true}]] spawn BIS_fnc_arsenal;
  8.  
  9. //Lists of items to include
  10. _availableHeadgear = [
  11. "rhsusf_ach_helmet_headset_ess_ocp",
  12. "rhsusf_ach_helmet_ocp",
  13. "rhsusf_ach_helmet_ESS_ocp",
  14. "rhsusf_ach_helmet_headset_ocp"
  15. ];
  16.  
  17. _availableGoggles = [
  18. "G_Shades_Black",
  19. "G_Shades_Blue",
  20. "G_Shades_Green",
  21. "G_Shades_Red",
  22. "G_Spectacles_Tinted"
  23. ];
  24.  
  25. _availableUniforms = [
  26. "rhs_uniform_cu_ocp"
  27.  
  28. ];
  29.  
  30. _availableVests = [
  31. "rhsusf_iotv_ocp",
  32. "rhsusf_iotv_ocp_Repair",
  33. "rhsusf_iotv_ocp_Grenadier",
  34. "rhsusf_iotv_ocp_Medic",
  35. "rhsusf_iotv_ocp_Rifleman",
  36. "rhsusf_iotv_ocp_SAW",
  37. "rhsusf_iotv_ocp_Squadleader",
  38. "rhsusf_iotv_ocp_Teamleader"
  39. ];
  40.  
  41. _availableBackpacks = [
  42. "rhsusf_assault_eagleaiii_ocp"
  43.  
  44. ];
  45.  
  46. _availableItems = [
  47. "ItemWatch",
  48. "ItemCompass",
  49. "ItemGPS",
  50. "ItemMap",
  51. "ItemAndroid",
  52. "Rangefinder",
  53. "NVGoggles",
  54. "NVGoggles_OPFOR",
  55. "NVGoggles_INDEP",
  56. "Laserdesignator",
  57. "tf_anprc152",
  58. "rhsusf_acc_anpeq15",
  59. "rhsusf_acc_anpeq15A",
  60. "rhsusf_acc_ACOG",
  61. "rhsusf_acc_ACOG2",
  62. "rhsusf_acc_ACOG3",
  63. "rhsusf_acc_compm4",
  64. "ItemcTabHCam",
  65. "ItemcTab",
  66. "AGM_M26_Clacker",
  67. "AGM_Clacker",
  68. "AGM_DefusalKit",
  69. "AGM_EarBuds",
  70. "AGM_CableTie",
  71. "AGM_MapTools",
  72. "AGM_Vector",
  73. "AGM_ItemKestrel",
  74. "AGM_Altimeter",
  75. "AGM_Morphine",
  76. "AGM_Epinephrine",
  77. "AGM_Bandages"
  78.  
  79. ];
  80.  
  81. _availableMagazines = [
  82. "rhs_mag_30Rnd_556x45_Mk318_Stanag",
  83. "rhs_mag_30Rnd_556x45_M855A1_Stanag",
  84. "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",
  85. "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Green",
  86. "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Yellow",
  87. "rhs_mag_M433_HEDP",
  88. "rhs_mag_M4009",
  89. "rhs_mag_m576",
  90. "rhs_mag_M585_white",
  91. "rhs_mag_M661_green",
  92. "rhs_mag_M662_red",
  93. "rhs_mag_M713_red",
  94. "rhs_mag_M714_white",
  95. "rhs_mag_M715_green",
  96. "rhs_mag_M716_yellow",
  97. "rhsusf_100Rnd_556x45_soft_pouch",
  98. "rhsusf_100Rnd_762x51",
  99. "rhs_m136_mag",
  100. "rhs_fgm148_magazine_AT",
  101. "DemoCharge_Remote_Mag",
  102. "SatchelCharge_Remote_Mag",
  103. "RH_15Rnd_9x19_M9",
  104. "SmokeShell",
  105. "SmokeShellRed",
  106. "SmokeShellGreen",
  107. "SmokeShellYellow",
  108. "SmokeShellPurple",
  109. "SmokeShellBlue",
  110. "SmokeShellOrange",
  111. "AGM_HandFlare_Green",
  112. "AGM_HandFlare_Red",
  113. "AGM_HandFlare_White",
  114. "AGM_HandFlare_Yellow",
  115. "AGM_M84",
  116. "HandGrenade",
  117. "MiniGrenade"
  118.  
  119. ];
  120.  
  121. _availableWeapons = [
  122. "rhs_weap_m4a1",
  123. "rhs_weap_m4a1_grip",
  124. "rhs_m4a1_m320",
  125. "rhs_weap_m240B",
  126. "rhs_weap_m249_pip",
  127. "rhs_weap_M136",
  128. "rhs_weap_fgm148",
  129. "RH_m9",
  130. "Binocular"
  131.  
  132. ];
  133.  
  134. //Populate with predefined items and whatever is already in the crate
  135. [_crate,((backpackCargo _crate) + _availableBackpacks)] call BIS_fnc_addVirtualBackpackCargo;
  136. [_crate,((itemCargo _crate) + _availableHeadgear + _availableGoggles + _availableUniforms + _availableVests + _availableItems)] call BIS_fnc_addVirtualItemCargo;
  137. [_crate,((magazineCargo _crate) + _availableMagazines)] call BIS_fnc_addVirtualMagazineCargo;
  138. [_crate,((weaponCargo _crate) + _availableWeapons)] call BIS_fnc_addVirtualWeaponCargo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement