Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. // LOADOUT SCRIPT // TSUKI - NOON - KTOĹ? TAM
  2. // nul = [this, "PILOT"] execVM "LOADOUT.sqf";
  3. private ["_unit", "_strLoadout"];
  4. sleep .1;
  5. _unit = _this select 0;
  6. _strLoadout = _this select 1;
  7.  
  8. if (isServer) then {
  9.  
  10. comment "Remove existing items";
  11. removeAllWeapons _unit;
  12. removeAllItems _unit;
  13. removeAllAssignedItems _unit;
  14. removeUniform _unit;
  15. removeVest _unit;
  16. removeBackpack _unit;
  17. removeHeadgear _unit;
  18. removeGoggles _unit;
  19.  
  20. switch (_strLoadout) do
  21. {
  22.  
  23. case "ATSPEC":
  24. {
  25. comment "Add containers";
  26. _unit forceAddUniform "U_SBE_USMC_B_CombatUniform_mcam_vest";
  27. _unit addVest "V_SBE_USMC_PlateCarrier1_rgr";
  28. for "_i" from 1 to 8 do {_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Red";};
  29. for "_i" from 1 to 4 do {_unit addItemToVest "RH_12Rnd_45cal_usp";};
  30. _unit addBackpack "B_FieldPack_khk";
  31. _unit addItemToBackpack "ToolKit";
  32. for "_i" from 1 to 2 do {_unit addItemToBackpack "SmokeShell";};
  33. for "_i" from 1 to 2 do {_unit addItemToBackpack "HandGrenade";};
  34. for "_i" from 1 to 2 do {_unit addItemToBackpack "Chemlight_blue";};
  35. for "_i" from 1 to 2 do {_unit addItemToBackpack "SLAMDirectionalMine_Wire_Mag";};
  36. _unit addHeadgear "H_SBE_USMC_HelmetB";
  37. _unit addGoggles "G_Bandanna_khk";
  38.  
  39. comment "Add weapons";
  40. _unit addWeapon "R3F_HK416M_DES";
  41. _unit addPrimaryWeaponItem "R3F_SILENCIEUX_HK416_DES";
  42. _unit addPrimaryWeaponItem "acc_pointer_IR";
  43. _unit addPrimaryWeaponItem "R3F_AIMPOINT_DES";
  44. _unit addWeapon "R3F_AT4CS";
  45. _unit addWeapon "RH_usp";
  46. _unit addHandgunItem "RH_gemtech45";
  47. _unit addHandgunItem "RH_X2";
  48. };
  49. case "RIFLEMAN":
  50. {
  51. comment "Add containers";
  52. this forceAddUniform "U_SBE_USMC_B_CombatUniform_mcam_vest";
  53. this addItemToUniform "R3F_30Rnd_556x45_HK416";
  54. this addVest "V_SBE_USMC_PlateCarrier1_rgr";
  55. for "_i" from 1 to 8 do {_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Red";};
  56. for "_i" from 1 to 4 do {_unit addItemToVest "RH_12Rnd_45cal_usp";};
  57. this addBackpack "B_FieldPack_khk";
  58. this addItemToBackpack "ToolKit";
  59. for "_i" from 1 to 2 do {this addItemToBackpack "SmokeShell";};
  60. for "_i" from 1 to 2 do {this addItemToBackpack "HandGrenade";};
  61. for "_i" from 1 to 2 do {this addItemToBackpack "Chemlight_blue";};
  62. this addHeadgear "H_SBE_Army_HelmetL";
  63. this addGoggles "G_Balaclava_oli";
  64.  
  65. comment "Add weapons";
  66. this addWeapon "R3F_HK416M_HG";
  67. this addPrimaryWeaponItem "R3F_SILENCIEUX_HK416";
  68. this addPrimaryWeaponItem "FHQ_acc_LLM01F";
  69. this addPrimaryWeaponItem "R3F_AIMPOINT";
  70. this addWeapon "RH_usp";
  71. this addHandgunItem "RH_gemtech45";
  72. this addHandgunItem "RH_X2";
  73. };
  74.  
  75. };
  76.  
  77. // _unit addWeapon "itemGPS";
  78. _unit linkItem "ItemMap";
  79. _unit linkItem "ItemCompass";
  80. _unit linkItem "ItemWatch";
  81. _unit linkItem "tf_anprc148jem";
  82. _unit linkItem "ItemGPS";
  83. _unit linkItem "STKR_HMNVS";
  84. _unit linkItem "Binocular";
  85.  
  86.  
  87. _primaryWeapon = primaryWeapon _unit;
  88. _unit selectweapon _primaryWeapon;
  89.  
  90. // check for multiple muzzles (eg: GL)
  91. _muzzles = getArray(configFile >> "cfgWeapons" >> _primaryWeapon >> "muzzles");
  92.  
  93. if (count _muzzles > 1) then
  94. {
  95. _unit selectWeapon (_muzzles select 0);
  96. };
  97. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement