Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.40 KB | None | 0 0
  1. private [_unit,_heads,_voices,_uniforms,_vests,_helms,_eyesAll,_eyesNoShem,_shems,_eyes,_head,_voice,_uniform,_vest,_uniform,_helm,_goggles];
  2.  
  3. _unit = _this select 0;
  4.  
  5. _heads = [
  6.     "PersianHead_A3_01",
  7.     "PersianHead_A3_02",
  8.     "PersianHead_A3_03",
  9.     "AfricanHead_01",
  10.     "AfricanHead_02",
  11.     "AfricanHead_03",
  12.     "GreekHead_A3_02",
  13.     "GreekHead_A3_03"
  14. ];
  15.  
  16. _voices = ["Male01PER","Male02PER","Male03PER"];
  17.  
  18. _uniforms = [
  19.     "U_OG_leader",
  20.     "U_OG_Guerilla1_1",
  21.     "U_OG_Guerilla2_1",
  22.     "U_OG_Guerilla2_2",
  23.     "U_OG_Guerilla2_3",
  24.     "U_OG_Guerilla3_1",
  25.     "U_OG_Guerrilla_6_1"
  26. ];
  27.  
  28. _vests = [
  29.     "V_BandollierB_blk",
  30.     "V_BandollierB_cbr",
  31.     "V_BandollierB_rgr",
  32.     "V_BandollierB_khk",
  33.     "V_BandollierB_oli",
  34.     "V_TacVest_blk",
  35.     "V_TacVest_brn",
  36.     "V_TacVest_camo",
  37.     "V_TacVest_khk",
  38.     "V_TacVest_oli",
  39.     "V_I_G_resistanceLeader_F"
  40. ];
  41.  
  42. _helms = [
  43.     "",
  44.     "H_Bandanna_gry",
  45.     "H_Bandanna_cbr",
  46.     "H_Bandanna_khk",
  47.     "H_Bandanna_sand",
  48.     "H_Bandanna_camo",
  49.     "H_HelmetB_snakeskin",
  50.     "H_Shemag_olive",
  51.     "H_ShemagOpen_tan",
  52.     "H_ShemagOpen_khk",
  53.     "H_Beret_blk"
  54. ];
  55.  
  56. _eyesShem = [
  57.     "",
  58.     "G_Lowprofile",
  59.     "G_Shades_Black"
  60. ];
  61.  
  62. _eyesNoShem = [
  63.     "",
  64.     "G_Lowprofile",
  65.     "G_Shades_Black",
  66.     "G_Aviator",
  67.     "G_Balaclava_blk",
  68.     "G_Balaclava_lowprofile",
  69.     "G_Balaclava_oli",
  70.     "G_Bandanna_aviator",
  71.     "G_Bandanna_blk",
  72.     "G_Bandanna_khk",
  73.     "G_Bandanna_oli",
  74.     "G_Bandanna_shades",
  75.     "G_Bandanna_sport",
  76.     "G_Bandanna_tan"
  77. ];
  78.  
  79. _shems = [
  80.     "H_Shemag_olive",
  81.     "H_ShemagOpen_tan",
  82.     "H_ShemagOpen_khk"
  83. ];
  84.  
  85. _head = _heads call BIS_fnc_selectRandom;
  86. _voice = _voices call BIS_fnc_selectRandom;
  87. _uniform = _uniforms call BIS_fnc_selectRandom;
  88. _vest = _vests call BIS_fnc_selectRandom;
  89. _helm = _helms call BIS_fnc_selectRandom;
  90.  
  91. if (_helm in _shems) then {
  92.     _goggles = _eyesShem call BIS_fnc_selectRandom;
  93.     _unit addGoggles _goggles;
  94. } else {
  95.     _goggles = _eyesNoShem call BIS_fnc_selectRandom;
  96.     _unit addGoggles _goggles;
  97. };
  98.  
  99. removeAllWeapons _unit;
  100. removeAllItems _unit;
  101. removeAllAssignedItems _unit;
  102. removeUniform _unit;
  103. removeVest _unit;
  104. removeBackpack _unit;
  105. removeHeadgear _unit;
  106. removeGoggles _unit;
  107.  
  108. _unit forceAddUniform _uniform;
  109. _unit addVest _vest;
  110. _unit addHeadgear _helm;
  111.  
  112. _unit addWeapon "";
  113. _unit addPrimaryWeaponItem "";
  114. _unit addWeapon "";
  115.  
  116. _unit linkItem "ItemMap";
  117. _unit linkItem "ItemCompass";
  118. _unit linkItem "ItemWatch";
  119. _unit linkItem "ItemRadio";
  120.  
  121. _unit setFace _head;
  122. _unit setSpeaker _voice;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement