Announcement

Collapse
No announcement yet.

Class based custom gear via ManuInventory

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [GUIDE] Class based custom gear via ManuInventory

    Zeus by default uses the in game MenuInventory which a player can choose from the available classes upon respawn. But most of these classes come with limited stock vanilla gear. What if you wanted to define your own classes which you can customize however you want...

    Not only that what if you wanted to make some of the classes you defined available to only certain roles while restricting them to other roles. Like Medical Trained personnel can choose to be Medic or Rifleman only. Not a sniper. And engineering trained personnel can be Engineer, Repair Specialist or a rifleman only... While you can give the freedom of choice between AutoRifleman, Grenadier, Rifleman, AT to an Infantryman.

    The following is from Island 4 mission provided as an example for anybody to use, edit, and make it their own.

    First we define our custom classes. This can be done in description.ext (You can also use #include to separate the files.)

    Code:
    class CfgRespawnInventory
    {
    	class TG_RIFLEMAN_IND
    	{
    		displayName = "TG Rifleman";
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_F",
    			"hgun_ACPC2_snds_F",
    			"Binocular"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"HandGrenade",
    			"HandGrenade",
    			"HandGrenade",
    			"HandGrenade",
    			"HandGrenade",
    			"SmokeShell",
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_ACO_grn",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA2_dgtl",
    			"H_HelmetIA",
    			"optic_Holosight",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_FieldPack_oli";
    	};
    	class TG_GRENADIER_IND
    	{
    		displayName = "TG Grenadier";
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_GL_F",
    			"hgun_ACPC2_snds_F",
    			"Rangefinder"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",		
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",		
    			"30Rnd_556x45_Stanag",		
    			"30Rnd_556x45_Stanag",		
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"1Rnd_HE_Grenade_shell", 
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_HE_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SmokeShell",			
    			"SmokeShellGreen",			
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIAGL_dgtl",
    			"H_HelmetIA",
    			"optic_ACO_grn",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_AssaultPack_rgr";
    	};
    	class TG_AUTORIFLEMAN_IND
    	{
    		displayName = "TG Auto-Rifleman";
    		show = true;
    		weapons[] = {
    			"LMG_Mk200_F",
    			"hgun_ACPC2_snds_F",
    			"Rangefinder"
    		};
    		magazines[] = {
    			"200Rnd_65x39_cased_Box",			
    			"200Rnd_65x39_cased_Box",			
    			"200Rnd_65x39_cased_Box",			
    			"200Rnd_65x39_cased_Box_Tracer",
    			"200Rnd_65x39_cased_Box_Tracer",
    			"200Rnd_65x39_cased_Box_Tracer",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"HandGrenade",
    			"HandGrenade",
    			"SmokeShell",			
    			"SmokeShellBlue",			
    			"SmokeShellRed",			
    			"SmokeShellGreen",			
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_ACO_grn",
    			"acc_pointer_IR",
    			"muzzle_snds_H_MG"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA2_dgtl",
    			"H_HelmetIA",
    			"optic_MRCO",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_AssaultPack_rgr";
    	};
    	class TG_LIGHTAT_IND
    	{
    		displayName = "TG Light Anti-Tank";		
    		show = true;
    		weapons[] = {
    			"arifle_Mk20C_F",
    			"hgun_ACPC2_snds_F",
    			"Binocular",
    			"launch_NLAW_F"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"NLAW_F",
    			"NLAW_F",			
    			"MiniGrenade",
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SmokeShell",
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA1_dgtl",
    			"H_HelmetIA",
    			"optic_ACO_grn",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_AssaultPack_rgr";
    	};
    	class TG_HEAVYAT_IND
    	{
    		displayName = "TG Heavy Anti-Tank";		
    		show = true;
    		weapons[] = {
    			"arifle_Mk20C_F",
    			"hgun_ACPC2_snds_F",
    			"Binocular",
    			"launch_I_Titan_short_F"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"Titan_AT",
    			"Titan_AT",			
    			"MiniGrenade",
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SmokeShell",
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA1_dgtl",
    			"H_HelmetIA",
    			"optic_ACO_grn",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_AssaultPack_rgr";
    	};
    	class TG_LIGHTMED_IND
    	{
    		displayName = "TG Light Medic";		
    		show = true;
    		weapons[] = {
    			"arifle_Mk20C_F",
    			"hgun_ACPC2_snds_F"			
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"			
    		};
    		items[] = {
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"FirstAidKit",
    			"Medikit",
    			"optic_Holosight",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA1_dgtl",
    			"H_HelmetIA",
    			"optic_ACO_grn",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform_tshirt"};
    		backpack = "B_FieldPack_oli";
    	};
    	class TG_HEAVYMED_IND
    	{
    		displayName = "TG Heavy Medic";		
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_F",
    			"hgun_ACPC2_snds_F"			
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShell",
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"			
    		};
    		items[] = {
    			"FirstAidKit", "FirstAidKit", "FirstAidKit", "FirstAidKit", "FirstAidKit",
    			"FirstAidKit", "FirstAidKit", "FirstAidKit", "FirstAidKit",	"FirstAidKit",
    			"FirstAidKit", "FirstAidKit", "FirstAidKit", "FirstAidKit",	"FirstAidKit",
    			"FirstAidKit", "FirstAidKit", "FirstAidKit", "FirstAidKit",	"FirstAidKit",
    			"FirstAidKit", "FirstAidKit", "FirstAidKit", "FirstAidKit",	"FirstAidKit",
    			"Medikit",
    			"optic_ACO_grn",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA2_dgtl",
    			"H_HelmetIA",
    			"optic_Holosight",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_Carryall_oli";
    	};
    	class TG_DEMOL_IND
    	{
    		displayName = "TG Demolitions";
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_F",
    			"hgun_ACPC2_snds_F",
    			"Binocular"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"MiniGrenade",
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SatchelCharge_Remote_Mag",
    			"DemoCharge_Remote_Mag",
    			"DemoCharge_Remote_Mag",
    			"DemoCharge_Remote_Mag",
    			"DemoCharge_Remote_Mag",
    			"DemoCharge_Remote_Mag",
    			"SmokeShell",			
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M",
    			"ToolKit", 
    			"MineDetector"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA2_dgtl",
    			"H_HelmetIA",
    			"optic_ACO_grn",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_Kitbag_rgr";
    	};
    	class TG_ENGI_IND
    	{
    		displayName = "TG Engineer";
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_F",
    			"hgun_ACPC2_snds_F",
    			"Binocular"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"MiniGrenade",
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SLAMDirectionalMine_Wire_Mag",
    			"SLAMDirectionalMine_Wire_Mag",
    			"APERSMine_Range_Mag",
    			"APERSMine_Range_Mag",			
    			"DemoCharge_Remote_Mag",
    			"DemoCharge_Remote_Mag",
    			"SmokeShell",			
    			"SmokeShellRed",
    			"SmokeShellGreen",
    			"SmokeShellBlue",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_MRCO",
    			"acc_pointer_IR",
    			"muzzle_snds_M",
    			"ToolKit", 
    			"MineDetector"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIA2_dgtl",
    			"H_HelmetIA",
    			"optic_ACO_grn",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_Kitbag_rgr";
    	};
    	class TG_SL_IND
    	{
    		displayName = "TG Squad Leader";
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_GL_F",
    			"hgun_ACPC2_snds_F",
    			"Laserdesignator"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",
    			"MiniGrenade",
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SmokeShellGreen",
    			"SmokeShellGreen",
    			"SmokeShellRed",
    			"SmokeShellRed",
    			"SmokeShellBlue",
    			"SmokeShellBlue",
    			"SmokeShellYellow",
    			"SmokeShellYellow",
    			"I_IR_Grenade",
    			"I_IR_Grenade",
    			"Chemlight_green",
    			"Chemlight_green",
                "Chemlight_red",
    			"Chemlight_red",			
    			"Laserbatteries",
    			"Laserbatteries",
    			"Laserbatteries",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_ACO_grn",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIAGL_dgtl",
    			"H_HelmetIA",
    			"optic_MRCO",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_TacticalPack_oli";
    	};
    	class TG_TL_IND
    	{
    		displayName = "TG Team Leader";
    		show = true;
    		weapons[] = {
    			"arifle_Mk20_GL_F",
    			"hgun_ACPC2_snds_F",
    			"Rangefinder"
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"30Rnd_556x45_Stanag_Tracer_Yellow",			
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",
    			"1Rnd_SmokeRed_Grenade_shell",			
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",
    			"1Rnd_SmokeGreen_Grenade_shell",			
    			"1Rnd_HE_Grenade_shell", 
    			"1Rnd_HE_Grenade_shell", 
    			"1Rnd_HE_Grenade_shell", 
    			"1Rnd_HE_Grenade_shell", 
    			"UGL_FlareWhite_F",
    			"UGL_FlareWhite_F",			
    			"HandGrenade",
    			"HandGrenade",
    			"MiniGrenade",			
    			"SmokeShellGreen",
    			"SmokeShellGreen",
    			"SmokeShellRed",			
    			"SmokeShellBlue",			
    			"SmokeShellYellow",			
    			"I_IR_Grenade",			
    			"Chemlight_green",			
                "Chemlight_red",			
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"
    		};
    		items[] = {
    			"FirstAidKit",
    			"optic_Holosight",
    			"optic_ACO_grn",
    			"acc_pointer_IR",
    			"muzzle_snds_M"
    		};
    		linkedItems[] = {
    			"V_PlateCarrierIAGL_dgtl",
    			"H_HelmetIA",
    			"optic_MRCO",
    			"acc_flashlight",
    			"G_Combat",
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};
    		backpack = "B_TacticalPack_oli";
    	};
    	class TG_CREWMEN_IND
    	{
    		displayName = "TG Crewmen";		
    		show = true;
    		weapons[] = {
    			"arifle_Mk20C_F",
    			"hgun_ACPC2_snds_F",
    			"Binocular"			
    		};
    		magazines[] = {
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",
    			"30Rnd_556x45_Stanag",			
    			"MiniGrenade",
    			"MiniGrenade",			
    			"SmokeShellGreen",			
    			"9Rnd_45ACP_Mag",
    			"9Rnd_45ACP_Mag"			
    		};
    		items[] = {
    			"FirstAidKit"			
    		};
    		linkedItems[] = {
    			"V_BandollierB_oli",
    			"H_HelmetCrew_I",
    			"optic_Holosight",			
    			"NVGoggles_INDEP",
    			"ItemMap",
    			"ItemGPS",			
    			"ItemCompass",
    			"ItemWatch",
    			"ItemRadio"
    		};
    		uniformClass[] = {"U_I_CombatUniform","U_I_CombatUniform_tshirt","U_I_CombatUniform_shortsleeve"};		
    	};
    };
    Now that everything is defined we make each class available to certain ClassNames... This can be done initPlayerLocal.sqf (Can call a separate script... Client side locally executed init)

    Code:
    _type = typeOf player;
    switch (_type) do
    {    
        case "I_soldier_F": {
    		[player, "TG_RIFLEMAN_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_GRENADIER_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_AUTORIFLEMAN_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_LIGHTAT_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_HEAVYAT_IND"] call BIS_fnc_addRespawnInventory;
        };	
    	case "I_medic_F": {
    		[player, "TG_LIGHTMED_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_HEAVYMED_IND"] call BIS_fnc_addRespawnInventory;		
        };	
    	case "I_Soldier_exp_F": {
    		[player, "TG_DEMOL_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_GRENADIER_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_LIGHTAT_IND"] call BIS_fnc_addRespawnInventory;
        };
    	case "I_engineer_F": {
    		[player, "TG_ENGI_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_GRENADIER_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_LIGHTAT_IND"] call BIS_fnc_addRespawnInventory;
        };
    	case "I_Soldier_SL_F": {
    		[player, "TG_SL_IND"] call BIS_fnc_addRespawnInventory;	
    		[player, "TG_LIGHTAT_IND"] call BIS_fnc_addRespawnInventory;
        };
    	case "I_Soldier_TL_F": {
    		[player, "TG_TL_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_LIGHTAT_IND"] call BIS_fnc_addRespawnInventory;
        };
    	case "I_crew_F": {
    		[player, "TG_CREWMEN_IND"] call BIS_fnc_addRespawnInventory;
    		[player, "TG_RIFLEMAN_IND"] call BIS_fnc_addRespawnInventory;
        };
    	
        default {false};
    };
    Last edited by hedgehog; 05-15-2014, 11:23 AM.

Connect

Collapse

TeamSpeak 3 Server

Collapse

Advertisement

Collapse

Twitter Feed

Collapse

Working...
X