Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ----------------------------------------------------------------------------------------------
- Copyright © 2016 soulkobk (soulkobk.blogspot.com)
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------------------------
- Name: randomSoldierLoadOut.sqf
- Version: 1.0.1
- Author: soulkobk (soulkobk.blogspot.com)
- Creation Date: 2:20 PM 10/10/2016
- Modification Date: 2:20 PM 10/10/2016
- Description:
- For use with A3Wasteland 1.Xx mission (A3Wasteland.com). This script is for custom AI loadouts,
- for usage within missions.
- Place this script into folder...
- \server\missions\factoryMethods\createUnits\randomSoldierLoadOut.sqf
- Then add...
- randomSoldierLoadOut = [_path, "createUnits\randomSoldierLoadOut.sqf"] call mf_compile;
- To...
- \server\functions\serverCompile.sqf
- Underneath the line...
- _path = "server\missions\factoryMethods";
- Then in each of your createUnits files, for example...
- \server\missions\factoryMethods\createUnits\customGroup.sqf
- \server\missions\factoryMethods\createUnits\customGroup2.sqf
- \server\missions\factoryMethods\createUnits\createRandomSoldier.sqf
- \server\missions\factoryMethods\createUnits\createRandomSoldierC.sqf
- You need to remove the old load out for AI and add in...
- [_soldier] call randomSoldierLoadOut;
- *Or leave the original code as-is and add the above line to the end of each of those scripts
- (before the last "_soldier" line) to override the _soldier's load out with 100% random gear.
- This script will load out each AI unit randomly with...
- + Uniform (default/guarenteed addition)
- + Head Gear (percentage chance addition)
- + Vest (percentage chance addition)
- + Back Pack (percentage chance addition)
- + Primary Weapon (default/guarenteed addition)
- + Primary Weapon Muzzle (percentage chance addition)
- + Primary Weapon Pointer (percentage chance addition)
- + Primary Weapon Optic (percentage chance addition)
- + Health Kit(s) (percentage chance addition) - unit will also have 'Medic' trait
- + Grenade(s) (percentage chance addition)
- + Rocket Launcher (percentage chance addition) - unit will also have a back pack added
- *See the percentage chance per AI unit below (changable configuration).
- *See _opticsDisallow option to REMOVE optics from the random optic list.
- Changeable configuration below.
- Parameter(s): [<unit>] call randomSoldierLoadOut;
- Example: [_soldier] call randomSoldierLoadOut;
- Change Log:
- 1.0.0 - original base script.
- 1.0.1 - corrected _opticsDisallow default entries.
- 1.0.2 - corrected typo at setUnitTrait.
- ----------------------------------------------------------------------------------------------
- */
- if !(isServer) exitWith {}; // DO NOT DELETE THIS LINE!
- _headGearProbability = 65; // 65% chance
- _vestProbability = 100; // 100% chance
- _backpackProbability = 25; // 25% chance
- _muzzleProbability = 35; // 35% chance
- _pointerProbability = 25; // 25% chance
- _opticProbability = 45; // 45% chance
- _healthProbability = 25; // 25% chance
- _grenadeProbability = 35; // 35% chance
- _launcherProbability = 15; // 15% chance
- _healthAmount = (round (random 4) + 1); // minimum 1, maximum 5
- _grenadeAmount = (round (random 4) + 1); // minimum 1, maximum 5
- _weaponMagazineAmount = (round(random 4) + 2); // minimum 2, maximum 6
- _launcherMagazineAmount = (round(random 3) + 3); // minimum 3, maximum 6
- _primaryWeapons = // .45, 9mm, 5.45mm, 5.56mm, 5.8mm and 6.5mm ONLY! NO OP WEAPONS!
- [
- "arifle_AKS_F", // AKS-74U 5.45 mm
- "arifle_CTARS_blk_F", // CAR-95-1 5.8mm (Black)
- "arifle_CTAR_blk_F", // CAR-95 5.8 mm (Black)
- "arifle_Katiba_C_F", // Katiba Carbine 6.5 mm
- "arifle_Katiba_F", // Katiba 6.5 mm
- "arifle_Mk20C_plain_F", // Mk20C 5.56 mm
- "arifle_Mk20_plain_F", // Mk20 5.56 mm
- "arifle_MXC_Black_F", // MXC 6.5 mm (Black)
- "arifle_MXC_F", // MXC 6.5 mm
- "arifle_MXM_Black_F", // MXM 6.5 mm (Black)
- "arifle_MXM_F", // MXM 6.5 mm
- "arifle_MX_Black_F", // MX 6.5 mm (Black)
- "arifle_MX_F", // MX 6.5 mm
- "arifle_MX_SW_Black_F", // MX SW 6.5 mm (Black)
- "arifle_MX_SW_F", // MX SW 6.5 mm
- "arifle_SDAR_F", // SDAR 5.56 mm
- "arifle_SPAR_01_blk_F", // SPAR-16 5.56 mm (Black)
- "arifle_SPAR_02_blk_F", // SPAR-16S 5.56 mm (Black)
- "arifle_TRG20_F", // TRG-20 5.56 mm
- "arifle_TRG21_F", // TRG-21 5.56 mm
- "hgun_PDW2000_F", // PDW2000 9 mm
- "LMG_03_F", // LIM-85 5.56 mm
- "LMG_Mk200_BI_F", // Mk200 6.5 mm
- "LMG_Mk200_F", // Mk200 6.5 mm
- "SMG_01_F", // Vermin SMG .45 ACP
- "SMG_02_F", // Sting 9 mm
- "SMG_05_F", // Protector 9 mm
- "srifle_DMR_07_blk_F", // CMR-76 6.5 mm (Black)
- //CUP
- "hgun_PDW2000_F",
- "SMG_05_F",
- "SMG_02_F",
- "SMG_01_F",
- // CUP SMG's
- "CUP_smg_bizon",
- "CUP_smg_bizon_snds",
- "CUP_smg_EVO",
- "CUP_smg_EVO_MRad_Flashlight",
- "CUP_smg_EVO_MRad_Flashlight_Snds",
- "CUP_smg_MP5A5",
- "CUP_smg_MP5SD6",
- // CUP Shotguns
- "CUP_sgun_AA12",
- "CUP_sgun_M1014",
- "CUP_sgun_Saiga12K",
- // CUP Assault Rifles
- "CUP_arifle_AKS74",
- "CUP_arifle_AKS74_kobra",
- "CUP_arifle_AKS74_pso",
- "CUP_arifle_AKS74_NSPU",
- "CUP_arifle_AKS74_Goshawk",
- "CUP_arifle_AKS74U",
- "CUP_arifle_AKS74UN_kobra_snds",
- "CUP_arifle_AKS",
- "CUP_arifle_AKS_Gold",
- "CUP_arifle_AKM",
- "CUP_arifle_AK74",
- "CUP_arifle_AK74_GL",
- "CUP_arifle_AK74_GL_kobra",
- "CUP_arifle_RPK74",
- "CUP_arifle_AK107",
- "CUP_arifle_AK107_kobra",
- "CUP_arifle_AK107_pso",
- "CUP_arifle_AK107_GL",
- "CUP_arifle_AK107_GL_kobra",
- "CUP_arifle_AK107_GL_pso",
- "CUP_arifle_CZ805_A1",
- "CUP_arifle_CZ805_A1_Aco_Laser",
- "CUP_arifle_CZ805_A1_Holo_Laser",
- "CUP_arifle_CZ805_A1_MRCO_Laser",
- "CUP_arifle_CZ805_A1_ZDDot_Laser",
- "CUP_arifle_CZ805_GL",
- "CUP_arifle_CZ805_GL_ZDDot_Laser",
- "CUP_arifle_CZ805_GL_Hamr_Laser",
- "CUP_arifle_CZ805_A2",
- "CUP_arifle_CZ805_A2_Aco_Laser",
- "CUP_arifle_CZ805_A2_Holo_Laser",
- "CUP_arifle_CZ805_A2_MRCO_Laser",
- "CUP_arifle_CZ805_A2_ZDDot_Flashlight_Snds",
- "CUP_arifle_CZ805_B",
- "CUP_arifle_CZ805_B_GL",
- "CUP_arifle_CZ805B_GL_ACOG_Laser",
- "CUP_arifle_FNFAL",
- "CUP_arifle_FNFAL_railed",
- "CUP_arifle_FNFAL_ANPVS4",
- "CUP_arifle_G36A",
- "CUP_arifle_G36A_camo",
- "CUP_arifle_G36K",
- "CUP_arifle_G36K_camo",
- "CUP_arifle_G36C",
- "CUP_arifle_G36C_camo",
- "CUP_arifle_G36C_holo_snds",
- "CUP_arifle_G36C_camo_holo_snds",
- "CUP_arifle_MG36",
- "CUP_arifle_MG36_camo",
- "CUP_arifle_L85A2",
- "CUP_arifle_L85A2_Holo_laser",
- "CUP_arifle_L85A2_SUSAT_Laser",
- "CUP_arifle_L85A2_CWS_Laser",
- "CUP_arifle_L85A2_ACOG_Laser",
- "CUP_arifle_L85A2_GL",
- "CUP_arifle_L85A2_GL_Holo_laser",
- "CUP_arifle_L85A2_GL_SUSAT_Laser",
- "CUP_arifle_L85A2_GL_ACOG_Laser",
- "CUP_arifle_L86A2",
- "CUP_arifle_L86A2_ACOG",
- "CUP_arifle_M16A2",
- "CUP_arifle_M16A2_GL",
- "CUP_arifle_M16A4_Base",
- "CUP_arifle_M16A4_Aim_Laser",
- "CUP_arifle_M16A4_ACOG_Laser",
- "CUP_arifle_M16A4GL",
- "CUP_arifle_M16A4_GL",
- "CUP_arifle_M16A4_GL_ACOG_Laser",
- "CUP_arifle_M4A1_black",
- "CUP_arifle_M4A1_desert",
- "CUP_arifle_M4A1_camo",
- "CUP_arifle_M4A1_Aim",
- "CUP_arifle_M4A1_camo_Aim",
- "CUP_arifle_M4A1",
- "CUP_arifle_M4A1_camo_AIM_snds",
- "CUP_arifle_M4A1_BUIS_GL",
- "CUP_arifle_M4A1_BUIS_camo_GL",
- "CUP_arifle_M4A1_BUIS_desert_GL",
- "CUP_arifle_M4A1_GL_Holo_Flashlight",
- "CUP_arifle_M4A1_GL_ACOG_Flashlight",
- "CUP_arifle_M4A1_camo_GL_Holo_Flashlight",
- "CUP_arifle_M4A1_camo_GL_Holo_Flashlight_Snds",
- "CUP_arifle_M4A3_desert_Aim_Flashlight",
- "CUP_arifle_M4A3_desert_GL_ACOG_Laser",
- "CUP_arifle_M4A3_desert_GL_ACOG_Laser",
- "CUP_arifle_Sa58P",
- "CUP_arifle_Sa58P_des",
- "CUP_arifle_Sa58V",
- "CUP_arifle_Sa58V_camo",
- "CUP_arifle_Sa58V_ACOG_Laser",
- "CUP_arifle_Sa58V_Aim_Laser",
- "CUP_arifle_Sa58RIS1",
- "CUP_arifle_Sa58RIS1_des",
- "CUP_arifle_Sa58RIS1_Aco_Laser",
- "CUP_arifle_Sa58RIS1_camo_Aco_Laser",
- "CUP_arifle_Sa58RIS2",
- "CUP_arifle_Sa58RIS2_camo",
- "CUP_arifle_Sa58RIS2_Arco_Laser",
- "CUP_arifle_Sa58RIS2_camo_Arco_Laser",
- "CUP_arifle_Mk16_CQC",
- "CUP_arifle_Mk16_CQC_FG",
- "CUP_arifle_Mk16_CQC_SFG",
- "CUP_arifle_Mk16_CQC_EGLM",
- "CUP_arifle_Mk16_CQC_EGLM_Holo_Laser_mfsup",
- "CUP_arifle_Mk16_CQC_FG_Aim_Laser_snds",
- "CUP_arifle_Mk16_CQC_SFG_Holo",
- "CUP_arifle_Mk16_STD",
- "CUP_arifle_Mk16_STD_FG",
- "CUP_arifle_Mk16_STD_SFG",
- "CUP_arifle_Mk16_STD_EGLM",
- "CUP_arifle_Mk16_STD_FG_Holo_Laser",
- "CUP_arifle_Mk16_STD_FG_LeupoldMk4CQT_Laser",
- "CUP_arifle_Mk16_STD_EGLM_ACOG_Laser",
- "CUP_arifle_Mk16_STD_EGLM_ANPAS13c1_Laser_mfsup",
- "CUP_arifle_Mk16_SV",
- "CUP_arifle_Mk17_CQC",
- "CUP_arifle_Mk17_CQC_FG",
- "CUP_arifle_Mk17_CQC_SFG",
- "CUP_arifle_Mk17_CQC_EGLM",
- "CUP_arifle_Mk17_STD",
- "CUP_arifle_Mk17_STD_FG",
- "CUP_arifle_Mk17_STD_SFG",
- "CUP_arifle_Mk17_STD_EGLM",
- "CUP_arifle_Mk17_CQC_SFG_Aim_mfsup",
- "CUP_arifle_Mk17_STD_FG_Aim_Laser_snds",
- "CUP_arifle_Mk17_STD_EGL_ElcanSpecter_Laser",
- "CUP_arifle_Mk17_STD_FG_ANPAS13c1_Laser_Snds",
- "CUP_arifle_Mk20",
- "CUP_arifle_Mk20_LeupoldMk4MRT",
- "CUP_arifle_Mk20_SB11420_snds",
- "CUP_arifle_XM8_Carbine",
- "CUP_arifle_XM8_Carbine_FG",
- "CUP_arifle_XM8_Carbine_GL",
- "CUP_arifle_XM8_Compact",
- "CUP_arifle_xm8_SAW",
- "CUP_arifle_xm8_sharpshooter",
- "CUP_arifle_XM8_Compact_Rail",
- "CUP_arifle_XM8_Railed",
- "CUP_arifle_XM8_Compact_Holo_Flashlight",
- "CUP_arifle_XM8_Railed_Holo_Laser_snds",
- "CUP_arifle_XM8_Railed_ANPAS13c1_Laser",
- "CUP_arifle_XM8_Railed_ANPAS13c1_Laser_snds",
- // CUP Sniper Rifles
- "CUP_srifle_LeeEnfield",
- "CUP_srifle_CZ550",
- "CUP_srifle_M14",
- "CUP_srifle_M15_Aim",
- "CUP_srifle_AS50",
- "CUP_srifle_AS50_SBPMII",
- "CUP_srifle_AS50_AMPAS13c2",
- "CUP_srifle_AWM_des",
- "CUP_srifle_AWM_wdl",
- "CUP_srifle_AWM_des_SBPMII",
- "CUP_srifle_AWM_wdl_SBPMII",
- "CUP_srifle_CZ750",
- "CUP_srifle_CZ750_SOS_bipod",
- "CUP_srifle_DMR",
- "CUP_srifle_DMR_LeupoldMk4",
- "CUP_srifle_ksvk",
- "CUP_arifle_ksvk_PSO3",
- "CUP_srifle_Mk12SPR",
- "CUP_srifle_Mk12SPR_LeupoldM3LR",
- "CUP_srifle_M24_des",
- "CUP_srifle_M24_wdl",
- "CUP_srifle_M24_ghillie",
- "CUP_srifle_M24_des_LeupoldMk4LRT",
- "CUP_srifle_M24_wdl_LeupoldMk4LRT",
- "CUP_srifle_M40A3",
- "CUP_srifle_M107_Base",
- "CUP_srifle_M107_LeupoldVX3",
- "CUP_srifle_M107_ANPAS13c2",
- "CUP_srifle_M110",
- "CUP_srifle_M110_ANPVS10",
- "CUP_srifle_M110_ANPAS13c2",
- "CUP_srifle_SVD",
- "CUP_srifle_SVD_pso",
- "CUP_srifle_SVD_NSPU",
- "CUP_srifle_SVD_des",
- "CUP_srifle_SVD_Des_pso",
- "CUP_srifle_SVD_wdl_ghillie",
- "CUP_srifle_SVD_des_ghillie_pso",
- "CUP_srifle_VSSVintorez",
- "CUP_srifle_VSSVintorez_pso",
- // CUP LMG's
- "CUP_lmg_L7A2",
- "CUP_lmg_L110A1",
- "CUP_lmg_L110A1_Aim_Laser",
- "CUP_lmg_M60E4",
- "CUP_lmg_M240",
- "CUP_lmg_M240_ElcanM143",
- "CUP_lmg_M249_para",
- "CUP_lmg_M249_ElcanM145_Laser",
- "CUP_lmg_M249_ANPAS13c2_Laser",
- "CUP_lmg_M249",
- "CUP_lmg_Mk48_des",
- "CUP_lmg_Mk48_wdl",
- "CUP_lmg_Mk48_des_Aim_Laser",
- "CUP_lmg_Mk48_wdl_Aim_Laser",
- "CUP_lmg_PKM",
- "CUP_lmg_Pecheneg",
- "CUP_lmg_Pecheneg_PScope",
- "CUP_lmg_UK59",
- // CUP GrenadeLaunchers
- "CUP_glaunch_M32",
- "CUP_glaunch_M79",
- "CUP_glaunch_Mk13"
- ];
- _launcherWeapons =
- [
- // CUP Launchers
- "CUP_launch_Igla",
- "CUP_launch_FIM92Stinger",
- "CUP_launch_9K32Strela",
- "CUP_launch_Javelin",
- "CUP_launch_M47",
- "CUP_launch_M136",
- "CUP_launch_MAAWS",
- "CUP_launch_MAAWS_Scope",
- "CUP_launch_Metis",
- "CUP_launch_NLAW",
- "CUP_launch_RPG7V",
- "CUP_launch_RPG18",
- "CUP_launch_Mk153Mod0",
- "CUP_launch_Mk153Mod0_SMAWOptics",
- //Vannilla
- "launch_B_Titan_F", // Titan MPRL (Sand)
- "launch_I_Titan_short_F", // Titan MPRL Compact (Olive)
- "launch_NLAW_F", // PCML
- "launch_RPG32_F", // RPG-42 Alamut
- "launch_RPG7_F" // RPG-7
- ];
- _uniforms =
- [
- // "U_BG_Guerilla1_1", // Guerilla Garment
- // "U_BG_Guerilla2_1", // Guerilla Outfit (Plain, Dark)
- // "U_BG_Guerilla2_2", // Guerilla Outfit (Pattern)
- // "U_BG_Guerilla2_3", // Guerilla Outfit (Plain, Light)
- // "U_BG_Guerilla3_1", // Guerilla Smocks
- // "U_BG_Guerrilla_6_1", // Guerilla Apparel
- // "U_BG_leader", // Guerilla Uniform
- "U_B_CombatUniform_mcam", // Combat Fatigues (MTP)
- "U_B_CombatUniform_mcam_tshirt", // Combat Fatigues (MTP) (Tee)
- // "U_B_CombatUniform_mcam_vest", // Recon Fatigues (MTP)
- // "U_B_CombatUniform_mcam_worn", // Worn Combat Fatigues (MTP)
- "U_B_CTRG_1", // CTRG Combat Uniform
- "U_B_CTRG_2", // CTRG Combat Uniform (Tee)
- "U_B_CTRG_3", // CTRG Combat Uniform (Rolled-up)
- "U_B_CTRG_Soldier_2_F", // CTRG Stealth Uniform (Tee)
- "U_B_CTRG_Soldier_3_F", // CTRG Stealth Uniform (Rolled-up)
- "U_B_CTRG_Soldier_F", // CTRG Stealth Uniform
- "U_B_CTRG_Soldier_urb_1_F", // CTRG Urban Uniform
- "U_B_CTRG_Soldier_urb_2_F", // CTRG Urban Uniform (Tee)
- "U_B_CTRG_Soldier_urb_3_F", // CTRG Urban Uniform (Rolled-up)
- "U_B_FullGhillie_ard", // Full Ghillie (Arid) [NATO]
- "U_B_FullGhillie_lsh", // Full Ghillie (Lush) [NATO]
- "U_B_FullGhillie_sard", // Full Ghillie (Semi-Arid) [NATO]
- "U_B_GEN_Commander_F", // Gendarmerie Commander Uniform
- "U_B_GEN_Soldier_F", // Gendarmerie Uniform
- "U_B_GhillieSuit", // Ghillie Suit [NATO]
- "U_B_HeliPilotCoveralls", // Heli Pilot Coveralls [NATO]
- "U_B_PilotCoveralls", // Pilot Coveralls [NATO]
- "U_B_Protagonist_VR", // VR Suit [NATO]
- "U_B_survival_uniform", // Survival Fatigues
- "U_B_T_FullGhillie_tna_F", // Full Ghillie (Jungle) [NATO]
- "U_B_T_Sniper_F", // Ghillie Suit (Tropic) [NATO]
- "U_B_T_Soldier_AR_F", // Combat Fatigues (Tropic, Tee)
- "U_B_T_Soldier_F", // Combat Fatigues (Tropic)
- "U_B_T_Soldier_SL_F", // Recon Fatigues (Tropic)
- // "U_B_Wetsuit", // Wetsuit [NATO]
- "U_Competitor", // Competitor Suit
- "U_I_CombatUniform", // Combat Fatigues [AAF]
- "U_I_CombatUniform_shortsleeve", // Combat Fatigues [AAF] (Rolled-up)
- "U_I_C_Soldier_Para_1_F", // Paramilitary Garb (Tee)
- "U_I_C_Soldier_Para_2_F", // Paramilitary Garb (Jacket)
- "U_I_C_Soldier_Para_3_F", // Paramilitary Garb (Shirt)
- "U_I_C_Soldier_Para_4_F", // Paramilitary Garb (Tank Top)
- "U_I_C_Soldier_Para_5_F", // Paramilitary Garb (Shorts)
- // "U_I_FullGhillie_ard", // Full Ghillie (Arid) [AAF]
- // "U_I_FullGhillie_lsh", // Full Ghillie (Lush) [AAF]
- // "U_I_FullGhillie_sard", // Full Ghillie (Semi-Arid) [AAF]
- "U_I_GhillieSuit", // Ghillie Suit [AAF]
- "U_I_HeliPilotCoveralls", // Heli Pilot Coveralls [AAF]
- "U_I_OfficerUniform", // Combat Fatigues [AAF] (Officer)
- "U_I_pilotCoveralls", // Pilot Coveralls [AAF]
- // "U_I_Wetsuit", // Wetsuit [AAF]
- "U_O_CombatUniform_ocamo", // Fatigues (Hex) [CSAT]
- "U_O_CombatUniform_oucamo", // Fatigues (Urban) [CSAT]
- // "U_O_FullGhillie_ard", // Full Ghillie (Arid) [CSAT]
- // "U_O_FullGhillie_lsh", // Full Ghillie (Lush) [CSAT]
- // "U_O_FullGhillie_sard", // Full Ghillie (Semi-Arid) [CSAT]
- "U_O_GhillieSuit", // Ghillie Suit [CSAT]
- "U_O_OfficerUniform_ocamo", // Officer Fatigues (Hex)
- "U_O_PilotCoveralls", // Pilot Coveralls [CSAT]
- "U_O_SpecopsUniform_ocamo", // Recon Fatigues (Hex)
- // "U_O_T_FullGhillie_tna_F", // Full Ghillie (Jungle) [CSAT]
- "U_O_T_Officer_F", // Officer Fatigues (Green Hex) [CSAT]
- "U_O_T_Sniper_F", // Ghillie Suit (Green Hex) [CSAT]
- "U_O_T_Soldier_F" // Fatigues (Green Hex) [CSAT]
- // "U_O_V_Soldier_Viper_F", // Special Purpose Suit (Green Hex)
- // "U_O_V_Soldier_Viper_hex_F", // Special Purpose Suit (Hex)
- // "U_O_Wetsuit", // Wetsuit [CSAT]
- ];
- _vests =
- [
- "V_BandollierB_blk", // Slash Bandolier (Black)
- "V_BandollierB_cbr", // Slash Bandolier (Coyote)
- "V_BandollierB_ghex_F", // Slash Bandolier (Green Hex)
- "V_BandollierB_khk", // Slash Bandolier (Khaki)
- "V_BandollierB_oli", // Slash Bandolier (Olive)
- "V_BandollierB_rgr", // Slash Bandolier (Green)
- "V_Chestrig_blk", // Chest Rig (Black)
- "V_Chestrig_khk", // Chest Rig (Khaki)
- "V_Chestrig_oli", // Chest Rig (Olive)
- "V_Chestrig_rgr", // Chest Rig (Green)
- "V_HarnessOGL_brn", // LBV Grenadier Harness
- "V_HarnessOGL_ghex_F", // LBV Grenadier Harness (Green Hex)
- "V_HarnessOGL_gry", // LBV Grenadier Harness (Grey)
- "V_HarnessO_brn", // LBV Harness
- "V_HarnessO_ghex_F", // LBV Harness (Green Hex)
- "V_HarnessO_gry", // LBV Harness (Grey)
- "V_I_G_resistanceLeader_F", // Tactical Vest (Stavrou)
- "V_PlateCarrier1_blk", // Carrier Lite (Black)
- "V_PlateCarrier1_rgr", // Carrier Lite (Green)
- "V_PlateCarrier1_rgr_noflag_F", // Carrier Lite (Green, No Flag)
- "V_PlateCarrier1_tna_F", // Carrier Lite (Tropic)
- "V_PlateCarrier2_blk", // Carrier Rig (Black)
- "V_PlateCarrier2_rgr", // Carrier Rig (Green)
- "V_PlateCarrier2_rgr_noflag_F", // Carrier Rig (Green, No Flag)
- "V_PlateCarrier2_tna_F", // Carrier Rig (Tropic)
- "V_PlateCarrierGL_blk", // Carrier GL Rig (Black)
- "V_PlateCarrierGL_mtp", // Carrier GL Rig (MTP)
- "V_PlateCarrierGL_rgr", // Carrier GL Rig (Green)
- "V_PlateCarrierGL_tna_F", // Carrier GL Rig (Tropic)
- "V_PlateCarrierH_CTRG", // CTRG Plate Carrier Rig Mk.2 (Heavy)
- "V_PlateCarrierIA1_dgtl", // GA Carrier Lite (Digi)
- "V_PlateCarrierIA2_dgtl", // GA Carrier Rig (Digi)
- "V_PlateCarrierIAGL_dgtl", // GA Carrier GL Rig (Digi)
- "V_PlateCarrierIAGL_oli", // GA Carrier GL Rig (Olive)
- "V_PlateCarrierL_CTRG", // CTRG Plate Carrier Rig Mk.1 (Light)
- "V_PlateCarrierSpec_blk", // Carrier Special Rig (Black)
- "V_PlateCarrierSpec_mtp", // Carrier Special Rig (MTP)
- "V_PlateCarrierSpec_rgr", // Carrier Special Rig (Green)
- "V_PlateCarrierSpec_tna_F", // Carrier Special Rig (Tropic)
- "V_PlateCarrier_Kerry", // US Plate Carrier Rig (Kerry)
- "V_Rangemaster_belt", // Rangemaster Belt
- "V_TacChestrig_cbr_F", // Tactical Chest Rig (Coyote)
- "V_TacChestrig_grn_F", // Tactical Chest Rig (Green)
- "V_TacChestrig_oli_F", // Tactical Chest Rig (Olive)
- "V_TacVestIR_blk", // Raven Vest
- "V_TacVest_blk", // Tactical Vest (Black)
- "V_TacVest_brn", // Tactical Vest (Brown)
- "V_TacVest_camo", // Tactical Vest (Camo)
- "V_TacVest_gen_F", // Gendarmerie Vest
- "V_TacVest_khk", // Tactical Vest (Khaki)
- "V_TacVest_oli" // Tactical Vest (Olive)
- ];
- _headGear =
- [
- "H_HelmetB", // Combat Helmet
- "H_HelmetB_black", // Combat Helmet (Black)
- "H_HelmetB_camo", // Combat Helmet (Camo)
- "H_HelmetB_desert", // Combat Helmet (Desert)
- "H_HelmetB_Enh_tna_F", // Enhanced Combat Helmet (Tropic)
- "H_HelmetB_grass", // Combat Helmet (Grass)
- "H_HelmetB_light", // Light Combat Helmet
- "H_HelmetB_light_black", // Light Combat Helmet (Black)
- "H_HelmetB_light_desert", // Light Combat Helmet (Desert)
- "H_HelmetB_light_grass", // Light Combat Helmet (Grass)
- "H_HelmetB_light_sand", // Light Combat Helmet (Sand)
- "H_HelmetB_light_snakeskin", // Light Combat Helmet (Snakeskin)
- "H_HelmetB_Light_tna_F", // Light Combat Helmet (Tropic)
- "H_HelmetB_sand", // Combat Helmet (Sand)
- "H_HelmetB_snakeskin", // Combat Helmet (Snakeskin)
- "H_HelmetB_tna_F", // Combat Helmet (Tropic)
- "H_HelmetCrew_B", // Crew Helmet [NATO]
- "H_HelmetCrew_I", // Crew Helmet [AAF]
- "H_HelmetCrew_O", // Crew Helmet [CSAT]
- "H_HelmetCrew_O_ghex_F", // Crew Helmet (Green Hex) [CSAT]
- "H_HelmetIA", // Modular Helmet
- "H_HelmetLeaderO_ghex_F", // Defender Helmet (Green Hex)
- "H_HelmetLeaderO_ocamo", // Defender Helmet (Hex)
- "H_HelmetLeaderO_oucamo", // Defender Helmet (Urban)
- "H_HelmetO_ghex_F", // Protector Helmet (Green Hex)
- "H_HelmetO_ocamo", // Protector Helmet (Hex)
- "H_HelmetO_oucamo", // Protector Helmet (Urban)
- "H_HelmetSpecB", // Enhanced Combat Helmet
- "H_HelmetSpecB_blk", // Enhanced Combat Helmet (Black)
- "H_HelmetSpecB_paint1", // Enhanced Combat Helmet (Grass)
- "H_HelmetSpecB_paint2", // Enhanced Combat Helmet (Desert)
- "H_HelmetSpecB_sand", // Enhanced Combat Helmet (Sand)
- "H_HelmetSpecB_snakeskin", // Enhanced Combat Helmet (Snakeskin)
- "H_HelmetSpecO_blk", // Assassin Helmet (Black)
- "H_HelmetSpecO_ghex_F", // Assassin Helmet (Green Hex)
- "H_HelmetSpecO_ocamo" // Assassin Helmet (Hex)
- ];
- _backPacks =
- [
- "B_AssaultPack_blk", // Assault Pack (Black)
- "B_AssaultPack_cbr", // Assault Pack (Coyote)
- "B_AssaultPack_dgtl", // Assault Pack (Digi)
- "B_AssaultPack_khk", // Assault Pack (Khaki)
- "B_AssaultPack_mcamo", // Assault Pack (MTP)
- "B_AssaultPack_ocamo", // Assault Pack (Hex)
- "B_AssaultPack_rgr", // Assault Pack (Green)
- "B_AssaultPack_sgg", // Assault Pack (Sage)
- "B_AssaultPack_tna_F", // Assault Pack (Tropic)
- "B_Carryall_cbr", // Carryall Backpack (Coyote)
- "B_Carryall_ghex_F", // Carryall Backpack (Green Hex)
- "B_Carryall_khk", // Carryall Backpack (Khaki)
- "B_Carryall_mcamo", // Carryall Backpack (MTP)
- "B_Carryall_ocamo", // Carryall Backpack (Hex)
- "B_Carryall_oli", // Carryall Backpack (Olive)
- "B_Carryall_oucamo", // Carryall Backpack (Urban)
- "B_FieldPack_blk", // Field Pack (Black)
- "B_FieldPack_cbr", // Field Pack (Coyote)
- "B_FieldPack_ghex_F", // Field Pack (Green Hex)
- "B_FieldPack_khk", // Field Pack (Khaki)
- "B_FieldPack_ocamo", // Field Pack (Hex)
- "B_FieldPack_oli", // Field Pack (Olive)
- "B_FieldPack_oucamo", // Field Pack (Urban)
- "B_Kitbag_cbr", // Kitbag (Coyote)
- "B_Kitbag_mcamo", // Kitbag (MTP)
- "B_Kitbag_rgr", // Kitbag (Green)
- "B_Kitbag_sgg", // Kitbag (Sage)
- "B_TacticalPack_blk", // Tactical Backpack (Black)
- "B_TacticalPack_mcamo", // Tactical Backpack (MTP)
- "B_TacticalPack_ocamo", // Tactical Backpack (Hex)
- "B_TacticalPack_oli", // Tactical Backpack (Olive)
- "B_TacticalPack_rgr", // Tactical Backpack (Green)
- "B_ViperHarness_blk_F", // Viper Harness (Black)
- "B_ViperHarness_ghex_F", // Viper Harness (Green Hex)
- "B_ViperHarness_hex_F", // Viper Harness (Hex)
- "B_ViperHarness_khk_F", // Viper Harness (Khaki)
- "B_ViperHarness_oli_F", // Viper Harness (Olive)
- "B_ViperLightHarness_blk_F", // Viper Light Harness (Black)
- "B_ViperLightHarness_ghex_F", // Viper Light Harness (Green Hex)
- "B_ViperLightHarness_hex_F", // Viper Light Harness (Hex)
- "B_ViperLightHarness_khk_F", // Viper Light Harness (Khaki)
- "B_ViperLightHarness_oli_F" // Viper Light Harness (Olive)
- ];
- _opticsDisallow =
- [
- // "optic_Aco", // ACO (Red)
- // "optic_ACO_grn", // ACO (Green)
- // "optic_ACO_grn_smg", // ACO SMG (Green)
- // "optic_Aco_smg", // ACO SMG (Red)
- "optic_AMS", // AMS (Black)
- "optic_AMS_khk", // AMS (Khaki)
- "optic_AMS_snd", // AMS (Sand)
- // "optic_Arco", // ARCO
- // "optic_Arco_blk_F", // ARCO (Black)
- // "optic_Arco_ghex_F", // ARCO (Green Hex)
- "optic_DMS", // DMS
- "optic_DMS_ghex_F", // DMS (Green Hex)
- // "optic_ERCO_blk_F", // ERCO (Black)
- // "optic_ERCO_khk_F", // ERCO (Khaki)
- // "optic_ERCO_snd_F", // ERCO (Sand)
- // "optic_Hamr", // RCO
- // "optic_Hamr_khk_F", // RCO (Khaki)
- // "optic_Holosight", // Mk17 Holosight
- // "optic_Holosight_blk_F", // Mk17 Holosight (Black)
- // "optic_Holosight_khk_F", // Mk17 Holosight (Khaki)
- // "optic_Holosight_smg", // Mk17 Holosight SMG
- // "optic_Holosight_smg_blk_F", // Mk17 Holosight SMG (Black)
- "optic_KHS_blk", // Kahlia (Black)
- "optic_KHS_hex", // Kahlia (Hex)
- "optic_KHS_old", // Kahlia (Old)
- "optic_KHS_tan", // Kahlia (Tan)
- "optic_LRPS", // LRPS
- "optic_LRPS_ghex_F", // LRPS (Green Hex)
- "optic_LRPS_tna_F", // LRPS (Tropic)
- // "optic_MRCO", // MRCO
- // "optic_MRD", // MRD
- "optic_Nightstalker", // Nightstalker
- "optic_NVS", // NVS
- "optic_SOS", // MOS
- "optic_SOS_khk_F", // MOS (Khaki)
- "optic_tws", // TWS
- "optic_tws_mg", // TWS MG
- // "optic_Yorris" // Yorris J2
- // CUP Attatchments
- "CUP_optic_PSO_1",
- "CUP_optic_PSO_3",
- "CUP_optic_Kobra",
- "CUP_optic_GOSHAWK",
- "CUP_optic_NSPU",
- "CUP_optic_PechenegScope",
- "CUP_optic_MAAWS_Scope",
- "CUP_optic_SMAW_Scope",
- "CUP_optic_SB_3_12x50_PMII",
- "CUP_optic_AN_PAS_13c2",
- "CUP_optic_LeupoldMk4",
- "CUP_optic_HoloBlack",
- "CUP_optic_HoloWdl",
- "CUP_optic_HoloDesert",
- "CUP_optic_Eotech533",
- "CUP_optic_Eotech533Grey",
- "CUP_optic_CompM4",
- "CUP_optic_SUSAT",
- "CUP_optic_ACOG",
- "CUP_optic_CWS",
- "CUP_optic_Leupold_VX3",
- "CUP_optic_AN_PVS_10",
- "CUP_optic_CompM2_Black",
- "CUP_optic_CompM2_Woodland",
- "CUP_optic_CompM2_Woodland2",
- "CUP_optic_CompM2_Desert",
- "CUP_optic_RCO",
- "CUP_optic_RCO_desert",
- "CUP_optic_LeupoldM3LR",
- "CUP_optic_LeupoldMk4_10x40_LRT_Desert",
- "CUP_optic_LeupoldMk4_10x40_LRT_Woodland",
- "CUP_optic_ElcanM145",
- "CUP_optic_AN_PAS_13c1",
- "CUP_optic_LeupoldMk4_CQ_T",
- "CUP_optic_ELCAN_SpecterDR",
- "CUP_optic_LeupoldMk4_MRT_tan",
- "CUP_optic_SB_11_4x20_PM",
- "CUP_optic_ZDDot",
- "CUP_optic_MRad",
- "CUP_acc_CZ_M3X",
- "CUP_optic_TrijiconRx01_desert",
- "CUP_optic_TrijiconRx01_black",
- "CUP_optic_AN_PVS_4"
- ];
- /* ------------------------------------------------------------------------------------------
- DO NOT EDIT BELOW HERE!
- ------------------------------------------------------------------------------------------ */
- _soldier = _this select 0;
- removeUniform _soldier;
- removeHeadgear _soldier:
- removeGoggles _soldier;
- removeVest _soldier;
- removeBackpack _soldier;
- removeAllWeapons _soldier;
- removeAllAssignedItems _soldier;
- removeAllItems _soldier;
- _soldierUniform = selectRandom _uniforms;
- _soldier addUniform _soldierUniform;
- if ((_headGearProbability > random 99) || (_headGearProbability == 100)) then
- {
- _soldierHeadgear = selectRandom _headGear;
- _soldier addHeadgear _soldierHeadgear;
- };
- if ((_vestProbability > random 99) || (_vestProbability == 100)) then
- {
- _soldierVest = selectRandom _vests;
- _soldier addVest _soldierVest;
- };
- if ((_backpackProbability > random 99) || (_backpackProbability == 100)) then
- {
- _soldierBackpack = selectRandom _backPacks;
- _soldier addBackPack _soldierBackpack;
- };
- if ((_launcherProbability > random 99) || (_launcherProbability == 100)) then
- {
- if (isNull (unitBackpack _soldier)) then
- {
- _soldierBackpack = selectRandom _backPacks;
- _soldier addBackPack _soldierBackpack;
- };
- _soldierLauncherWeapon = selectRandom _launcherWeapons;
- _soldierLauncherWeaponAdd = [_soldier, _soldierLauncherWeapon, _launcherMagazineAmount] call BIS_fnc_addWeapon;
- };
- _soldierPrimaryWeapon = selectRandom _primaryWeapons;
- _soldierPrimaryWeaponAdd = [_soldier, _soldierPrimaryWeapon, _weaponMagazineAmount] call BIS_fnc_addWeapon;
- if ((_muzzleProbability > random 99) || (_muzzleProbability == 100)) then
- {
- _soldierPrimaryMuzzles = []; _soldierPrimaryMuzzles = getArray (configFile >> "CfgWeapons" >> _soldierPrimaryWeapon >> "WeaponSlotsInfo" >> "MuzzleSlot" >> "compatibleItems");
- if ((count _soldierPrimaryMuzzles) >= 1) then
- {
- _soldierPrimaryMuzzle = selectRandom _soldierPrimaryMuzzles;
- _soldier addPrimaryWeaponItem _soldierPrimaryMuzzle;
- };
- };
- if ((_pointerProbability > random 99) || (_pointerProbability == 100)) then
- {
- _soldierPrimaryPointers = []; _soldierPrimaryPointers = getArray (configFile >> "CfgWeapons" >> _soldierPrimaryWeapon >> "WeaponSlotsInfo" >> "PointerSlot" >> "compatibleItems");
- if ((count _soldierPrimaryPointers) >= 1) then
- {
- _soldierPrimaryPointer = selectRandom _soldierPrimaryPointers;
- _soldier addPrimaryWeaponItem _soldierPrimaryPointer;
- };
- };
- if ((_opticProbability > random 99) || (_opticProbability == 100)) then
- {
- _soldierPrimaryOptics = []; _soldierPrimaryOptics = getArray (configFile >> "CfgWeapons" >> _soldierPrimaryWeapon >> "WeaponSlotsInfo" >> "CowsSlot" >> "compatibleItems");
- _soldierPrimaryOptics = _soldierPrimaryOptics - _opticsDisallow;
- if ((count _soldierPrimaryOptics) >= 1) then
- {
- _soldierPrimaryOptic = selectRandom _soldierPrimaryOptics;
- _soldier addPrimaryWeaponItem _soldierPrimaryOptic;
- };
- };
- if ((_healthProbability > random 99) || (_healthProbability == 100)) then
- {
- for "_i" from 1 to _healthAmount do
- {
- _soldier addItem "FirstAidKit";
- _soldier setUnitTrait ["Medic",true];
- };
- };
- if ((_grenadeProbability > random 99) || (_grenadeProbability == 100)) then
- {
- _soldier addMagazines ["HandGrenade", _grenadeAmount];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement