#include "BasicDefines.hpp"
#include "CrewAnimations.hpp"



class CfgPatches {

	class Trh_Scorp {
		units[] = {"Scorpion","ScorpionD", "Scimitar", "ScimitarUN" ,"ScimitarD"};
		weapons[] = {};
		requiredVersion = 0.100000;
		requiredAddons[] = {CAData, CACharacters,CACharacters2, CAWeapons, CASounds, CATracked,CAwheeled, CATracked2};
	};
};

class CfgFactionClasses {

	class BAOR {
		displayName = "BAOR";
		priority = 1;
		side = 1;
	};
};

class cfgVehicleClasses {

	class RECCE_Tracked_NATO {
		displayName = "Tracked RECCE BAOR";
	};
};






#define mag_xx(a,b) class _xx_##a {magazine = a; count = b;}
#define weap_xx(a,b) class _xx_##a {weapon = a; count = b;}

#define DefaultWestMagazines(x) \
	class TransportMagazines \
	{ \
		mag_xx(30Rnd_556x45_Stanag,30*x); \
		mag_xx(200Rnd_556x45_M249,5*x); \
		mag_xx(HandGrenadeTimed,10*x); \
		mag_xx(5Rnd_762x51_M24,10*x); \
		mag_xx(15rnd_9x19_M9,15*x); \
		mag_xx(M136,3*x); \
		mag_xx(1Rnd_HE_M203,3*x); \
	};
#define DefaultEastMagazines(x) \
	class TransportMagazines \
	{ \
		mag_xx(30Rnd_545x39_AK,30*x); \
		mag_xx(100Rnd_762x54_PK,5*x); \
		mag_xx(8Rnd_9x18_Makarov,20*x); \
		mag_xx(HandGrenade,10*x); \
		mag_xx(10Rnd_762x54_SVD,10*x); \
		mag_xx(PG7VR,3*x); \
		mag_xx(1Rnd_HE_GP25,3*x); \
	};
#define DefaultGuerMagazines(x) \
	class TransportMagazines \
	{ \
		mag_xx(30Rnd_556x45_Stanag,30*x); \
		mag_xx(30Rnd_9x19_MP5,15*x); \
		mag_xx(HandGrenade,10*x); \
		mag_xx(100Rnd_762x51_M240,5*x); \
		mag_xx(15rnd_9x19_M9,15*x); \
		mag_xx(M136,3*x); \
		mag_xx(1Rnd_HE_M203,3*x); \
	};


 class WeaponFireGun;
 class WeaponCloudsGun;
 class WeaponFireMGun;
 class WeaponCloudsMGun;

class CfgVehicles
{
	class Land;
	class LandVehicle: Land
	{
		class NewTurret;
		class ViewOptics;
		class ViewPilot;
		class HeadLimits;
	};





	class Tank: LandVehicle
	{
		driverOpticsModel = "\ca\Tracked\optika_tank_driver";
//		gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
//		commanderOpticsModel = "\ca\Tracked\optika_tank_driver";
		commanderCanSee = 31; //CanSeeEye + CanSeeOptics+CanSeeEar+CanSeeCompass
    		gunnerCanSee = 30;
		class HitHull {armor=1;material=55;name="NEtelo";visual="telo";passThrough=1;}; // disabled selection from model LOD
		class HitLTrack {armor=0.15;material=55;name="pas_L";visual="pas_L";passThrough=0;};
		class HitRTrack {armor=0.15;material=55;name="pas_P";visual="pas_P";passThrough=0;};
		class HitEngine {armor=0.35;material=60;name="motor";visual="motor";passThrough=1;}
		weapons[] = {};
		magazines[] = {};

		class Turrets
		{
			class MainTurret: NewTurret
			{
				gunnerAction = "ManActTestDriverOut";
				gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
				gunnerOutOpticsModel = \ca\Weapons\optika_empty;
				gunBeg = "usti hlavne"; //gunBeg = endpoint of the gun
				gunEnd = "konec hlavne"; //gunEnd = chamber of the gun
				memoryPointsGetInGunner= "pos driver";
				memoryPointsGetInGunnerDir= "pos driver dir";
				viewGunnerInExternal = true;
				animationSourceHatch = "hatchgunner";
				startEngine = True;
				
				class HitTurret {armor=1;material=55;name="vez";visual="vez";passThrough=1;};
				class HitGun {armor=0.3;material=55;name="zbran";visual="zbran";passThrough=0;};

				class Turrets
				{
					class CommanderOptics: NewTurret
					{
						proxyType = CPCommander;
						proxyIndex = 1;
						gunnerName = $STR_POSITION_COMMANDER;
						primaryGunner = 0;
						primaryObserver = 1;

						body = "obsTurret";
						gun = "obsGun";
						animationSourceBody = "obsTurret";
						animationSourceGun = "obsGun";
						animationSourceHatch = "hatchCommander";
						//startEngine = True;
						//Not a very nice solution:
						soundServo[] = {"", db-50, 1.0};

						gunBeg = ""; //gunBeg = endpoint of the gun
						gunEnd = ""; //gunEnd = chamber of the gun

						minElev=-3; maxElev=+20; initElev=+10;
						minTurn=-360; maxTurn=+360; initTurn=0;
						commanding = 2;
						outGunnerMayFire = true;
						inGunnerMayFire = true;
						viewGunnerInExternal = 0;
						gunnerOpticsModel = "\ca\Tracked\optika_tank_driver";
						gunnerOutOpticsModel = \ca\Weapons\optika_empty;
						gunnerOutOpticsColor[] = {0, 0, 0, 1};
						gunnerOutForceOptics = false;
						gunnerOutOpticsShowCursor = false;
						memoryPointGunnerOutOptics = "commander_weapon_view";
						memoryPointGunnerOptics= "commanderview";
						memoryPointsGetInGunner= "pos driver";
						memoryPointsGetInGunnerDir= "pos driver dir";
						memoryPointGun = "gun_muzzle";
						selectionFireAnim = "zasleh_1";
						class ViewOptics
						{
							initAngleX=0; minAngleX=-30; maxAngleX=+30;
							initAngleY=0; minAngleY=-100; maxAngleY=+100;
							initFov=0.42; minFov=0.22; maxFov=0.64;
						};
						class ViewGunner
						{
							initAngleX=5; minAngleX=-30; maxAngleX=+30;
							initAngleY=0; minAngleY=0; maxAngleY=0;
							initFov=0.42; minFov=0.22; maxFov=0.64;
						};
					};
				};
			};
		};
		soundCrash[] = {"\ca\Tracked\Data\Sound\crash2", db30, 1};
		soundDammage[] = {"\ca\Tracked\Data\Sound\alarm_loop1", db+0, 1};
		getInAction = GetInLow;
		getOutAction = GetOutLow;
		supplyRadius = 3.5;
		class ViewOptics: ViewOptics
		{
			initAngleX=0; minAngleX=-30; maxAngleX=+30;
			initAngleY=0; minAngleY=-100; maxAngleY=+100;
			initFov=0.9; minFov=0.9; maxFov=0.9;
		};
	};










	class Scorpion: Tank {


		scope = 2;
		displayName = "Scorpion";
		vehicleClass = "RECCE_Tracked_NATO";
		side = 1;
		faction = "BAOR";
		model = "\Trh_SCORP\Scorpion";
		picture = "\ca\tracked\Data\ico\M1_abrams_CA.paa";
		Icon = "\Ca\tracked\Data\map_ico\icomap_m1a1_CA.paa";
		mapSize = 11;
		forceHideGunner =false;
		crew = "BAF_CREWMAN_W";
		nameSound = "Tank";
		accuracy = 0.90;
		brakeDistance = 20;
		laserScanner = true;
		irScanRangeMin = 1000;
		irScanRangeMax = 5000;
		DefaultEastMagazines(1);
		getInRadius = 3.500000;
		sensitivity = 3.500000;
		armor = 300;
		armorStructural = 3;
		damageResistance = 0.012000;
		cost = 1000000;
		maxSpeed = 72;
		driverOpticsModel = "\TRH_SCORP\optika_tank_driver1.p3d";

		class HitHull {
			armor = 0.850000;
			material = 55;
			name = "telo";
			visual = "telo";
			passThrough = 1;
		};
		driverForceOptics = 1;




		class Exhausts {

			class Exhaust1 {
				position = "vyfuk start";
				direction = "vyfuk konec";
				effect = "ExhaustsEffectBig";
			};

			class Exhaust2 {
				position = "vyfuk start2";
				direction = "vyfuk konec2";
				effect = "ExhaustsEffectBig";
			};

			
		};



		soundEngine[]={"\Trh_SCORP\data\Sound\SCORP_eng2.wav",1, 1, 600};	
		//soundEngineOnExt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 600};
		//soundEngineOnInt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 400};
		//soundEngineOffExt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 600};
		//soundEngineOffInt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 400};
		soundGetOut[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		soundGetIn[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		insideSoundCoef = 0.9;
		typicalCargo[]={SoldierWCrew,SoldierWCrew,SoldierWCrew,SoldierWCrew};

		class Turrets {

			class MainTurret: NewTurret {
				gunnerAction = "Abrams_CommanderOut";
				gunnerInAction = "Abrams_Commander";
				gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
				forceHideGunner = 0;
				startEngine = 1;
				threat = [] {1, 1, 0.300000};
				lockWhenDriverOut = 0;
				gunBeg = "usti hlavne";
				gunEnd = "konec hlavne";
				weapons[] = {ZiS_S_53,M240_veh};
				magazines[] = {10Rnd_85mmAP, 33Rnd_85mmHE, 1200Rnd_762x51_M240};
				memoryPointsGetInGunner = "pos driver";
				memoryPointsGetInGunnerDir = "pos driver dir";
				memoryPointGunnerOutOptics = "gunnerviewOut";
				memoryPointGunnerOptics = "gunnerview";
				viewGunnerInExternal = 1;
				maxHorizontalRotSpeed = 0.750000;
				maxVerticalRotSpeed = 0.450000;
				minElev = -8;
				maxElev = 20;
				initElev =10;
				primaryGunner = 1;
				primaryObserver =0;
				animationSourceHatch = "hatchgunner";

				class OpticsIn {
					class Wide {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.155;
						minFov = 0.155;
						maxFov = 0.155;
						visionMode[] = {"Normal", NVG, "Ti"};
						thermalMode[] = {2, 3};
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1";
						gunnerOpticsEffect[] = {};
					};
					class Narrow: Wide {
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1_2";
						initFov = 0.047000;
						minFov = 0.047000;
						maxFov = 0.047000;
					};
					};

				class ViewOptics
				



				{
					initAngleX=0; minAngleX=-30; maxAngleX=+30;
					initAngleY=0; minAngleY=-100; maxAngleY=+100;
					initFov=0.166; minFov=0.025; maxFov=0.333;
				};

				

				class Turrets {

					class CommanderOptics: NewTurret {
						proxyType = "CPCommander";
						proxyIndex = 1;
						gunnerName = "Commander";
						primaryGunner = 0;
						primaryObserver = 1;
						body = "obsTurret";
						gunnerAction = "Abrams_CommanderOut";
						gunnerInAction = "Abrams_Commander";
						soundServo = {"", 0.003162, 1.000000};
						animationSourceBody = "obsTurret";
						animationSourceGun = "obsGun";
						animationSourceHatch = "hatchCommander";
						startEngine = True;
						minElev = -4;
						maxElev = 20;
						initElev = 0;
						minTurn = -45;
						maxTurn = 45;
						initTurn = 0;
						commanding = 1;
						//outGunnerMayFire = 1;
						inGunnerMayFire = 1;
						viewGunnerInExternal = 0;
						gunnerOpticsModel = "\ca\Tracked\optika_M1A1_commander";
						gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
						memoryPointGunnerOutOptics = "commander_weapon_view";
						memoryPointGunnerOptics = "commanderview";
						memoryPointsGetInGunner = "pos driver";
						memoryPointsGetInGunnerDir = "pos driver dir";
						

						class ViewOptics : ViewOptics {
							visionMode[] = {"Normal", NVG, "Ti"};
							thermalMode[] = {2, 3};
						};

						
					};

				};
			};
		};



		driverAction = "Abrams_DriverOut";
		driverInAction = "Abrams_Driver";
		threat = []{1, 1, 0.300000};
		
		class Damage {
			tex[] = {};
			mat[] = {"trh_scorp\date\Trb_Ch1_hull.rvmat"};
		};

		class Library {
			libTextDesc = "$STR_LIB_M1A1";
		};
	};












class ScorpionD: Tank {


		scope = 2;
		displayName = "ScorpionD";
		vehicleClass = "RECCE_Tracked_NATO";
		side = 1;
		faction = "BAOR";
		model = "\Trh_SCORP\ScorpionD";
		picture = "\ca\tracked\Data\ico\M1_abrams_CA.paa";
		Icon = "\Ca\tracked\Data\map_ico\icomap_m1a1_CA.paa";
		mapSize = 11;
		forceHideGunner =false;
		crew = "BAF_crewman_MTP";
		nameSound = "Tank";
		accuracy = 0.90;
		brakeDistance = 20;
		laserScanner = true;
		irScanRangeMin = 1000;
		irScanRangeMax = 5000;
		DefaultEastMagazines(1);
		getInRadius = 3.500000;
		sensitivity = 3.500000;
		armor = 300;
		armorStructural = 3;
		damageResistance = 0.012000;
		cost = 1000000;
		maxSpeed = 72;
		driverOpticsModel = "\TRH_SCORP\optika_tank_driver1.p3d";

		class HitHull {
			armor = 0.850000;
			material = 55;
			name = "telo";
			visual = "telo";
			passThrough = 1;
		};
		driverForceOptics = 1;




		class Exhausts {

			class Exhaust1 {
				position = "vyfuk start";
				direction = "vyfuk konec";
				effect = "ExhaustsEffectBig";
			};

			class Exhaust2 {
				position = "vyfuk start2";
				direction = "vyfuk konec2";
				effect = "ExhaustsEffectBig";
			};

			
		};



		soundEngine[]={"\Trh_SCORP\data\Sound\SCORP_eng2.wav",1, 1, 600};	
		//soundEngineOnExt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 600};
		//soundEngineOnInt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 400};
		//soundEngineOffExt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 600};
		//soundEngineOffInt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 400};
		soundGetOut[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		soundGetIn[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		insideSoundCoef = 0.9;
		typicalCargo[]={SoldierWCrew,SoldierWCrew,SoldierWCrew,SoldierWCrew};

		class Turrets {

			class MainTurret: NewTurret {
				gunnerAction = "Abrams_CommanderOut";
				gunnerInAction = "Abrams_Commander";
				gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
				forceHideGunner = 0;
				startEngine = 1;
				threat = []{1, 1, 0.300000};
				lockWhenDriverOut = 0;
				gunBeg = "usti hlavne";
				gunEnd = "konec hlavne";
				weapons[] = {ZiS_S_53,M240_veh};
				magazines[] = {10Rnd_85mmAP, 33Rnd_85mmHE, 1200Rnd_762x51_M240};
				memoryPointsGetInGunner = "pos driver";
				memoryPointsGetInGunnerDir = "pos driver dir";
				memoryPointGunnerOutOptics = "gunnerviewOut";
				memoryPointGunnerOptics = "gunnerview";
				viewGunnerInExternal = 1;
				maxHorizontalRotSpeed = 0.750000;
				maxVerticalRotSpeed = 0.450000;
				minElev = -8;
				maxElev = 20;
				initElev =10;
				primaryGunner = 1;
				primaryObserver =0;
				animationSourceHatch = "hatchgunner";

				class OpticsIn {
					class Wide {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.155;
						minFov = 0.155;
						maxFov = 0.155;
						visionMode[] = {"Normal", NVG, "Ti"};
						thermalMode[] = {2, 3};
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1";
						gunnerOpticsEffect[] = {};
					};
					class Narrow: Wide {
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1_2";
						initFov = 0.047000;
						minFov = 0.047000;
						maxFov = 0.047000;
					};
					};

				class ViewOptics
				



				{
					initAngleX=0; minAngleX=-30; maxAngleX=+30;
					initAngleY=0; minAngleY=-100; maxAngleY=+100;
					initFov=0.166; minFov=0.025; maxFov=0.333;
				};

				

				class Turrets {

					class CommanderOptics: NewTurret {
						proxyType = "CPCommander";
						proxyIndex = 1;
						gunnerName = "Commander";
						primaryGunner = 0;
						primaryObserver = 1;
						body = "obsTurret";
						gunnerAction = "Abrams_CommanderOut";
						gunnerInAction = "Abrams_Commander";
						soundServo = {"", 0.003162, 1.000000};
						animationSourceBody = "obsTurret";
						animationSourceGun = "obsGun";
						animationSourceHatch = "hatchCommander";
						startEngine = True;
						minElev = -4;
						maxElev = 20;
						initElev = 0;
						minTurn = -45;
						maxTurn = 45;
						initTurn = 0;
						commanding = 1;
						//outGunnerMayFire = 1;
						inGunnerMayFire = 1;
						viewGunnerInExternal = 0;
						gunnerOpticsModel = "\ca\Tracked\optika_M1A1_commander";
						gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
						memoryPointGunnerOutOptics = "commander_weapon_view";
						memoryPointGunnerOptics = "commanderview";
						memoryPointsGetInGunner = "pos driver";
						memoryPointsGetInGunnerDir = "pos driver dir";
						

						class ViewOptics : ViewOptics {
							visionMode[] = {"Normal", NVG, "Ti"};
							thermalMode[] = {2, 3};
						};

						
					};

				};
			};
		};



		driverAction = "Abrams_DriverOut";
		driverInAction = "Abrams_Driver";
		threat = []{1, 1, 0.300000};
		
		class Damage {
			tex[] = {};
			mat[] = {"trh_scorp\date\Trb_Ch1_hull.rvmat"};
		};

		class Library {
			libTextDesc = "$STR_LIB_M1A1";
		};
	};





























class Scimitar: Scorpion {


		scope = 2;
		displayName = "Scimitar";
		vehicleClass = "RECCE_Tracked_NATO";
		side = 1;
		faction = "BAOR";
		model = "\Trh_SCORP\Scimitar";
		picture = "\ca\tracked\Data\ico\M1_abrams_CA.paa";
		Icon = "\Ca\tracked\Data\map_ico\icomap_m1a1_CA.paa";
		mapSize = 11;
		forceHideGunner =false;
		crew = "BAF_CREWMAN_W";
		nameSound = "Tank";
		accuracy = 0.90;
		brakeDistance = 20;
		laserScanner = true;
		irScanRangeMin = 1000;
		irScanRangeMax = 5000;
		getInRadius = 3.500000;
		sensitivity = 3.500000;
		armor = 300;
		armorStructural = 3;
		damageResistance = 0.012000;
		cost = 1000000;
		maxSpeed = 72;
		acceleration =70;
		driverOpticsModel = "\TRH_SCORP\optika_tank_driver1.p3d";

		class HitHull {
			armor = 0.850000;
			material = 55;
			name = "telo";
			visual = "telo";
			passThrough = 1;
		};
		driverForceOptics = 1;




		class Exhausts {

			class Exhaust1 {
				position = "vyfuk start";
				direction = "vyfuk konec";
				effect = "ExhaustsEffectBig";
			};

			class Exhaust2 {
				position = "vyfuk start2";
				direction = "vyfuk konec2";
				effect = "ExhaustsEffectBig";
			};

			
		};



		soundEngine[]={"\Trh_SCORP\data\Sound\SCORP_eng2.wav",1, 1, 600};	
		//soundEngineOnExt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 600};
		//soundEngineOnInt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 400};
		//soundEngineOffExt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 600};
		//soundEngineOffInt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 400};
		soundGetOut[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		soundGetIn[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		insideSoundCoef = 0.9;
		typicalCargo[]={SoldierWCrew,SoldierWCrew,SoldierWCrew,SoldierWCrew};

		class Turrets {

			class MainTurret: NewTurret {
				gunnerAction = "Abrams_CommanderOut";
				gunnerInAction = "Abrams_Commander";
				gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
				forceHideGunner = 0;
				startEngine = 1;
				threat = []{1, 1, 0.300000};
				lockWhenDriverOut = 0;
				gunBeg = "usti hlavne";
				gunEnd = "konec hlavne";
				weapons[] = {2A42,M240_veh};
				magazines[] = {250Rnd_30mmHE_2A42,250Rnd_30mmAP_2A42, 1200Rnd_762x51_M240};
				memoryPointsGetInGunner = "pos driver";
				memoryPointsGetInGunnerDir = "pos driver dir";
				memoryPointGunnerOutOptics = "gunnerview";
				memoryPointGunnerOptics = "gunnerview";
				viewGunnerInExternal = 1;
				maxHorizontalRotSpeed = 0.750000;
				maxVerticalRotSpeed = 0.450000;
				minElev = -8;
				maxElev = 20;
				initElev =10;
				primaryGunner = 1;
				primaryObserver =0;
				animationSourceHatch = "hatchgunner";
				DefaultEastMagazines(1);

				class OpticsIn {
					class Wide {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.155;
						minFov = 0.155;
						maxFov = 0.155;
						visionMode[] = {"Normal", NVG, "Ti"};
						thermalMode[] = {2, 3};
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1";
						gunnerOpticsEffect[] = {};
					};
					class Narrow: Wide {
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1_2";
						initFov = 0.047000;
						minFov = 0.047000;
						maxFov = 0.047000;
					};
					};

				class ViewOptics
				



				{
					initAngleX=0; minAngleX=-30; maxAngleX=+30;
					initAngleY=0; minAngleY=-100; maxAngleY=+100;
					initFov=0.166; minFov=0.025; maxFov=0.333;
				};

				

				class Turrets {

					class CommanderOptics: NewTurret {
						proxyType = "CPCommander";
						proxyIndex = 1;
						gunnerName = "Commander";
						primaryGunner = 0;
						primaryObserver = 1;
						body = "obsTurret";
						gunnerAction = "Abrams_CommanderOut";
						gunnerInAction = "Abrams_Commander";
						soundServo = {"", 0.003162, 1.000000};
						animationSourceBody = "obsTurret";
						animationSourceGun = "obsGun";
						animationSourceHatch = "hatchCommander";
						startEngine = True;
						minElev = -4;
						maxElev = 20;
						initElev = 0;
						minTurn = -45;
						maxTurn = 45;
						initTurn = 0;
						commanding = 1;
						//outGunnerMayFire = 1;
						inGunnerMayFire = 1;
						viewGunnerInExternal = 0;
						gunnerOpticsModel = "\ca\Tracked\optika_M1A1_commander";
						gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
						memoryPointGunnerOutOptics = "commander_weapon_view";
						memoryPointGunnerOptics = "commanderview";
						memoryPointsGetInGunner = "pos driver";
						memoryPointsGetInGunnerDir = "pos driver dir";
						

						class ViewOptics : ViewOptics {
							visionMode[] = {"Normal", NVG, "Ti"};
							thermalMode[] = {2, 3};
						};

						
					};

				};
			};
		};



		driverAction = "Abrams_DriverOut";
		driverInAction = "Abrams_Driver";
		threat = []{1, 1, 0.300000};
		
		class Damage {
			tex[] = {};
			mat[] = {"trh_scorp\date\Trb_Ch1_hull.rvmat"};
		};

		class Library {
			libTextDesc = "$STR_LIB_M1A1";
		};
	};





class ScimitarD: Scorpion {


		scope = 2;
		displayName = "ScimitarD";
		vehicleClass = "RECCE_Tracked_NATO";
		side = 1;
		faction = "BAOR";
		model = "\Trh_SCORP\ScimitarD";
		picture = "\ca\tracked\Data\ico\M1_abrams_CA.paa";
		Icon = "\Ca\tracked\Data\map_ico\icomap_m1a1_CA.paa";
		mapSize = 11;
		forceHideGunner =false;
		crew = "BAF_crewman_MTP";
		nameSound = "Tank";
		accuracy = 0.90;
		brakeDistance = 20;
		laserScanner = true;
		irScanRangeMin = 1000;
		irScanRangeMax = 5000;
		getInRadius = 3.500000;
		sensitivity = 3.500000;
		armor = 300;
		armorStructural = 3;
		damageResistance = 0.012000;
		cost = 1000000;
		maxSpeed = 72;
		acceleration =70;
		driverOpticsModel = "\TRH_SCORP\optika_tank_driver1.p3d";

		class HitHull {
			armor = 0.850000;
			material = 55;
			name = "telo";
			visual = "telo";
			passThrough = 1;
		};
		driverForceOptics = 1;




		class Exhausts {

			class Exhaust1 {
				position = "vyfuk start";
				direction = "vyfuk konec";
				effect = "ExhaustsEffectBig";
			};

			class Exhaust2 {
				position = "vyfuk start2";
				direction = "vyfuk konec2";
				effect = "ExhaustsEffectBig";
			};

			
		};



		soundEngine[]={"\Trh_SCORP\data\Sound\SCORP_eng2.wav",1, 1, 600};	
		//soundEngineOnExt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 600};
		//soundEngineOnInt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 400};
		//soundEngineOffExt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 600};
		//soundEngineOffInt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 400};
		soundGetOut[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		soundGetIn[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		insideSoundCoef = 0.9;
		typicalCargo[]={SoldierWCrew,SoldierWCrew,SoldierWCrew,SoldierWCrew};

		class Turrets {

			class MainTurret: NewTurret {
				gunnerAction = "Abrams_CommanderOut";
				gunnerInAction = "Abrams_Commander";
				gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
				forceHideGunner = 0;
				startEngine = 1;
				threat =[] {1, 1, 0.300000};
				lockWhenDriverOut = 0;
				gunBeg = "usti hlavne";
				gunEnd = "konec hlavne";
				weapons[] = {2A42,M240_veh};
				magazines[] = {250Rnd_30mmHE_2A42,250Rnd_30mmAP_2A42, 1200Rnd_762x51_M240};
				memoryPointsGetInGunner = "pos driver";
				memoryPointsGetInGunnerDir = "pos driver dir";
				memoryPointGunnerOutOptics = "gunnerview";
				memoryPointGunnerOptics = "gunnerview";
				viewGunnerInExternal = 1;
				maxHorizontalRotSpeed = 0.750000;
				maxVerticalRotSpeed = 0.450000;
				minElev = -8;
				maxElev = 20;
				initElev =10;
				primaryGunner = 1;
				primaryObserver =0;
				animationSourceHatch = "hatchgunner";
				DefaultEastMagazines(1);

				class OpticsIn {
					class Wide {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.155;
						minFov = 0.155;
						maxFov = 0.155;
						visionMode[] = {"Normal", NVG, "Ti"};
						thermalMode[] = {2, 3};
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1";
						gunnerOpticsEffect[] = {};
					};
					class Narrow: Wide {
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1_2";
						initFov = 0.047000;
						minFov = 0.047000;
						maxFov = 0.047000;
					};
					};

				class ViewOptics
				



				{
					initAngleX=0; minAngleX=-30; maxAngleX=+30;
					initAngleY=0; minAngleY=-100; maxAngleY=+100;
					initFov=0.166; minFov=0.025; maxFov=0.333;
				};

				

				class Turrets {

					class CommanderOptics: NewTurret {
						proxyType = "CPCommander";
						proxyIndex = 1;
						gunnerName = "Commander";
						primaryGunner = 0;
						primaryObserver = 1;
						body = "obsTurret";
						gunnerAction = "Abrams_CommanderOut";
						gunnerInAction = "Abrams_Commander";
						soundServo = {"", 0.003162, 1.000000};
						animationSourceBody = "obsTurret";
						animationSourceGun = "obsGun";
						animationSourceHatch = "hatchCommander";
						startEngine = True;
						minElev = -4;
						maxElev = 20;
						initElev = 0;
						minTurn = -45;
						maxTurn = 45;
						initTurn = 0;
						commanding = 1;
						//outGunnerMayFire = 1;
						inGunnerMayFire = 1;
						viewGunnerInExternal = 0;
						gunnerOpticsModel = "\ca\Tracked\optika_M1A1_commander";
						gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
						memoryPointGunnerOutOptics = "commander_weapon_view";
						memoryPointGunnerOptics = "commanderview";
						memoryPointsGetInGunner = "pos driver";
						memoryPointsGetInGunnerDir = "pos driver dir";
						

						class ViewOptics : ViewOptics {
							visionMode[] = {"Normal", NVG, "Ti"};
							thermalMode[] = {2, 3};
						};

						
					};

				};
			};
		};



		driverAction = "Abrams_DriverOut";
		driverInAction = "Abrams_Driver";
		threat = []{1, 1, 0.300000};
		
		class Damage {
			tex[] = {};
			mat[] = {"trh_scorp\date\Trb_Ch1_hull.rvmat"};
		};

		class Library {
			libTextDesc = "$STR_LIB_M1A1";
		};
	};


















class ScimitarUN: Scorpion {


		scope = 2;
		displayName = "ScimitarUN";
		vehicleClass = "RECCE_Tracked_NATO";
		side = 1;
		faction = "BAOR";
		model = "\Trh_SCORP\ScimitarUN";
		picture = "\ca\tracked\Data\ico\M1_abrams_CA.paa";
		Icon = "\Ca\tracked\Data\map_ico\icomap_m1a1_CA.paa";
		mapSize = 11;
		forceHideGunner =false;
		crew = "BAF_CREWMAN_W";
		nameSound = "Tank";
		accuracy = 0.90;
		brakeDistance = 20;
		laserScanner = true;
		irScanRangeMin = 1000;
		irScanRangeMax = 5000;
		getInRadius = 3.500000;
		sensitivity = 3.500000;
		armor = 300;
		armorStructural = 3;
		damageResistance = 0.012000;
		cost = 1000000;
		maxSpeed = 72;
		acceleration =70;
		driverOpticsModel = "\TRH_SCORP\optika_tank_driver1.p3d";

		class HitHull {
			armor = 0.850000;
			material = 55;
			name = "telo";
			visual = "telo";
			passThrough = 1;
		};
		driverForceOptics = 1;




		class Exhausts {

			class Exhaust1 {
				position = "vyfuk start";
				direction = "vyfuk konec";
				effect = "ExhaustsEffectBig";
			};

			class Exhaust2 {
				position = "vyfuk start2";
				direction = "vyfuk konec2";
				effect = "ExhaustsEffectBig";
			};

			
		};



		soundEngine[]={"\Trh_SCORP\data\Sound\SCORP_eng2.wav",1, 1, 600};	
		//soundEngineOnExt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 600};
		//soundEngineOnInt[] = {"\Trh_SCORP\DATA\SOUND\start.wav", 1, 1, 400};
		//soundEngineOffExt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 600};
		//soundEngineOffInt[] = {"\Trh_SCORP\DATA\SOUND\stop_loop1.wav", 1, 1, 400};
		soundGetOut[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		soundGetIn[]={\ca\Tracked\Data\Sound\tank_door,db-40,1};
		insideSoundCoef = 0.9;
		typicalCargo[]={SoldierWCrew,SoldierWCrew,SoldierWCrew,SoldierWCrew};

		class Turrets {

			class MainTurret: NewTurret {
				gunnerAction = "Abrams_CommanderOut";
				gunnerInAction = "Abrams_Commander";
				gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
				forceHideGunner = 0;
				startEngine = 1;
				threat =[] {1, 1, 0.300000};
				lockWhenDriverOut = 0;
				gunBeg = "usti hlavne";
				gunEnd = "konec hlavne";
				weapons[] = {2A42,M240_veh};
				magazines[] = {250Rnd_30mmHE_2A42,250Rnd_30mmAP_2A42, 1200Rnd_762x51_M240};
				memoryPointsGetInGunner = "pos driver";
				memoryPointsGetInGunnerDir = "pos driver dir";
				memoryPointGunnerOutOptics = "gunnerview";
				memoryPointGunnerOptics = "gunnerview";
				viewGunnerInExternal = 1;
				maxHorizontalRotSpeed = 0.750000;
				maxVerticalRotSpeed = 0.450000;
				minElev = -8;
				maxElev = 20;
				initElev =10;
				primaryGunner = 1;
				primaryObserver =0;
				animationSourceHatch = "hatchgunner";
				DefaultEastMagazines(1);

				class OpticsIn {
					class Wide {
						initAngleX = 0;
						minAngleX = -30;
						maxAngleX = 30;
						initAngleY = 0;
						minAngleY = -100;
						maxAngleY = 100;
						initFov = 0.155;
						minFov = 0.155;
						maxFov = 0.155;
						visionMode[] = {"Normal", NVG, "Ti"};
						thermalMode[] = {2, 3};
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1";
						gunnerOpticsEffect[] = {};
					};
					class Narrow: Wide {
						gunnerOpticsModel = "CA\Tracked_E\gunnerOptics_M1A1_2";
						initFov = 0.047000;
						minFov = 0.047000;
						maxFov = 0.047000;
					};
					};

				class ViewOptics
				



				{
					initAngleX=0; minAngleX=-30; maxAngleX=+30;
					initAngleY=0; minAngleY=-100; maxAngleY=+100;
					initFov=0.166; minFov=0.025; maxFov=0.333;
				};

				

				class Turrets {

					class CommanderOptics: NewTurret {
						proxyType = "CPCommander";
						proxyIndex = 1;
						gunnerName = "Commander";
						primaryGunner = 0;
						primaryObserver = 1;
						body = "obsTurret";
						gunnerAction = "Abrams_CommanderOut";
						gunnerInAction = "Abrams_Commander";
						soundServo = {"", 0.003162, 1.000000};
						animationSourceBody = "obsTurret";
						animationSourceGun = "obsGun";
						animationSourceHatch = "hatchCommander";
						startEngine = True;
						minElev = -4;
						maxElev = 20;
						initElev = 0;
						minTurn = -45;
						maxTurn = 45;
						initTurn = 0;
						commanding = 1;
						//outGunnerMayFire = 1;
						inGunnerMayFire = 1;
						viewGunnerInExternal = 0;
						gunnerOpticsModel = "\ca\Tracked\optika_M1A1_commander";
						gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
						memoryPointGunnerOutOptics = "commander_weapon_view";
						memoryPointGunnerOptics = "commanderview";
						memoryPointsGetInGunner = "pos driver";
						memoryPointsGetInGunnerDir = "pos driver dir";
						

						class ViewOptics : ViewOptics {
							visionMode[] = {"Normal", NVG, "Ti"};
							thermalMode[] = {2, 3};
						};

						
					};

				};
			};
		};



		driverAction = "Abrams_DriverOut";
		driverInAction = "Abrams_Driver";
		threat = []{1, 1, 0.300000};
		
		class Damage {
			tex[] = {};
			mat[] = {"trh_scorp\date\Trb_Ch1_hull.rvmat"};
		};

		class Library {
			libTextDesc = "$STR_LIB_M1A1";
		};
	};

































};
