class CfgPatches
{
	class ZGB_TankModels_M1A1
	{
		units[]={};
		weapons[]={};
		requiredVersion=0.114000;
		requiredAddons[]=
		{
			"CATracked",
			"CA_Hotfix",
			"CAData",
			"ZGB_TankModels"
		};
	};
};

class CfgAddons
{
	class PreloadAddons
	{
		class ZGB_TankModels_M1A1
		{
			list[]=
			{
				"ZGB_TankModels_M1A1"
			};
		};
	};
};

class CfgVehicles
{
	class ZGB_Turret;

	class ZGB_M1A1_Turret: ZGB_Turret
	{
		displayName="M1A1 turret";
		model="\ZGB_TankModels\M1A1\models\ZGB_M1A1_Turret";

		class Damage
		{
			tex[]={};
			mat[]=
			{
				"ca\tracked\data\detailmapy\m1_abrams_01_metal.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_01_metal.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_01_metal_destruct.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_02_metal.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_02_metal.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_02_metal_destruct.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_03_metal.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_03_metal.rvmat",
				"ca\tracked\data\detailmapy\m1_abrams_03_metal_destruct.rvmat"
			};
		};
	};

	class LandVehicle;

	class Tank: LandVehicle
	{
		class NewTurret;
		class ViewPilot;
		class Turrets
		{
			class MainTurret: NewTurret
			{
				class Turrets
				{
					class CommanderOptics;
				};
			};
		};
	};

	class M1Abrams: Tank
	{
		model="\ZGB_TankModels\M1A1\models\ZGB_M1A1";
		NWD_ModelEnhancements="true";
		driverOutOpticsModel="";

		class Turrets: Turrets
		{
			class MainTurret: MainTurret
			{
				forceHideGunner=0;
				startengine="false";
				gunnerOpticsModel="\ca\Weapons\optika_empty";
				gunnerOutOpticsModel="";
				maxHorizontalRotSpeed=0.750000;
				maxVerticalRotSpeed=0.450000;
				minElev=-9;
				maxElev=20;

				class ViewOptics
				{
					initFOV=0.128000;
					minFov=0.032000;
					maxFov="1/3";
					initAngleX=0;
					minAngleX=-30;
					maxAngleX=30;
					initAngleY=0;
					minAngleY=-100;
					maxAngleY=100;
				};

				class Turrets: Turrets
				{
					class CommanderOptics: CommanderOptics
					{
						startengine="false";
						gunnerOutOpticsShowCursor=0;
						gunnerOpticsShowCursor=0;
						minElev=-10;
						maxElev=65;
					};
				};
			};
		};

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

		class AnimationSources
		{
			class gunnerFOV
			{
				source="user";
				animPeriod=0.250000;
				initPhase=0.450000;
			};

			class gunLead
			{
				source="user";
				animPeriod=0.010000;
				initPhase=0;
			};

			class gunSuperelevation
			{
				source="user";
				animPeriod=0.010000;
				initPhase=0;
			};

			class sightRingHide
			{
				source="user";
				animPeriod=0.001000;
				initPhase=1;
			};

			class M2_Reload
			{
				source="reload";
				weapon="M2";
			};

			class M256_Recoil
			{
				source="user";
				animPeriod=0.200000;
				initPhase=0;
			};

			class hideTurret
			{
				source="user";
				animPeriod=0;
				initPhase=0;
			};
		};
	};
};
