class FDustEffects_none {};

class CfgPatches
{
	class JSDF_VLA_90TK
	{
		units[] = {"JGSDF_VLA_90TK"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};
};
class CfgVehicles
{
	class Land;
	class LandVehicle 			: Land
	{
		class NewTurret;
		class ViewPilot;
		class Sounds;
	};
	class JSDF_VLA	 			: LandVehicle
	{
		class Turrets			{class MainTurret;};
		class NewTurret;
		class ViewPilot;
		class CommanderOptics;
		class AnimationSources;
		
		class Sounds : Sounds
		{
			class Engine;
			class Movement;
		};
		class HitPoints
		{
			class HitHull;
			class HitEngine;
			class HitLTrack;
			class HitRTrack;
		};
	};
	class JSDF_VLA_90TK_Base		: JSDF_VLA
	{
		scope 				= 2;
		faction 			= JGSDF;
		displayName 			= "Type90 TK";
		model 				= "\JSDF_VLA\90TK\JGSDF_Type90TK_2";
		picture 			= "\ca\tracked2\Data\UI\Picture_t34_CA.paa";
		Icon 				= "\ca\tracked2\Data\UI\Icon_t34_CA.paa";
		mapSize 			= 7;

		driverForceOptics 		= 1;
		driverAction 			= "T90_Driver";
		driverInAction 			= "T90_Driver";

		tracksSpeed 			= 2.5;
		wheelCircumference 		= 4.0;

		maxSpeed 			= 70;
		accuracy 			= 0.8;
		armor 				= 900;
		damageResistance 		= 0.005;
		cost 				= 1500000;
		
		class HitPoints : HitPoints
		{
			class HitHull	{armor = 0.85;	material = -1;	name = "telo";	visual= "telo";		passThrough 	= 1;	};
		};

//		typicalCargo[] = {"GUE_Soldier_1", "GUE_Soldier_1", "GUE_Soldier_1"};

		class Turrets			: Turrets
		{
			class 90TK_Turret 		: MainTurret
			{
				viewGunnerInExternal		= 1;
				weapons[]			={JSDF_W_TKG_L44,JSDF_MG_Type74_coax};
				magazines[]			=
				{
JSDF_M_TKG_120mm_JM33_APFSDS_T,		JSDF_M_TKG_120mm_JM33_APFSDS_T,		JSDF_M_TKG_120mm_JM33_APFSDS_T,		JSDF_M_TKG_120mm_JM33_APFSDS_T,
JSDF_M_TKG_120mm_JM33_APFSDS_T,		JSDF_M_TKG_120mm_JM33_APFSDS_T,		JSDF_M_TKG_120mm_JM33_APFSDS_T,		JSDF_M_TKG_120mm_JM33_APFSDS_T,
JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,	JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,	JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,	JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,
JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,	JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,	JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,	JSDF_M_TKG_120mm_JM12A1_HEAT_MP_T,
				4500Rnd_7_62x51_M13
				};
				class Turrets		: Turrets
				{
					class CommanderOptics		: NewTurret
					{
						animationSourceBody 		="CommanderTurret";
						animationSourceGun 		="CommanderGun";
						animationSourceHatch 		="CommanderHatch";

						gunnerCompartments		="Compartment2";
						proxyType 			= "CPCommander";
						proxyIndex 			= 1;
						gunnerName 			= $STR_POSITION_COMMANDER;
						commanding 			= 2;
						primaryGunner 			= 0;
						primaryObserver 		= 1;
						viewGunnerInExternal 		= 1;
						startEngine 			= 0;
						outGunnerMayFire 		= 1;
						inGunnerMayFire 		= 1;
						weapons[] 			= {KORD, "SmokeLauncher"};
						magazines[] 			= {"150Rnd_127x108_KORD", "150Rnd_127x108_KORD", "150Rnd_127x108_KORD", "150Rnd_127x108_KORD", "SmokeLauncherMag", "SmokeLauncherMag"};

//						body				="turretC";
//						gun				="turretC_view";
						gunBeg 				= "gun_muzzle";
						gunEnd 				= "gun_chamber";
						memoryPointGun 			= "gun_muzzle";
						selectionFireAnim 		= "zasleh_1";
						soundServo[] 			= {"\ca\Weapons\Data\Sound\gun_elevate2", 0.00316228, 1.0};
						minElev= -10; maxElev= +10; initElev=0;
						minTurn= -90; maxTurn= +90; initTurn=0;

						gunnerAction = "T90_CommanderOut";
						gunnerInAction = "T90_Commander";
						gunnerGetInAction = "GetInMedium";
						gunnerGetOutAction = "GetOutMedium";
						memoryPointsGetInGunner = "pos commander";
						memoryPointsGetInGunnerDir = "pos commander dir";


						gunnerOpticsModel = "\ca\weapons\2Dscope_Metis.p3d";
						gunnerOpticsEffect[] = {"TankCommanderOptics1"};
						gunnerOutOpticsModel = "\ca\Weapons\optika_empty";
						gunnerOutOpticsEffect[] = {};
						gunnerOutOpticsColor[] = {0, 0, 0, 1};
						gunnerOutForceOptics = 0;
						gunnerOutOpticsShowCursor = 0;
						memoryPointGunnerOptics	="turretC_view";
						memoryPointGunnerOutOptics = "CommanderViewOut";

						
						class ViewOptics {
							initAngleX = 0;
							minAngleX = -30;
							maxAngleX = 30;
							initAngleY = 0;
							minAngleY = -100;
							maxAngleY = 100;
							initFov = 0.466;
							minFov = 0.029;
							maxFov = 0.466;
						};
						
						class ViewGunner {
							initAngleX = 5;
							minAngleX = -65;
							maxAngleX = 85;
							initAngleY = 0;
							minAngleY = -150;
							maxAngleY = 150;
							initFov = 0.7;
							minFov = 0.25;
							maxFov = 1.1;
						};
					};
				};
			};
		};
		type = 1;
		threat[] = {0.4, 0.4, 0.0};

		class AnimationSources
		{
			class mainGun_recoil
			{
				source="user";
				animPeriod 	=0.5;
				initPhase	=0.01;
			};
			class obsGun_recoil
			{
				source="reload";
				weapon="M2";
			};
			class belt_rotation
			{
				source="reload";
				weapon="M2";
			};
		};
		
		class Damage {
			tex[] = {};
			mat[] = {};
		};
	};
};
