#define PARA_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_rm
	{
		units[] = {ukf_rm_wb, ukf_rm_WBv, ukf_rm_officerWBb, ukf_rm_lawWBb, ukf_rm_rlgWBb, ukf_rm_lswWBb, ukf_rm_LMGWBb, ukf_rm_gmpgaWBb, ukf_rm_gmpgbWBb, ukf_rm_radioWBb, ukf_rm_medicWBb};
		weapons[] = {};
		requiredVersion = 1.90;
		requiredAddons[] = {"BIS_Resistance","ukf_ukweps","ukf_slmg","jam_magazines"};		
	};
};

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{};
	class ukf_infantryWBv: SoldierWB{};
	class ukf_medicWBb: soldierWmedic{};
	class ukf_infantry_radioWBb: ukf_infantryWBb{};
	class ukf_RM_WBb: ukf_infantryWBb
	
	{
		displayName="DPM Marine (SA80)";
		moves="CfgMovesMC";
		nameSound="soldier";
		picture="\ukf_rm\icons\com_rm.paa";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		scope=public;
		side=1;
		sensitivity=1.5;
		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_W556_30mag","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","ukf_Bayonet"};
	PARA_WOUNDS

	class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_rm\scripts\ukf_rm_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;"
			};
	};
	class ukf_rm_WBv: ukf_infantryWBv
	{
		displayName="DPM Marine (Assault Vest)";
		moves="CfgMovesMC";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		picture="\ukf_rm\icons\com_rm.paa";
		nameSound="solider";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.500000;
		nightVision=1;
		camouflage=0.700000;
		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"};
		PARA_WOUNDS
		class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_rm\scripts\ukf_rm_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;"
			};
		
	};
	class ukf_rm_OfficerWBb: ukf_RM_WBb
	{
		displayName="DPM Marine Officer";
		moves="CfgMovesMC";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		nameSound="officer";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.500000;
		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"};
		PARA_WOUNDS

	};
	class ukf_RM_lswWB: ukf_RM_WBb
	{
		displayName="DPM Marine Support (LSW)";
		moves="CfgMovesMC";
		nameSound="machineGunner";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		scope=public;
		side=1;
		sensitivity=1.7;
		accuracy=2.300000;
		nightVision=1;
		camouflage=0.700000;
		weapons[]={"ukf_lsw","Throw","Put"};
		magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag", "handgrenade", "handgrenade"}; 

	};
		class ukf_RM_sawWB: ukf_RM_WBb
	{
		displayName="DPM Marine Support (LMG)";
		moves="CfgMovesMC";
		nameSound="machineGunner";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		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_rm_lawWBb: ukf_rm_WBb
	{
		displayName="DPM Marine (LAW-80)";
		moves="CfgMovesMC";
		nameSound="soldier";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		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_RM_agWBb: ukf_RM_WBb
	{
		displayName="DPM Marine (SA80/UGL)";
		model="\ukf_infantry\ukf_soldier_dpm2";
		moves="CfgMovesMC";
		nameSound="soldier";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		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_rm_gmpgaWBh: ukf_rm_WBb
	{
		displayName="DPM Marine GPMG Gunner"
		moves="CfgMovesMC";
		nameSound="machineGunner";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		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"};

	};
	class ukf_rm_gmpgbWBh: ukf_rm_WBb
	{
		displayName="DPM Marine GPMG Loader"
		moves="CfgMovesMC";
		nameSound="soldier";
		vehicleClass ="UKF British Infantry (Royal Marines)";
		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", "ukf_Bayonet"};

	};
	class ukf_rm_radioWBb: ukf_infantry_radioWBb
	{
	displayName="DPM Marine Radio Operator"
	vehicleClass ="UKF British Infantry (Royal Marines)";
	picture="\ukf_rm\icons\com_rm.paa";
	class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_rm\scripts\ukf_rm_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;"
			};
	};
	class ukf_Rm_medicWBb: ukf_medicWBb
	{
	displayName="DPM Marine Medic"
	vehicleClass ="UKF British Infantry (Royal Marines)";
	class EventHandlers: ECP_EventHandlers 
			{
			Init="[_this select 0, 1] exec ""\ukf_rm\scripts\ukf_rm_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;"
			};
	};

	};
class CfgGroups
{
	class West
	{
	name="$STR_WEST";
	class ukfukgrp
	{
		name="UKF British Infantry (DPM)"
		class ukfrmriflecoydquad
		{
		name="Royal Marines Rifle Squad";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_rm_WBb";
			rank="corporal";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_rm_WBv";
			rank="private";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_rm_lswWB";
			rank="Private";
			position[]={10,0,0};
			};
			class Unit3
			{
			name="4";
			side=1;
			vehicle="ukf_rm_WBv";
			rank="Private";
			position[]={15,0,0};
			};
			class Unit4
			{
			name="5";
			side=1;
			vehicle="ukf_RM_agWBb";
			rank="Private";
			position[]={-15,0,0};
			};
			class Unit5
			{
			name="6";
			side=1;
			vehicle="ukf_rm_lawWbb";
			rank="Private";
			position[]={20,0,0};
			};
			class Unit6
			{
			name="7";
			side=1;
			vehicle="ukf_rm_sawWB";
			rank="Private";
			position[]={-20,0,0};
			};
			class Unit7
			{
			name="8";
			side=1;
			vehicle="ukf_RM_agWBb";
			rank="Private";
			position[]={25,0,0};
			};
		};
	
	class ukfrmrifletrphq
		{
		name="Royal Marines Troop Command Section";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_rm_officerWBb";
			rank="captain";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_rm_medicWBb";
			rank="corporal";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_rm_radioWBb";
			rank="Corporal";
			position[]={10,0,0};
			};
		
		};
	
	class ukfrrfriflecoygp
		{
		name="Royal Marines Rifle Squad (GPMG)";
			class Unit0
			{
			name="1";
			side=1;
			vehicle="ukf_rm_WBb";
			rank="corporal";
			position[]={0,5,0};
			};
			class Unit1
			{
			name="2";
			side=1;
			vehicle="ukf_rm_WBv";
			rank="private";
			position[]={-10,0,0};
			};
			class Unit2
			{
			name="3";
			side=1;
			vehicle="ukf_rm_lswWB";
			rank="Private";
			position[]={10,0,0};
			};
			class Unit3
			{
			name="4";
			side=1;
			vehicle="ukf_rm_WBv";
			rank="Private";
			position[]={15,0,0};
			};
			class Unit4
			{
			name="5";
			side=1;
			vehicle="ukf_rm_WBb";
			rank="Private";
			position[]={-15,0,0};
			};
			class Unit5
			{
			name="6";
			side=1;
			vehicle="ukf_rm_lawWbb";
			rank="Private";
			position[]={20,0,0};
			};
			class Unit6
			{
			name="7";
			side=1;
			vehicle="ukf_rm_sawWB";
			rank="Private";
			position[]={-20,0,0};
			};
			class Unit7
			{
			name="8";
			side=1;
			vehicle="ukf_rm_WBb";
			rank="Private";
			position[]={25,0,0};
			};
			class Unit8
			{
			name="9";
			side=1;
			vehicle="ukf_rm_gmpgaWBh";
			rank="Private";
			position[]={30,0,0};
			};
			class Unit9
			{
			name="10";
			side=1;
			vehicle="ukf_rm_gmpgbWBh";
			rank="Private";
			position[]={-30,0,0};
			};
		};
};
};
