Advertisement
Marz1pan

Untitled

Oct 7th, 2019
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 2.91 KB | None | 0 0
  1. _forma = random 100;
  2. if (_forma > 60) then
  3. {
  4.  
  5. _form = selectrandom["U_Afghan01","U_Afghan02","U_Afghan04","U_Afghan05","U_Afghan06"];
  6. _unit forceAddUniform _form;
  7. }
  8. else
  9. {
  10. _form = selectrandom["U_BG_Guerilla2_1","U_BG_Guerilla3_1","LOP_U_UVF_Fatigue_COY_OSW","LOP_U_UVF_Fatigue_BL","U_C_Poloshirt_tricolour","U_BG_Guerilla2_2"];
  11. _unit forceAddUniform _form;
  12. _hat = selectrandom ["H_ShemagOpen_khk","H_ShemagOpen_tan","H_Shemag_olive","SG_H_Bandana_BLK","H_Booniehat_tan","H_Cap_blk","Afghan_02Hat"];
  13. _unit addHeadgear _hat;
  14.  
  15. };
  16.  
  17. _vest = selectrandom["6B3_RHS_OF","6b5rAK_Sh","OTK_L_Chestrig_Khaki1_RHS","V_BandollierB_blk","V_BandollierB_oli","rhsgref_otv_khaki","rhsgref_chestrig"];
  18. _unit addVest _vest;
  19. _back = selectrandom["B_Kitbag_mcamo","B_Kitbag_rgr","B_Kitbag_cbr","B_Kitbag_tan","B_Kitbag_sgg"];
  20. _unit addBackpack _back;
  21.  
  22. _superlucky = random 100;
  23. if (_superlucky > 98) then {
  24. _unit addItem "rhs_mag_20Rnd_SCAR_762x51_m80a1_epr";
  25. _unit addWeapon "rhs_weap_mk17_STD";
  26. _unit addPrimaryWeaponItem "rhsusf_acc_ACOG";  
  27. _unit linkItem "ItemGPS";
  28. for '_i' from 1 to 7 do { _unit addItemToVest 'rhs_mag_20Rnd_SCAR_762x51_m80a1_epr';};
  29. }
  30. else
  31. {
  32. _weapon = selectrandom["1","2","3","4"];
  33.  
  34. _luck = random 100;
  35. if (_luck > 90) then {
  36.     _unit linkItem "ItemGPS";
  37. };
  38. _bino = random 100;
  39. if (_bino > 80) then {
  40.     _unit addWeapon "Binocular";
  41. };
  42.  
  43. if (_weapon == "1") then
  44. {
  45.  
  46. _unit addItem "rhs_30Rnd_762x39mm_bakelite";
  47. _unit addWeapon "rhs_weap_akm_gp25";
  48. _unit addPrimaryWeaponItem "rhs_acc_dtkakm";
  49. _unit addItemToUniform 'rhs_30Rnd_762x39mm_bakelite';
  50.  
  51. for '_i' from 1 to 5 do { _unit addItemToVest 'rhs_30Rnd_762x39mm_bakelite';};
  52. for '_i' from 1 to 7 do { _unit addItemToVest 'rhs_VOG25';};
  53. for '_i' from 1 to 7 do { _unit addItemToBackpack 'rhs_VOG25';};
  54. };
  55. if (_weapon == "2") then
  56. {
  57.  
  58. _unit addItem "rhs_30Rnd_762x39mm_bakelite";
  59. _unit addWeapon "rhs_weap_akms";
  60. _unit addPrimaryWeaponItem "rhs_acc_dtkakm";
  61. _unit addItemToUniform 'rhs_30Rnd_762x39mm_bakelite';
  62.  
  63. for '_i' from 1 to 5 do { _unit addItemToVest 'rhs_30Rnd_762x39mm_bakelite';};
  64.  
  65. };
  66. if (_weapon == "3") then
  67. {
  68. _unit addItem "rhs_30Rnd_545x39_7N6M_AK";
  69. _unit addWeapon "rhs_weap_ak74";
  70. _unit addPrimaryWeaponItem "rhs_acc_dtk1983";
  71. _unit addItemToUniform 'rhs_30Rnd_545x39_7N6M_AK';
  72.  
  73. for '_i' from 1 to 5 do { _unit addItemToVest 'rhs_30Rnd_545x39_7N6M_AK';};
  74.  
  75. };
  76.  
  77. if (_weapon == "4") then
  78. {
  79. _unit addItem "rhs_mag_30Rnd_556x45_M855A1_Stanag";
  80. _unit addWeapon "rhs_weap_m4a1_carryhandle_mstock";
  81. _unit addItemToUniform 'rhs_mag_30Rnd_556x45_M855A1_Stanag';
  82. _unit addPrimaryWeaponItem "rhsusf_acc_ACOG";
  83. for '_i' from 1 to 5 do { _unit addItemToVest 'rhs_mag_30Rnd_556x45_M855A1_Stanag';};
  84.  
  85. };
  86. };
  87.  
  88. for '_i' from 1 to 2 do { _unit addItemToBackpack 'rhs_mag_rdg2_white';};
  89. for '_i' from 1 to 3 do { _unit addItemToBackpack 'rhs_mag_rgd5';};
  90.  
  91.  
  92. _unit linkItem "ItemMap";
  93. _unit linkItem "ItemCompass";
  94. _unit linkItem "ItemRadio";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement