Custom loadouts for different classes

Custom loadouts for different classes

« posted: Nov 08, 2015, 10:23 PM »
Hello everyone,

Need some help on how i would change the loadout lets say for example i want the assault divers to have survival fatigues how would i code this.

Thanks

Re: Custom loadouts for different classes

« Reply #1 posted: Dec 18, 2015, 04:29 PM »
I could be more specific but I would suggest you start by downloading a copy of notepad++ and searching through the mission files for "diver". I think you will fid the files you need to edit and with a little trial and error you'll get what your looking for.

Re: Custom loadouts for different classes

« Reply #2 posted: Dec 24, 2015, 08:51 PM »
here's what i had in playerSetupGear.sqf in the part for setting up gear:


Quote
      switch (typeOf _player) do
         {
         case "B_medic_F":
            {    _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_9x21_Mag";
               _player addItemToUniform "30Rnd_9x21_Mag";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "30Rnd_9x21_Mag";
               _player addItemToVest "30Rnd_9x21_Mag";
               _player addItemToVest "30Rnd_9x21_Mag";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "Medikit";
               _player addItemToBackpack "RPG32_HE_F";
               _player addItemToBackpack "RPG32_HE_F";
               _player addHeadgear "H_Booniehat_khk_hs";
               _player addGoggles "G_Combat";
               _player addWeapon "SMG_02_F";
               _player addPrimaryWeaponItem "acc_flashlight";
               _player addPrimaryWeaponItem "optic_Aco_smg";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addWeapon "Binocular";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_9x21_Mag";
            };

         case "O_medic_F":
            {    _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "30Rnd_45ACP_Mag_SMG_01";
               _player addItemToUniform "30Rnd_45ACP_Mag_SMG_01";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "30Rnd_45ACP_Mag_SMG_01_Tracer_Green";
               _player addItemToVest "30Rnd_45ACP_Mag_SMG_01_Tracer_Green";
               _player addItemToVest "30Rnd_45ACP_Mag_SMG_01_Tracer_Green";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "Medikit";
               _player addItemToBackpack "RPG32_HE_F";
               _player    addItemToBackpack "RPG32_HE_F";
               _player addHeadgear "H_Cap_brn_SPECOPS";
               _player addGoggles "G_Combat";
               _player addWeapon "SMG_01_F";
               _player addPrimaryWeaponItem "optic_Aco_smg";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addWeapon "Binocular";
               _player addItemToUniform "30Rnd_45ACP_Mag_SMG_01";
               _player addItemToUniform "9Rnd_45ACP_Mag";
            };

         case "I_medic_F":
            {    _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_9x21_Mag";
               _player addItemToUniform "30Rnd_9x21_Mag";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "30Rnd_9x21_Mag";
               _player addItemToVest "30Rnd_9x21_Mag";
               _player addItemToVest "30Rnd_9x21_Mag";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "SmokeShellGreen";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "Medikit";
               _player addItemToBackpack "RPG32_HE_F";
               _player addItemToBackpack "RPG32_HE_F";
               _player addHeadgear "H_Cap_blk_Raven";
               _player addGoggles "G_Shades_Green";
               _player addWeapon "hgun_PDW2000_F";
               _player addPrimaryWeaponItem "optic_Aco_smg";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addWeapon "Binocular";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_9x21_Mag";
            };
         case "B_engineer_F":
            {    _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_65x39_caseless_green";
               _player addItemToUniform "30Rnd_65x39_caseless_green";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "30Rnd_65x39_caseless_green_mag_Tracer";
               _player addItemToVest "30Rnd_65x39_caseless_green_mag_Tracer";
               _player addItemToVest "30Rnd_65x39_caseless_green_mag_Tracer";
               _player addItemToVest "1Rnd_HE_Grenade_shell";
               _player addItemToVest "1Rnd_HE_Grenade_shell";
               _player addItemToVest "UGL_FlareYellow_F";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "ToolKit";
               _player addItemToBackpack "RPG32_F";
               _player addItemToBackpack "RPG32_F";
               _player addHeadgear "H_Booniehat_khk_hs";
               _player addGoggles "G_Combat";
               _player addWeapon "arifle_Katiba_GL_F";
               _player addPrimaryWeaponItem "acc_flashlight";
               _player addPrimaryWeaponItem "optic_Holosight";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addWeapon "Binocular";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_65x39_caseless_green";
            };
         case "O_engineer_F":
            {    _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_556x45_Stanag";
               _player addItemToUniform "30Rnd_556x45_Stanag";
               _player addItemToUniform "1Rnd_HE_Grenade_shell";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "30Rnd_556x45_Stanag_Tracer_Red";
               _player addItemToVest "30Rnd_556x45_Stanag_Tracer_Red";
               _player addItemToVest "30Rnd_556x45_Stanag_Tracer_Red";
               _player addItemToVest "1Rnd_HE_Grenade_shell";
               _player addItemToVest "UGL_FlareRed_F";
               _player addItemToVest "1Rnd_SmokeRed_Grenade_shell";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "Medikit";
               _player addItemToBackpack "RPG32_F";
               _player addItemToBackpack "RPG32_F";
               _player addHeadgear "H_Cap_brn_SPECOPS";
               _player addGoggles "G_Combat";
               _player addWeapon "arifle_TRG21_GL_F";
               _player addPrimaryWeaponItem "optic_Holosight";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addWeapon "Binocular";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_556x45_Stanag";
            };
         case "I_engineer_F":
            {    _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_556x45_Stanag";
               _player addItemToUniform "30Rnd_556x45_Stanag";
               _player addItemToUniform "1Rnd_HE_Grenade_shell";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
               _player addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
               _player addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
               _player addItemToVest "1Rnd_SmokeGreen_Grenade_shell";
               _player addItemToVest "UGL_FlareGreen_F";
               _player addItemToVest "1Rnd_HE_Grenade_shell";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "ToolKit";
               _player addItemToBackpack "RPG32_F";
               _player addItemToBackpack "RPG32_F";
               _player addHeadgear "H_Cap_blk_Raven";
               _player addGoggles "G_Shades_Green";
               _player addWeapon "arifle_Mk20_GL_F";
               _player addPrimaryWeaponItem "optic_Holosight";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addWeapon "Binocular";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "30Rnd_556x45_Stanag";
            };
         case "B_sniper_F":
            {   _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "MineDetector";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "APERSTripMine_Wire_Mag";
               _player addItemToBackpack "APERSTripMine_Wire_Mag";
               _player addItemToBackpack "RPG32_HE_F";
               _player addItemToBackpack "RPG32_HE_F";
               _player addHeadgear "H_Beret_blk";
               _player addGoggles "G_Combat";
               _player addWeapon "srifle_DMR_01_F";
               _player addPrimaryWeaponItem "optic_MRCO";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addHandgunItem "muzzle_snds_acp";
               _player addWeapon "Rangefinder";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
            };
         case "O_sniper_F":
            {   _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "MineDetector";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "APERSTripMine_Wire_Mag";
               _player addItemToBackpack "APERSTripMine_Wire_Mag";
               _player addItemToBackpack "RPG32_HE_F";
               _player addItemToBackpack "RPG32_HE_F";
               _player addHeadgear "H_Beret_blk";
               _player addGoggles "G_Combat";
               _player addWeapon "srifle_DMR_01_F";
               _player addPrimaryWeaponItem "optic_MRCO";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addHandgunItem "muzzle_snds_acp";
               _player addWeapon "Rangefinder";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
            };
         case "I_Sniper_F":
            {   _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "MineDetector";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
               _player addVest "V_BandollierB_khk";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addItemToVest "10Rnd_762x54_Mag";
               _player addBackpack "B_FieldPack_khk";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "APERSTripMine_Wire_Mag";
               _player addItemToBackpack "APERSTripMine_Wire_Mag";
               _player addItemToBackpack "RPG32_HE_F";
               _player addItemToBackpack "RPG32_HE_F";
               _player addHeadgear "H_Beret_blk";
               _player addGoggles "G_Combat";
               _player addWeapon "srifle_DMR_01_F";
               _player addPrimaryWeaponItem "optic_MRCO";
               _player addWeapon "launch_RPG32_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addHandgunItem "muzzle_snds_acp";
               _player addWeapon "Rangefinder";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "10Rnd_762x54_Mag";
            };
         case "B_diver_F":
            {   _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "MineDetector";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "HandGrenade";
               _player addVest "V_BandollierB_oli";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "SmokeShellBlue";
               _player addItemToVest "Chemlight_blue";
               _player addItemToVest "Chemlight_blue";
               _player addBackpack "B_FieldPack_blk";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "MiniGrenade";
               _player addItemToBackpack "Chemlight_blue";
               _player addItemToBackpack "Chemlight_blue";
               _player addItemToBackpack "Chemlight_blue";
               _player addItemToBackpack "Chemlight_blue";
               _player addItemToBackpack "Chemlight_blue";
               _player addItemToBackpack "SmokeShellBlue";
               _player addItemToBackpack "SmokeShellBlue";
               _player addHeadgear "H_Beret_blk";
               _player addGoggles "G_B_Diving";
               _player addWeapon "arifle_SDAR_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addHandgunItem "muzzle_snds_acp";
               _player addWeapon "Rangefinder";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
            };
         case "O_diver_F":
            {   _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "MineDetector";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "HandGrenade";
               _player addVest "V_BandollierB_oli";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "SmokeShellRed";
               _player addItemToVest "Chemlight_red";
               _player addItemToVest "Chemlight_red";
               _player addBackpack "B_FieldPack_blk";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "MiniGrenade";
               _player addItemToBackpack "Chemlight_red";
               _player addItemToBackpack "Chemlight_red";
               _player addItemToBackpack "Chemlight_red";
               _player addItemToBackpack "Chemlight_red";
               _player addItemToBackpack "Chemlight_red";
               _player addItemToBackpack "SmokeShellRed";
               _player addItemToBackpack "SmokeShellRed";
               _player addHeadgear "H_Beret_blk";
               _player addGoggles "G_O_Diving";
               _player addWeapon "arifle_SDAR_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addHandgunItem "muzzle_snds_acp";
               _player addWeapon "Rangefinder";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
            };
         case "I_diver_F":
            {   _player addItemToUniform "FirstAidKit";
               _player addItemToUniform "MineDetector";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
               _player addItemToUniform "HandGrenade";
               _player addVest "V_BandollierB_oli";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "FirstAidKit";
               _player addItemToVest "MiniGrenade";
               _player addItemToVest "HandGrenade";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "SmokeShellGreen";
               _player addItemToVest "Chemlight_green";
               _player addItemToVest "Chemlight_green";
               _player addBackpack "B_FieldPack_blk";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "FirstAidKit";
               _player addItemToBackpack "MiniGrenade";
               _player addItemToBackpack "Chemlight_green";
               _player addItemToBackpack "Chemlight_green";
               _player addItemToBackpack "Chemlight_green";
               _player addItemToBackpack "Chemlight_green";
               _player addItemToBackpack "Chemlight_green";
               _player addItemToBackpack "SmokeShellGreen";
               _player addItemToBackpack "SmokeShellBlue";
               _player addHeadgear "H_Beret_blk";
               _player addGoggles "G_I_Diving";
               _player addWeapon "arifle_SDAR_F";
               _player addWeapon "hgun_ACPC2_F";
               _player addHandgunItem "muzzle_snds_acp";
               _player addWeapon "Rangefinder";
               _player addItemToUniform "9Rnd_45ACP_Mag";
               _player addItemToUniform "20Rnd_556x45_UW_mag";
            };
         };