//	   "This addon is based on the international soldier addon KMMint, by W.M. Crielaard
#define UKF_WOUNDS  wounds[]={"xicht_a.paa","xicht_a_zranen","xicht_b.paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen","xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zranen","xicht_f.paa","xicht_a_zranen","xicht_g.paa","xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.paa","xicht_a_zranen","xicht_j.paa","xicht_a_zranen","xicht_k.paa","xicht_a_zranen","xicht_l.paa","xicht_a_zranen","xicht_m.paa","xicht_a_zranen","xicht_n.paa","xicht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa","xicht_a_zranen","xicht_q.paa","xicht_a_zranen","xicht_r.paa","xicht_a_zranen","xicht_s.paa","xicht_a_zranen","xicht_t.paa","xicht_a_zranen","xicht_u.paa","xicht_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa","xicht_w_zranen","xicht_x.paa","xicht_a_zranen","xicht_y.paa","xicht_a_zranen","xicht_z.paa","xicht_a_zranen","xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht_w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa","xicht_v_zranen","xicht_2e.paa","xicht_a_zranen","xicht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen","xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","xicht_a_zranen","xicht_2j.paa","xicht_a_zranen","xicht_2k.paa","xicht_a_zranen","xicht_2l.paa","xicht_a_zranen","xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zranen","xicht_2o.paa","xicht_a_zranen","xicht_2p.paa","xicht_2p_zranen","xicht_2q.paa","xicht_a_zranen","xicht_2r.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen","xicht_2t.paa","xicht_a_zranen","xicht_2u.paa","xicht_a_zranen","xicht_2v.paa","xicht_a_zranen","xicht_2w.paa","xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xicht_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen","\ukf_textuk\chest_bk.pac","\ukf_textuk\Wchest_bk.pac","\ukf_textuk\chest_fr.pac","\ukf_textuk\Wchest_fr.pac","\ukf_textuk\dpm_arm1.pac","\ukf_textuk\Wdpm_arm1.pac","\ukf_textuk\jack_bk.pac","\ukf_textuk\Wjack_bk.pac","\ukf_textuk\jack_fr.pac","\ukf_textuk\wjack_fr.pac","\ukf_textuk\leg1_dpm.pac","\ukf_textuk\Wleg1_dpm.pac","\ukf_textuk\leg2_dpm.pac","\ukf_textuk\Wleg2_dpm.pac","\ukf_textuk\vest_front.pac","\ukf_textuk\Wvest_front.pac","\ukf_textuk\vest_rear.pac","\ukf_textuk\Wvest_rear.pac",};
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot		0	// dummy weapons
#define WeaponSlotPrimary	1	// primary weapons
#define WeaponSlotSecondary	16	// secondary weapons
#define WeaponSlotHandGun	2	// HandGun
#define WeaponSlotHandGunItem	32 // HandGun magazines
#define WeaponSlotItem		256	// items
#define WeaponSlotBinocular	4096	// binocular
#define WeaponHardMounted	65536

#define CanSeeRadar 1
#define CanSeeEye 2
#define CanSeeOptics 4
#define CanSeeEar 8
#define CanSeeCompass 16 
#define CanSeeRadarC CanSeeRadar+CanSeeCompass
#define CanSeeAll 31



class CfgPatches
{
	class ukf_infantry
	{
		requiredAddons[] = {"BIS_Resistance","ukf_ukweps","ukf_slmg","jam_magazines"};	
		units[] = {ukf_INfantrywb, ukf_infantryWBv, ukf_infantryWBr, ukf_infantry_officerWBb, ukf_infantry_lawWBb, ukf_infantry_rlgWBb, ukf_infantry_lswWBb, ukf_infantry_LMGWBb, ukf_infantry_gmpgaWBb, ukf_infantry_gmpgbWBb, ukf_infantry_radioWBb, ukf_medicWBb};
		weapons[] = {};
		requiredVersion = 1.90;
			
	};
};

class CfgModels
{
	class Default {};
	class Head: Default
	{
		sections[] =
		{
			"osobnost",
			"brejle",
			"helmet_on",
			"helmet_on_straps",		
			"helmet_on_inside",
			"helmet_on_net",
			"goggles_on",
			"goggles_on_lens",
			"goggles_on_strap",
			"beret_front",
			"beret_back",
			"beret_emblem",
			"hackle",
			"boonie1_top",
			"boonie1_brim",
			"para_band_on",	
			"boonie2_top",
			"boonie2_brim",
			"helmet_on_para",
			"helmet_on_para_inside",
			"PRR_Radio",
			"PRR_Headset"
		};
	};
	class Man: Default {};
	class ukf_soldier_dpm1: Man {
		sections[] = {	"head injury",
				"body injury",
				"l arm injury",
				"r arm injury",
				"p arm injury",
				"l leg injury",
				"r leg injury",
				"p leg injury",
				"hlava",
				"krk",
				"zasleh",
				"clan",
				"clan_sign",
				"armpatch_left",
				"armpatch_right",
				"rankmark",
				"helmet_on",
				"helmet_on_straps",		
				"helmet_on_inside",
				"helmet_on_net",
				"helmet_off",		
				"helmet_off_inside",
				"helmet_off_net",
				"goggles_on",
				"goggles_on_lens",
				"goggles_on_strap",
				"goggles_off",
				"goggles_off_lens",
				"goggles_off_strap",
				"beret_front",
				"beret_back",
				"beret_emblem",
				"hackle",
				"daysack_front",
				"daysack_side",
				"daysack",
				"boonie1_top",
				"boonie1_brim",
				"radio",
				"para_band_on",
				"para_band_off",	
				"boonie2_top",
				"boonie2_brim",
				"patrolpack",
				"nbcpouch",
				"helmet_on_para",
				"helmet_on_para_inside",
				"PRR_Radio",
				"PRR_Headset",
				"mkd_chin",
				"goggle_tex",
				"Beret_tex"	
		};
		sectionsInherit=Head;
	};
	class ukf_soldier_dpm2: Man {
		sections[] = {	"head injury",
				"body injury",
				"l arm injury",
				"r arm injury",
				"p arm injury",
				"l leg injury",
				"r leg injury",
				"p leg injury",
				"hlava",
				"krk",
				"zasleh",
				"clan",
				"clan_sign",
				"armpatch_left",
				"armpatch_right",
				"rankmark",
				"helmet_on",
				"helmet_on_straps",		
				"helmet_on_inside",
				"helmet_on_net",
				"helmet_off",		
				"helmet_off_inside",
				"helmet_off_net",
				"goggles_on",
				"goggles_on_lens",
				"goggles_on_strap",
				"goggles_off",
				"goggles_off_lens",
				"goggles_off_strap",
				"beret_front",
				"beret_back",
				"beret_emblem",
				"hackle",
				"boonie1_top",
				"boonie1_brim",
				"radio",	
				"para_band_on",
				"para_band_off",
				"daysack_front",
				"daysack_side",
				"daysack",	
				"boonie2_top",
				"boonie2_brim",
				"patrolpack",
				"nbcpouch",
				"PRR_Radio",
				"PRR_Headset",
				"helmet_on_para",
				"helmet_on_para_inside",
				"mkd_chin",
				"goggle_tex",
				"Beret_tex"
				
		};
		sectionsInherit=Head;
	};
	class ukf_medic_dpm1: Man {
		sections[] = {	"head injury",
				"body injury",
				"l arm injury",
				"r arm injury",
				"p arm injury",
				"l leg injury",
				"r leg injury",
				"p leg injury",
				"hlava",
				"krk",
				"zasleh",
				"clan",
				"clan_sign",
				"armpatch_left",
				"armpatch_right",
				"rankmark",
				"helmet_on",
				"helmet_on_straps",		
				"helmet_on_inside",
				"helmet_on_net",
				"helmet_off",		
				"helmet_off_inside",
				"helmet_off_net",
				"goggles_on",
				"goggles_on_lens",
				"goggles_on_strap",
				"goggles_off",
				"goggles_off_lens",
				"goggles_off_strap",
				"beret_front",
				"beret_back",
				"beret_emblem",
				"hackle",
				"daysack_front",
				"daysack_side",
				"daysack",
				"boonie1_top",
				"boonie1_brim",
				"radio",
				"para_band_on",
				"para_band_off",	
				"boonie2_top",
				"boonie2_brim",
				"patrolpack",
				"nbcpouch",
				"PRR_Radio",
				"PRR_Headset",
				"helmet_on_para",
				"helmet_on_para_inside"	,
				"Beret_tex",
				"mkd_chin",
				"goggle_tex"
				
		};
		sectionsInherit=Head;
	};
	
};

class CfgFaces
{
	class ukfinfantryFaceCamo1
	{
		name = "Camouflaged";
		texture = "\ukf_infantry\camoface.paa";
		east = false;
		west = false;
	};
}



////////////////////////////////////////////////////////
// cfgVehicles
////////////////////////////////////////////////////////
class ECP_EventHandlers {};
class CfgVehicles
{
	class All{};
	class AllVehicles:All{};
	class Land:AllVehicles{};
	class Man:Land{};
	class Soldier:Man{};
	class SoldierWB:Soldier{};
	class SoldierWMedic: SoldierWB{};
	class ukf_infantryWBb: SoldierWB
	{
		model="\ukf_infantry\ukf_soldier_dpm1";
		displayName="DPM Rifleman";
		picture="\ukf_infantry\icons\com_infantry.paa";
		moves="CfgMovesMC";
		vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		UKF_WOUNDS
		camouflage=0.700000;
		armor = 5;
		armorStructural = 2.0;
		armorHead = 0.7;
		armorBody = 5.5;
		armorHands = 0.5;
		armorLegs = 0.5;
		hiddenSelections[] = {	"armpatch_left",
					"armpatch_right",
					"rankmark",
					"helmet_on",
					"helmet_on_straps",		
					"helmet_on_inside",
					"helmet_on_net",
					"goggles_on",
					"goggles_on_lens",
					"goggles_on_strap",
					"helmet_off",		
					"helmet_off_inside",
					"helmet_off_net",
					"goggles_off",
					"goggles_off_lens",
					"goggles_off_strap",
					"beret_front",
					"beret_back",
					"beret_emblem",
					"hackle",
					"daysack_front",
					"daysack_side",
					"boonie1_top",
					"boonie1_brim",
					"para_band_on",
					"para_band_off",	
					"boonie2_top",
					"boonie2_brim",
					"patrolpack",
					"PRR_Radio",
					"PRR_Headset",
					"helmet_on_para",
					"helmet_on_para_inside",
					"mkd_chin",
					"goggle_tex",
					"berret_tex"
					
				     };
		weapons[]={"ukf_sa80","Throw","Put"};
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","ukf_bayonet"};
		/////////////////////  START OF STATE-OF-THE-ART STUFF ;o)  /////////////////////
		class animations {
			class goggles
			{
				type="rotation";
				animPeriod=0.5;
				selection="goggles";
				axis="goggles_axis";
				angle0=0.680;
				angle1=0.000;
			};
			class FacecamoState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.746;
			};
			class HelmetState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.745;
			};
		
		
		}
		class UserActions
			{
			class Lowervisor
			{
				displayName="Put goggles on";
				position="brain";
				radius=1.00000;
				condition="(this animationPhase ""goggles"" < 0.5) && (this animationPhase ""HelmetState"" == 0)";
				statement="this animate [""goggles"", 1]";
			};
			class Raisevisor
			{
				displayName="Take goggles off";
				position="brain";
				radius=1.00000;
				condition="this animationPhase ""goggles"" >= 0.5";
				statement="this animate [""goggles"", 0]";
			};
			class CamoFace {
				displayName="Camouflage face";
				position="brain";
				radius=1;
				sound={};
				condition="this animationPhase ""FacecamoState"" == 0";
				statement="this animate [""FacecamoState"", 1];";
			};
			class HelmetOff {
				displayName="Take off helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 0";
				statement="this animate [""goggles"", 0]; this animate [""HelmetState"", 1];";
			};
			class HelmetOn {
				displayName="Put on helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 1";
				statement="this animate [""HelmetState"", 0];";
			};

		
			
		};
	
	class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_infantry\scripts\ukf_init.sqs""; if (format[{%1},count ECP_addUnitsArray] == {scalar}) then {ECP_addUnitsArray = []}; ECP_addUnitsArray = ECP_addUnitsArray + [_this select 0]; _this call ECP_EH_handler_init;";
			fired = "if ( (_this select 1 in [{Throw},{JAM_AT4Launcher},{JAM_RPG7Launcher},{JAM_M72LAWLauncher}]) or (_this select 4 in [{JAM_MarkerGrenadeammo}]) ) then {_this exec {\JAM_Magazines\FX\firedEH.sqs}}; _this call ECP_EH_handler_fired;"
			};
					
		
		/////////////////////  END OF STATE-OF-THE-ART STUFF  /////////////////////


	};

class ukf_infantryWBv: SoldierWB
	{
		model="\ukf_infantry\ukf_soldier_dpm2";
		displayName="DPM Rifleman (Assault Vest)";
		moves="CfgMovesMC";
		picture="\ukf_infantry\icons\com_infantry.paa";
                vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		UKF_WOUNDS
		camouflage=0.700000;
		armor = 5;
		armorStructural = 2.0;
		armorHead = 0.7;
		armorBody = 5.5;
		armorHands = 0.5;
		armorLegs = 0.5;
		hiddenSelections[] = {	"armpatch_left",
					"armpatch_right",
					"rankmark",
					"helmet_on",
					"helmet_on_straps",		
					"helmet_on_inside",
					"helmet_on_net",
					"goggles_on",
					"goggles_on_lens",
					"goggles_on_strap",
					"helmet_off",		
					"helmet_off_inside",
					"helmet_off_net",
					"goggles_off",
					"goggles_off_lens",
					"goggles_off_strap",
					"beret_front",
					"beret_back",
					"beret_emblem",
					"hackle",
					"daysack_front",
					"daysack_side",
					"boonie1_top",
					"boonie1_brim",
					"para_band_on",
					"para_band_off",	
					"boonie2_top",
					"boonie2_brim",
					"patrolpack",
					"PRR_Radio",
					"PRR_Headset",
					"helmet_on_para",
					"helmet_on_para_inside",
					"mkd_chin",
					"goggle_tex",
					"Beret_tex"
					
				     };
		weapons[]={"ukf_sa80","Throw","Put"};
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","ukf_bayonet"};
/////////////////////  START OF STATE-OF-THE-ART STUFF ;o)  /////////////////////
		class animations {
			class goggles
			{
				type="rotation";
				animPeriod=0.5;
				selection="goggles";
				axis="goggles_axis";
				angle0=0.680;
				angle1=0.000;
			};
			class FacecamoState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.746;
			};
			class HelmetState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.745;
			};
		
		
		}
		class UserActions
			{
			class Lowervisor
			{
				displayName="Put goggles on";
				position="brain";
				radius=1.00000;
				condition="(this animationPhase ""goggles"" < 0.5) && (this animationPhase ""HelmetState"" == 0)";
				statement="this animate [""goggles"", 1]";
			};
			class Raisevisor
			{
				displayName="Take goggles off";
				position="brain";
				radius=1.00000;
				condition="this animationPhase ""goggles"" >= 0.5";
				statement="this animate [""goggles"", 0]";
			};
			class CamoFace {
				displayName="Camouflage face";
				position="brain";
				radius=1;
				sound={};
				condition="this animationPhase ""FacecamoState"" == 0";
				statement="this animate [""FacecamoState"", 1];";
			};
			class HelmetOff {
				displayName="Take off helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 0";
				statement="this animate [""goggles"", 0]; this animate [""HelmetState"", 1];";
			};
			class HelmetOn {
				displayName="Put on helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 1";
				statement="this animate [""HelmetState"", 0];";
			};
		
			
		};
		class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_infantry\scripts\ukf_init.sqs""; if (format[{%1},count ECP_addUnitsArray] == {scalar}) then {ECP_addUnitsArray = []}; ECP_addUnitsArray = ECP_addUnitsArray + [_this select 0]; _this call ECP_EH_handler_init;";
			fired = "if ( (_this select 1 in [{Throw},{JAM_AT4Launcher},{JAM_RPG7Launcher},{JAM_M72LAWLauncher}]) or (_this select 4 in [{JAM_MarkerGrenadeammo}]) ) then {_this exec {\JAM_Magazines\FX\firedEH.sqs}}; _this call ECP_EH_handler_fired;"
			};
			
				
		
		/////////////////////  END OF STATE-OF-THE-ART STUFF  /////////////////////


	};
class ukf_infantryWBr: SoldierWB
	{
		model="\ukf_infantry\ukf_medic_dpm1";
		displayName="DPM Rifleman (Chest Rig)";
		moves="CfgMovesMC";
		picture="\ukf_infantry\icons\com_infantry.paa";
                vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		armor = 5;
		armorStructural = 2.0;
		armorHead = 0.7;
		armorBody = 5.5;
		armorHands = 0.5;
		armorLegs = 0.5;
		hiddenSelections[] = {	"armpatch_left",
					"armpatch_right",
					"rankmark",
					"helmet_on",
					"helmet_on_straps",		
					"helmet_on_inside",
					"helmet_on_net",
					"goggles_on",
					"goggles_on_lens",
					"goggles_on_strap",
					"helmet_off",		
					"helmet_off_inside",
					"helmet_off_net",
					"goggles_off",
					"goggles_off_lens",
					"goggles_off_strap",
					"beret_front",
					"beret_back",
					"beret_emblem",
					"hackle",
					"daysack_front",
					"daysack_side",
					"boonie1_top",
					"boonie1_brim",
					"para_band_on",
					"para_band_off",	
					"boonie2_top",
					"boonie2_brim",
					"patrolpack",
					"PRR_Radio",
					"PRR_Headset",
					"helmet_on_para",
					"helmet_on_para_inside",
					"mkd_chin",
					"goggle_tex",
					"Beret_tex"
					
				     };
		weapons[]={"ukf_sa80","Throw","Put"};
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","ukf_bayonet"};
///////////////////  START OF STATE-OF-THE-ART STUFF ;o)  /////////////////////
		class animations {
			class goggles
			{
				type="rotation";
				animPeriod=0.5;
				selection="goggles";
				axis="goggles_axis";
				angle0=0.680;
				angle1=0.000;
			};
			class FacecamoState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.746;
			};
			class HelmetState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.745;
			};
		
		
		}
		class UserActions
			{
			class Lowervisor
			{
				displayName="Put goggles on";
				position="brain";
				radius=1.00000;
				condition="(this animationPhase ""goggles"" < 0.5) && (this animationPhase ""HelmetState"" == 0)";
				statement="this animate [""goggles"", 1]";
			};
			class Raisevisor
			{
				displayName="Take goggles off";
				position="brain";
				radius=1.00000;
				condition="this animationPhase ""goggles"" >= 0.5";
				statement="this animate [""goggles"", 0]";
			};
			class CamoFace {
				displayName="Camouflage face";
				position="brain";
				radius=1;
				sound={};
				condition="this animationPhase ""FacecamoState"" == 0";
				statement="this animate [""FacecamoState"", 1];";
			};
			class HelmetOff {
				displayName="Take off helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 0";
				statement="this animate [""goggles"", 0]; this animate [""HelmetState"", 1];";
			};
			class HelmetOn {
				displayName="Put on helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 1";
				statement="this animate [""HelmetState"", 0];";
			};
		
			
		};
			class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_infantry\scripts\ukf_init.sqs""; if (format[{%1},count ECP_addUnitsArray] == {scalar}) then {ECP_addUnitsArray = []}; ECP_addUnitsArray = ECP_addUnitsArray + [_this select 0]; _this call ECP_EH_handler_init;";
			fired = "if ( (_this select 1 in [{Throw},{JAM_AT4Launcher},{JAM_RPG7Launcher},{JAM_M72LAWLauncher}]) or (_this select 4 in [{JAM_MarkerGrenadeammo}]) ) then {_this exec {\JAM_Magazines\FX\firedEH.sqs}}; _this call ECP_EH_handler_fired;"
			};
			
											
	
		
		/////////////////////  END OF STATE-OF-THE-ART STUFF  /////////////////////


	};
class ukf_infantry_officerWBb: ukf_infantryWBb
	{
		displayName="DPM Officer";
		moves="CfgMovesMC";
		vehicleClass ="UKF British Infantry";
		picture="\ukf_infantry\icons\com_oinfantry.paa";
                nameSound="officer";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_sa80","Throw","Put","Binocular","NVGoggles"};
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","ukf_bayonet"};
		
	};
class ukf_infantry_lawWBb: ukf_infantryWBb
	{
		displayName="DPM Rifleman (LAW-80)";
		moves="CfgMovesMC";
		nameSound="soldier";
		picture="\ukf_infantry\icons\com_infantry.paa";
                vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_sa80","Throw","Put","ukf_law80launcher"};
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","ukf_LAW80","ukf_bayonet"};

	};
class ukf_infantry_rlgWBb: ukf_infantryWBb
	{
		displayName="DPM Rifleman (SA80/UGL)";
		moves="CfgMovesMC";
		nameSound="soldier";
		picture="\ukf_infantry\icons\com_infantry.paa";
                vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_sa80ag36","Throw","Put"};  
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_M433Vest"};

	};
class ukf_infantry_lswWBb: ukf_infantryWBb
	{
		displayName="DPM Support (LSW)";
		moves="CfgMovesMC";
		picture="\ukf_infantry\icons\com_infantry.paa";
                nameSound="machineGunner";
		vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_lsw","Throw","Put"};
		magazines[]={"JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag", "handgrenade", "handgrenade"};
	};
	class ukf_infantry_LMGWBb: ukf_infantryWBb
	{
		displayName="DPM Support (LMG)";
		moves="CfgMovesMC";
		picture="\ukf_infantry\icons\com_infantry.paa";
                nameSound="machineGunner";
		vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_lmg","Throw","Put"};
		magazines[]={"JAM_W556M_200mag","JAM_W556M_200mag","JAM_W556M_200mag","JAM_W556M_200mag", "handgrenade", "handgrenade"};
	};
class ukf_infantry_gmpgaWBb: ukf_infantryWBb
	{
		displayName="DPM Machine Gunner (GPMG)";
		moves="CfgMovesMC";
		picture="\ukf_infantry\icons\com_infantry.paa";
                nameSound="machineGunner";
		vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_gpmg","Throw","Put"};
		magazines[]={"JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag"};
	};
class ukf_infantry_gmpgbWBb: ukf_infantryWBb
	{
		displayName="DPM Asst. Machine Gunner (GPMG)";
		moves="CfgMovesMC";
		picture="\ukf_infantry\icons\com_infantry.paa";
                nameSound="machineGunner";
		vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_sa80","Throw","Put"};
magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag", "JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","ukf_bayonet"};
		transportMaxWeapons = 0;
		transportMaxMagazines = 20;
class TransportMagazines
{
	class _xx_DPJ_HJ
	{
		magazine="JAM_W762M_100mag";
			count=4;
		};

	};
};

class ukf_infantry_radioWBb: ukf_infantryWBb
	
{
	displayName="DPM Signaller";
	model="\ukf_infantry\ukf_medic_dpm1"
	picture="\ukf_infantry\icons\com_infantry.paa";
        hiddenSelections[] = {	
				"armpatch_left",
				"armpatch_right",
				"rankmark",
				"helmet_on",
				"helmet_on_straps",		
				"helmet_on_inside",
				"helmet_on_net",
				"goggles_on",
				"goggles_on_lens",
				"goggles_on_strap",
				"helmet_off",		
				"helmet_off_inside",
				"helmet_off_net",
				"goggles_off",
				"goggles_off_lens",
				"goggles_off_strap",
				"beret_front",
				"beret_back",
				"beret_emblem",
				"hackle",
				"blank",
				"blank",
				"boonie1_top",	
				"boonie1_brim",
				"para_band_on",
				"para_band_off",
				"boonie2_top",
				"boonie2_brim",
				"blank",
				"PRR_Radio",
				"PRR_Headset",
				"helmet_on_para",
				"helmet_on_para_inside",
				"mkd_chin",
				"goggle_tex",
				"Beret_tex",	
				"daysack_front",
				"daysack_side",
				"patrolpack"	
			};
	weapons[]={"ukf_sa80","Throw","Put","UKF_CLANSMAN","Binocular"};
magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","ukf_bayonet"};
	
	};
class ukf_medicWBb:  soldierWmedic
	{
		model="\ukf_infantry\ukf_medic_dpm1";
		displayName="DPM Medic";
		picture="\ukf_infantry\icons\com_medic.paa";
                moves="CfgMovesMC";
		vehicleClass ="UKF British Infantry";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		UKF_WOUNDS
		camouflage=0.700000;
		armor = 5;
		armorStructural = 2.0;
		armorHead = 0.7;
		armorBody = 5.5;
		armorHands = 0.5;
		armorLegs = 0.5;
		hiddenSelections[] = {	"armpatch_left",
					"armpatch_right",
					"rankmark",
					"helmet_on",
					"helmet_on_straps",		
					"helmet_on_inside",
					"helmet_on_net",
					"goggles_on",
					"goggles_on_lens",
					"goggles_on_strap",
					"helmet_off",		
					"helmet_off_inside",
					"helmet_off_net",
					"goggles_off",
					"goggles_off_lens",
					"goggles_off_strap",
					"beret_front",
					"beret_back",
					"beret_emblem",
					"hackle",
					"blank",
					"blank",
					"boonie1_top",
					"boonie1_brim",
					"para_band_on",
					"para_band_off",	
					"boonie2_top",
					"boonie2_brim",
					"blank",
					"PRR_Radio",
					"PRR_Headset",
					"helmet_on_para",
					"helmet_on_para_inside",
					"mkd_chin",
					"goggle_tex",
					"Beret_tex",	
					"daysack_front",
					"daysack_side"
					
				     };
		weapons[]={"ukf_sa80","Throw","Put"};
		magazines[]={"JAM_W556_30mag","ukf_bayonet","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell"};
/////////////////////  START OF STATE-OF-THE-ART STUFF ;o)  /////////////////////
		class animations {
			class goggles
			{
				type="rotation";
				animPeriod=0.5;
				selection="goggles";
				axis="goggles_axis";
				angle0=0.680;
				angle1=0.000;
			};
			class FacecamoState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.746;
			};
			class HelmetState {
				type="rotation";
				animperiod=.01;
				selection="brain";
				axis="brain";
				angle0=0;
				angle1=1.745;
			};
		
		
		}
		class UserActions
			{
			class Lowervisor
			{
				displayName="Put goggles on";
				position="brain";
				radius=1.00000;
				condition="(this animationPhase ""goggles"" < 0.5) && (this animationPhase ""HelmetState"" == 0)";
				statement="this animate [""goggles"", 1]";
			};
			class Raisevisor
			{
				displayName="Take goggles off";
				position="brain";
				radius=1.00000;
				condition="this animationPhase ""goggles"" >= 0.5";
				statement="this animate [""goggles"", 0]";
			};
			class CamoFace {
				displayName="Camouflage face";
				position="brain";
				radius=1;
				sound={};
				condition="this animationPhase ""FacecamoState"" == 0";
				statement="this animate [""FacecamoState"", 1];";
			};
			class HelmetOff {
				displayName="Take off helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 0";
				statement="this animate [""goggles"", 0]; this animate [""HelmetState"", 1];";
			};
			class HelmetOn {
				displayName="Put on helmet";
				position="Brain";
				radius=0.1;
				sound={};
				condition="this animationPhase ""HelmetState"" == 1";
				statement="this animate [""HelmetState"", 0];";
			};
		
			
		};
		class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_infantry\scripts\ukf_init.sqs""; if (format[{%1},count ECP_addUnitsArray] == {scalar}) then {ECP_addUnitsArray = []}; ECP_addUnitsArray = ECP_addUnitsArray + [_this select 0]; _this call ECP_EH_handler_init;";
			fired = "if ( (_this select 1 in [{Throw},{JAM_AT4Launcher},{JAM_RPG7Launcher},{JAM_M72LAWLauncher}]) or (_this select 4 in [{JAM_MarkerGrenadeammo}]) ) then {_this exec {\JAM_Magazines\FX\firedEH.sqs}}; _this call ECP_EH_handler_fired;"
			};
							
	
		
		/////////////////////  END OF STATE-OF-THE-ART STUFF  /////////////////////
	};
	class Logic: All {};
	class UKF_Arty: Logic
		{
		scope = private
		};
	class UKF_IFLogic: Logic
	{
		scope = private;
		vehicleClass = "UKF";
	};
	class UKF_NG: UKF_IFLogic
	{
		scope = public;
		displayName = "No Goggles";
		class eventhandlers
		{
			init = "UKF_nogoggles = true";
		};
	};
		class UKF_NR: UKF_IFLogic
	{
		scope = public;
		displayName = "No Radios";
		class eventhandlers
		{
			init = "UKF_noradio = true";
		};
	};
	class UKF_BH1: UKF_IFLogic
	{
		scope = public;
		displayName = "Bush Hats (1)";
		class eventhandlers
		{
			init = "UKF_bushhat = true";
		};
	};
	class UKF_BH2: UKF_IFLogic
	{
		scope = public;
		displayName = "Bush Hats (2)";
		class eventhandlers
		{
			init = "UKF_bushhat2 = true";
		};
	};
	class UKF_ds: UKF_IFLogic
	{
		scope = public;
		displayName = "Day Sacks";
		class eventhandlers
		{
			init = "UKF_Daysack = true";
		};
	};
	class UKF_pp: UKF_IFLogic
	{
		scope = public;
		displayName = "Patrol Packs";
		class eventhandlers
		{
			init = "UKF_patrolpack = true";
		};
	};
	class UKF_OR: UKF_IFLogic
	{
		scope = public;
		displayName = "Script Override";
		class eventhandlers
		{
			init = "UKF_Override = true";
		};
	};


};

class CfgGroups
{
	class West
	{
	name="$STR_WEST";
	class ukfukgrp
	{
		name="UKF British Infantry (DPM)"
		class ukfriflecoydquad
		{
		name="DPM Rifle Company Squad";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="corporal";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="private";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_infantry_lswWBb";
			rank="Private";
			position[]={10,0,0};
			};
			class Unit3
			{
			name="4";
			side=1;
			vehicle="ukf_infantry_rlgWBb";
			rank="Private";
			position[]={15,0,0};
			};
			class Unit4
			{
			name="5";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="Private";
			position[]={-15,0,0};
			};
			class Unit5
			{
			name="6";
			side=1;
			vehicle="ukf_infantry_lawWBb";
			rank="Private";
			position[]={20,0,0};
			};
			class Unit6
			{
			name="7";
			side=1;
			vehicle="ukf_infantry_lswWBb";
			rank="Private";
			position[]={-20,0,0};
			};
			class Unit7
			{
			name="8";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="Private";
			position[]={25,0,0};
			};
		};
		class ukfriflecoydquadlmg
		{
		name="DPM Rifle Company Squad (LMG)";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="corporal";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="private";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_infantry_lswWBb";
			rank="Private";
			position[]={10,0,0};
			};
			class Unit3
			{
			name="4";
			side=1;
			vehicle="ukf_infantry_lmgWBb";
			rank="Private";
			position[]={15,0,0};
			};
			class Unit4
			{
			name="5";
			side=1;
			vehicle="ukf_infantry_rlgWBb";
			rank="Private";
			position[]={-15,0,0};
			};
			class Unit5
			{
			name="6";
			side=1;
			vehicle="ukf_infantry_lawWBb";
			rank="Private";
			position[]={20,0,0};
			};
			class Unit6
			{
			name="7";
			side=1;
			vehicle="ukf_infantry_lswWBb";
			rank="Private";
			position[]={-20,0,0};
			};
			class Unit7
			{
			name="8";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="Private";
			position[]={25,0,0};
			};
		};
	class ukfriflecoyplthq
		{
		name="DPM Platoon Command Section";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_infantry_officerWBb";
			rank="captain";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_medicWBb";
			rank="corporal";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_infantry_radioWBb";
			rank="Corporal";
			position[]={10,0,0};
			};
		
		};
		class ukfriflecoymss
		{
		name="DPM Manouvre Support Section";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_infantryWBb";
			rank="Sergeant";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_infantry_gmpgaWBb";
			rank="Private";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_infantry_gmpgaWBb";
			rank="Private";
			position[]={10,0,0};
			};
			class Unit3
			{
			name="4";
			side=1;
			vehicle="ukf_infantry_gmpgbWBb";
			rank="Private";
			position[]={15,0,0};
			};
			class Unit4
			{
			name="5";
			side=1;
			vehicle="ukf_infantry_gmpgbWBb";
			rank="Private";
			position[]={-15,0,0};
			};
			
		};
	};


