daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //JANFU Gear Script by Aiello, inspired by gear script in Olsen's Framework V5
  2. // ====================================================================================
  3. //
  4. // Defined loadouts:
  5. //              SL                      - Platoon/Squad Leader
  6. //              FL                      - Fireteam Leader
  7. //              MD                      - Medic
  8. //              AR                      - Auto. Rifleman
  9. //              AAR                     - Assistant Auto. Rifleman
  10. //              LAT                     - Rifleman (AT)
  11. //              RIF                     - Rifleman
  12. //              MG                      - Machinegunner
  13. //              AMG                     - Assistant Machinegunner
  14. //              CREW                     - Vehicle Crewman
  15. //              PIL                     - Pilot
  16. //
  17. // =====================================================================================
  18. _unit = player;
  19.  
  20. removeallweapons _unit;
  21. removeAllAssignedItems _unit;
  22. removebackpack _unit;
  23. removeVest _unit;
  24. removeUniform _unit;
  25. removeHeadGear _unit;
  26. removeGoggles _unit;
  27. sleep 0;
  28.  
  29. //Defines basic gear for all units, MUST GO LAST IN CASE
  30. #define BASIC \
  31. _unit linkItem "ItemMap"; \
  32. _unit linkItem "ItemWatch"; \
  33. _unit linkItem "ItemCompass"; \
  34. _unit addItem "ACRE_PRC343"; \
  35. _unit additem "ACE_Earbuds";\
  36. _unit additem "ACE_Morphine";\
  37. _unit additem "ACE_elasticBandage";\
  38. _unit additem "ACE_elasticBandage";\
  39. _unit additem "ACE_elasticBandage";\
  40. _unit additem "ACE_elasticBandage";\
  41. _unit additem "ACE_elasticBandage";\
  42. _unit additem "ACE_elasticBandage";\
  43. _unit additem "ACE_packingBandage";\
  44. _unit additem "ACE_packingBandage";\
  45. _unit additem "ACE_packingBandage";\
  46. _unit additem "ACE_packingBandage";\
  47. _unit additem "ACE_packingBandage";\
  48. _unit additem "ACE_packingBandage";
  49.  
  50. //Randomized containers and headgear for varied appearance.
  51. _UniformArray = ["rhsgref_uniform_woodland"];
  52. _HeadgearArray = ["rhssaf_helmet_m97_woodland","rhssaf_helmet_m97_woodland_black_ess","rhssaf_helmet_m97_woodland_black_ess_bare"];
  53. _GogglesArray = ["rhsusf_shemagh_tan","rhsusf_shemagh_white","","",""];
  54. _WeaponsArray = ["rhs_weap_ak74m","rhs_weap_ak74m","rhs_weap_ak74m_desert"];
  55. _VestArray = ["V_LIB_US_Vest_Bar"];
  56.  
  57. _randomUniform = _UniformArray select floor random count _UniformArray;
  58. _randomHeadgear = _HeadgearArray select floor random count _HeadgearArray;
  59. _randomGoggles = _GogglesArray select floor random count _GogglesArray;
  60. _randomVest = _VestArray select floor random count _VestArray;
  61. _randomWeapon = _WeaponsArray select floor random count _WeaponsArray;
  62.  
  63. //Defines Uniform for all units (Replace classnames with arrays from random containers above to randomize each element of gear respectively; remember to remove the quotes!).
  64. #define UNIFORM \
  65. _unit forceadduniform "MNP_CombatUniform_China_D"; \
  66. _unit addvest "MNP_Vest_ChinaH_D2"; \
  67. _unit addheadgear "MNP_Helmet_PAGST_CN_D";
  68.  
  69. #define UNIFORM2 \
  70. _unit forceadduniform "rhs_uniform_emr_patchless"; \
  71. _unit addvest "rhs_6b23_digi_6sh92"; \
  72. _unit addheadgear "rhs_6b28";
  73.  
  74.  
  75. switch (typeOf _unit) do
  76. {      
  77. case "B_Soldier_SL_F": //SL
  78. {
  79. UNIFORM;
  80. _unit addmagazines ["30Rnd_580x42_Mag_F",10];
  81. _unit addmagazines ["30Rnd_580x42_Mag_Tracer_F",3];
  82. _unit addmagazines ["1Rnd_HE_Grenade_shell",8];
  83. _unit addweapon "arifle_CTAR_GL_blk_F";
  84. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  85. _unit addmagazines ["rhs_mag_rgd5",1];
  86. _unit addmagazines ["SmokeShell",1];
  87. _unit addmagazines ["SmokeShellGreen",1];
  88. _unit addWeapon "Binocular";
  89. _unit additem "ACE_CableTie";
  90. _unit linkItem "ItemGPS";
  91. _unit additem "ACRE_PRC148";
  92. removeHeadgear _unit;
  93. _unit addheadgear "MNP_MilCap_CN_D";
  94. BASIC;
  95. };
  96. case "B_Soldier_TL_F": //FL
  97. {
  98. UNIFORM;
  99. _unit addmagazines ["30Rnd_580x42_Mag_F",10];
  100. _unit addmagazines ["30Rnd_580x42_Mag_Tracer_F",3];
  101. _unit addmagazines ["1Rnd_HE_Grenade_shell",8];
  102. _unit addweapon "arifle_CTAR_GL_blk_F";
  103. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  104. _unit addmagazines ["rhs_mag_rgd5",1];
  105. _unit addmagazines ["SmokeShell",1];
  106. _unit addmagazines ["SmokeShellGreen",1];
  107. _unit addWeapon "Binocular";
  108. _unit additem "ACE_CableTie";
  109. _unit linkItem "ItemGPS";
  110. _unit additem "ACRE_PRC148";
  111. BASIC;
  112. };
  113. case "B_medic_F": //MD
  114. {
  115. UNIFORM;
  116. _unit addmagazines ["30Rnd_580x42_Mag_F",14];
  117. _unit addweapon "arifle_CTAR_blk_F";
  118. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  119. _unit addBackpack "MNP_B_FieldPack_PLA_Basic_D";
  120. [_unit,"MedB"] call bis_fnc_setUnitInsignia;
  121. _unit setvariable ["ace_medical_medicClass", 1, true];
  122. unitbackpack _unit addItemCargoGlobal ["ACE_elasticBandage",30];
  123. unitbackpack _unit addItemCargoGlobal ["ACE_packingBandage",30];
  124. unitbackpack _unit addItemCargoGlobal ["ACE_epinephrine",15];
  125. unitbackpack _unit addItemCargoGlobal ["ACE_Morphine",15];
  126. unitbackpack _unit addItemCargoGlobal ["ACE_personalAidKit",6];
  127. unitbackpack _unit addItemCargoGlobal ["ACE_salineIV_500",1];
  128. _unit addmagazines ["SmokeShellGreen",1];
  129. _unit addmagazines ["SmokeShell",1];
  130. _unit linkItem "ItemGPS";
  131. BASIC;
  132. };
  133. case "B_soldier_AR_F": //AR
  134. {
  135. UNIFORM;
  136. _unit addBackpack "MNP_B_FieldPack_PLA_Basic_D";
  137. _unit addmagazines ["100Rnd_580x42_Mag_Tracer_F",6];
  138. _unit addweapon "arifle_CTARS_blk_F";
  139. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  140. _unit addmagazines ["SmokeShell",1];
  141. _unit addmagazines ["rhs_mag_rgd5",1];
  142. _unit addmagazines ["SmokeShellGreen",1];
  143. BASIC;
  144. };
  145. case "B_soldier_AAR_F": //AAR
  146. {
  147. UNIFORM;
  148. _unit addBackpack "MNP_B_FieldPack_PLA_Basic_D";
  149. _unit addmagazines ["30Rnd_580x42_Mag_F",13];
  150. _unit addweapon "arifle_CTAR_blk_F";
  151. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  152. unitbackpack _unit addmagazineCargoGlobal ["100Rnd_580x42_Mag_Tracer_F",5];
  153. _unit addmagazines ["rhs_mag_rgd5",1];
  154. _unit addmagazines ["SmokeShell",1];
  155. BASIC;
  156. };
  157. case "B_soldier_LAT_F": //LAT
  158. {
  159. UNIFORM;
  160. _unit addmagazines ["30Rnd_580x42_Mag_F",14];
  161. _unit addweapon "arifle_CTAR_blk_F";
  162. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  163. _unit addmagazines["rhs_rpg26_mag",1];
  164. _unit addweapon "rhs_weap_rpg26";
  165. _unit addmagazines ["rhs_mag_rgd5",1];
  166. _unit addmagazines ["SmokeShell",1];
  167. BASIC;
  168. };
  169. case "B_Sharpshooter_F": //DMR
  170. {
  171. UNIFORM;
  172. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",14];
  173. _unit addweapon "rhs_weap_ak103_1_npz";
  174. _unit addPrimaryWeaponItem "optic_MRCO";
  175. _unit addmagazines ["rhs_mag_rgd5",1];
  176. _unit addmagazines ["SmokeShell",1];
  177. BASIC;
  178. };
  179. case "B_Soldier_F": //RIF
  180. {
  181. UNIFORM;
  182. _unit addmagazines ["30Rnd_580x42_Mag_F",14];
  183. _unit addweapon "arifle_CTAR_blk_F";
  184. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  185. _unit addmagazines ["rhs_mag_rgd5",1];
  186. _unit addmagazines ["SmokeShell",1];
  187. BASIC;
  188. };
  189. case "B_support_MG_F": //MG
  190. {
  191. UNIFORM;
  192. _unit addBackpack "B_AssaultPack_rgr";
  193. _unit addmagazines ["rhsusf_100Rnd_762x51_m62_tracer",6];
  194. _unit addWeapon "rhs_weap_m240G";
  195. _unit addmagazines ["rhs_mag_rgd5",1];
  196. _unit addmagazines ["SmokeShell",1];
  197. _unit addmagazines ["SmokeShellGreen",1];
  198. BASIC;
  199. };
  200. case "B_support_AMG_F": //AMG
  201. {
  202. UNIFORM;
  203. _unit addmagazines ["30Rnd_580x42_Mag_F",14];
  204. _unit addweapon "arifle_CTAR_blk_F";
  205. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  206. _unit addBackpack "rhssaf_kitbag_md2camo";
  207. unitbackpack _unit addmagazineCargoGlobal ["rhsusf_100Rnd_762x51_m62_tracer",5];
  208. _unit addmagazines ["rhs_mag_rgd5",1];
  209. _unit addmagazines ["SmokeShell",1];
  210. BASIC;
  211. };
  212. case "B_Sharpshooter_F": //DMR
  213. {
  214. UNIFORM;
  215. _unit addmagazines ["20Rnd_762x51_Mag",11];
  216. _unit addweapon "CUP_srifle_M14";
  217. _unit addPrimaryWeaponItem "optic_MRCO";
  218. _unit addmagazines ["rhs_mag_rgd5",2];
  219. _unit addmagazines ["SmokeShell",1];
  220. BASIC;
  221. };
  222. case "B_soldier_AT_F": //MAT
  223. {
  224. UNIFORM;
  225. _unit addmagazines ["rhsgref_30rnd_556x45_m21",10];
  226. _unit addweapon "rhs_weap_m21a";
  227. _unit addbackpack "CUP_B_HikingPack_Civ";  
  228. unitbackpack _unit addmagazineCargoGlobal ["rhs_100Rnd_762x54mmR",5];
  229. _unit addmagazines ["rhs_mag_rgd5",1];
  230. _unit addmagazines ["SmokeShell",1];
  231. BASIC;
  232. };
  233. case "B_soldier_AA_F": //AA
  234. {
  235. UNIFORM;
  236. _unit addbackpack "rhsusf_assault_eagleaiii_ocp";
  237. _unit addmagazines ["30Rnd_580x42_Mag_F",10];
  238. _unit addweapon "rhs_weap_hk416d10";
  239. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  240. _unit addmagazines ["rhs_fim92_mag",1];
  241. _unit addweapon "rhs_weap_fim92";
  242. unitbackpack _unit addmagazineCargoGlobal ["rhs_fim92_mag",2];
  243. _unit addmagazines ["SmokeShell",1];
  244. BASIC;
  245. };
  246. case "B_soldier_AAA_F": //AA
  247. {
  248. UNIFORM;
  249. _unit addbackpack "rhsusf_assault_eagleaiii_ocp";
  250. _unit addmagazines ["30Rnd_580x42_Mag_F",13];
  251. _unit addweapon "rhs_weap_hk416d10";
  252. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  253. unitbackpack _unit addmagazineCargoGlobal ["rhs_fim92_mag",2];
  254. _unit addmagazines ["SmokeShell",1];
  255. BASIC;
  256. };
  257. case "B_soldier_AAT_F": //AMAT
  258. {
  259. UNIFORM;
  260. _unit addbackpack "CUP_B_AlicePack_Khaki";
  261. _unit addmagazines ["hlc_20rnd_762x51_b_G3",12];
  262. _unit addweapon "hlc_rifle_g3a3";
  263. _unit addmagazines["rhs_rpg7_OG7V_mag",2];
  264. _unit addmagazines["rhs_rpg7_PG7VL_mag",4];
  265. _unit addmagazines ["rhs_mag_rgd5",1];
  266. _unit addmagazines ["SmokeShell",1];
  267. BASIC;
  268. };
  269. case "B_crew_F": //CREW
  270. {
  271. _unit forceadduniform "MNP_CombatUniform_China_D";
  272. _unit addvest "LOP_6sh46";
  273. removeheadgear _unit;
  274. _unit addheadgear "H_HelmetCrew_B";
  275. _unit addmagazines ["rhs_30Rnd_545x39_AK_green",6];
  276. _unit addweapon "rhs_weap_aks74u";  
  277. _unit addmagazines ["SmokeShell",2];
  278. _unit addmagazines ["SmokeShellGreen",1];
  279. _unit additem "ACRE_PRC148";
  280. BASIC;
  281. };      
  282. case "B_Pilot_F": //PIL
  283. {
  284. _unit forceadduniform "rhs_uniform_m88_patchless";
  285. _unit addvest "LOP_6sh46";
  286. removeheadgear _unit;
  287. _unit addheadgear "rhs_zsh7a_mike_green";
  288. _unit addmagazines ["rhs_30Rnd_545x39_AK",5];
  289. _unit addweapon "rhs_weap_aks74u";  
  290. _unit addmagazines ["SmokeShell",2];
  291. _unit addmagazines ["SmokeShellGreen",1];
  292. _unit additem "ACRE_PRC148";
  293. BASIC;
  294. };  
  295. case "O_Soldier_SL_F": //SL
  296. {
  297. UNIFORM2;
  298. removeVest _unit;
  299. _unit addvest "rhs_6b23_digi_6sh92";
  300. _unit addBackpack "rhs_sidor";
  301. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",9];
  302. _unit addmagazines ["rhs_30Rnd_545x39_AK_plum_green",2];
  303. _unit addmagazines ["rhs_VOG25",7];
  304. _unit addweapon "rhs_weap_ak74m_gp25";
  305. _unit addmagazines ["rhs_mag_rgd5",1];
  306. _unit addmagazines ["SmokeShellGreen",1];
  307. _unit addWeapon "Binocular";
  308. _unit additem "ACE_CableTie";
  309. _unit linkItem "ItemGPS";
  310. _unit additem "ACRE_PRC148";
  311. BASIC;
  312. };
  313. case "O_Soldier_TL_F": //FL
  314. {
  315. UNIFORM2;
  316. _unit addBackpack "rhs_sidor";
  317. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",10];
  318. _unit addmagazines ["rhs_30Rnd_545x39_AK_plum_green",3];
  319. _unit addmagazines ["rhs_VOG25",7];
  320. _unit addweapon "rhs_weap_ak74m_gp25";
  321. _unit addmagazines ["rhs_mag_rgd5",1];
  322. _unit addmagazines ["SmokeShellGreen",1];
  323. _unit addWeapon "Binocular";
  324. _unit additem "ACE_CableTie";
  325. _unit linkItem "ItemGPS";
  326. _unit additem "ACRE_PRC148";
  327. BASIC;
  328. };
  329. case "O_medic_F": //MD
  330. {
  331. UNIFORM2;
  332. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",8];
  333. _unit addweapon "rhs_weap_ak74m";
  334. _unit addBackpack "rhs_sidor";
  335. [_unit,"MedB"] call bis_fnc_setUnitInsignia;
  336. _unit setvariable ["ace_medical_medicClass", 1, true];
  337. unitbackpack _unit addItemCargoGlobal ["ACE_elasticBandage",30];
  338. unitbackpack _unit addItemCargoGlobal ["ACE_packingBandage",30];
  339. unitbackpack _unit addItemCargoGlobal ["ACE_epinephrine",15];
  340. unitbackpack _unit addItemCargoGlobal ["ACE_Morphine",15];
  341. unitbackpack _unit addItemCargoGlobal ["ACE_personalAidKit",6];
  342. unitbackpack _unit addItemCargoGlobal ["ACE_salineIV_500",1];
  343. _unit addmagazines ["SmokeShellGreen",1];
  344. _unit addmagazines ["SmokeShell",1];
  345. _unit linkItem "ItemGPS";
  346. BASIC;
  347. };
  348. case "O_Soldier_AR_F": //AR
  349. {
  350. UNIFORM2;
  351. _unit addBackpack "rhs_sidor";
  352. _unit addmagazines ["rhs_100Rnd_762x54mmR",3];
  353. _unit addweapon "rhs_weap_pkm";
  354. _unit addmagazines ["SmokeShell",1];
  355. _unit addmagazines ["rhs_mag_rgd5",1];
  356. _unit addmagazines ["SmokeShellGreen",1];
  357. BASIC;
  358. };
  359. case "O_Soldier_AAR_F": //AAR
  360. {
  361. UNIFORM2;
  362. _unit addBackpack "rhs_sidor";
  363. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",8];
  364. _unit addweapon "rhs_weap_ak74m";
  365. unitbackpack _unit addmagazineCargoGlobal ["rhs_100Rnd_762x54mmR",4];
  366. _unit addmagazines ["rhs_mag_rgd5",1];
  367. _unit addmagazines ["SmokeShell",1];
  368. BASIC;
  369. };
  370. case "B_soldier_LAT_F": //LAT
  371. {
  372. UNIFORM2;
  373. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",14];
  374. _unit addweapon "arifle_CTAR_blk_F";
  375. _unit addPrimaryWeaponItem "rhs_acc_1p87";
  376. _unit addmagazines["rhs_rpg26_mag",1];
  377. _unit addweapon "rhs_weap_rpg26";
  378. _unit addmagazines ["rhs_mag_rgd5",1];
  379. _unit addmagazines ["SmokeShell",1];
  380. BASIC;
  381. };
  382. case "B_Sharpshooter_F": //DMR
  383. {
  384. UNIFORM2;
  385. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",14];
  386. _unit addweapon "rhs_weap_ak103_1_npz";
  387. _unit addPrimaryWeaponItem "optic_MRCO";
  388. _unit addmagazines ["rhs_mag_rgd5",1];
  389. _unit addmagazines ["SmokeShell",1];
  390. BASIC;
  391. };
  392. case "O_Soldier_F": //RIF
  393. {
  394. UNIFORM2;
  395. _unit addBackpack "rhs_sidor";
  396. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",13];
  397. _unit addweapon "rhs_weap_ak74m";
  398. _unit addmagazines ["rhs_mag_rgd5",1];
  399. _unit addmagazines ["SmokeShell",1];
  400. BASIC;
  401. };
  402. case "O_Soldier_AT_F": //MAT
  403. {
  404. UNIFORM2;
  405. _unit addbackpack "rhs_rpg_empty";
  406. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",8];
  407. _unit addweapon "rhs_weap_ak74m";
  408. _unit addweapon "rhs_weap_rpg7";
  409. unitbackpack _unit addmagazineCargoGlobal ["rhs_rpg7_PG7VL_mag",3];
  410. _unit addmagazines ["SmokeShell",1];
  411. BASIC;
  412. };
  413. case "O_Soldier_AAT_F": //AMAT
  414. {
  415. UNIFORM2;
  416. _unit addBackpack "rhs_sidor";
  417. _unit addmagazines ["rhs_30Rnd_545x39_7N10_AK",8];
  418. _unit addweapon "rhs_weap_ak74m";
  419. unitbackpack _unit addmagazineCargoGlobal ["rhs_rpg7_PG7VL_mag",3];
  420. _unit addmagazines ["SmokeShell",1];
  421. BASIC;
  422. };
  423. case "O_crew_F": //CREW
  424. {
  425. _unit forceadduniform "rhs_uniform_m88_patchless";
  426. _unit addvest "LOP_6sh46";
  427. removeheadgear _unit;
  428. _unit addheadgear "rhs_tsh4";
  429. _unit addmagazines ["rhs_30Rnd_545x39_AK_green",6];
  430. _unit addweapon "rhs_weap_aks74u";  
  431. _unit addmagazines ["SmokeShell",2];
  432. _unit addmagazines ["SmokeShellGreen",1];
  433. _unit additem "ACRE_PRC148";
  434. BASIC;
  435. };        
  436. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top