class CfgSkeletons 
{ 
	class Default 
	{
		isDiscrete = 1;
		skeletonInherit = "";
		skeletonBones[] = {};
	};
	class Vehicle: Default {};
	class TankBase: Vehicle 
	{
		skeletonInherit = "Vehicle";
		skeletonBones[] = {
			"kolL1","",
			"kolL2","",
			"kolL3","",
			"kolL4","",
			"kolL5","",
			"kolL6","",
			"kolL7","",
			"kolL8","",
			"kolP1","",
			"kolP2","",
			"kolP3","",
			"kolP4","",
			"kolP5","",
			"kolP6","",
			"kolP7","",
			"kolP8","",
			"podkoloL1","",
			"podkoloL2","",
			"podkoloL3","",
			"podkoloL4","",
			"podkoloL5","",
			"podkoloL6","",
			"podkoloL7","",
			"podkoloL8","",
			"podkoloP1","",
			"podkoloP2","",
			"podkoloP3","",
			"podkoloP4","",
			"podkoloP5","",
			"podkoloP6","",
			"podkoloP7","",
			"podkoloP8","",
			"koloL1","podkoloL1",
			"koloL2","podkoloL2",
			"koloL3","podkoloL3",
			"koloL4","podkoloL4",
			"koloL5","podkoloL5",
			"koloL6","podkoloL6",
			"koloL7","podkoloL7",
			"koloL8","podkoloL8",
			"koloP1","podkoloP1",
			"koloP2","podkoloP2",
			"koloP3","podkoloP3",
			"koloP4","podkoloP4",
			"koloP5","podkoloP5",
			"koloP6","podkoloP6",
			"koloP7","podkoloP7",
			"koloP8","podkoloP8",
			"ukaz_rychlo","",
			"ukaz_rychlo2","",
			"ukaz_rpm","",
			"ukaz_radar","",
			"hodinova","",
			"minutova","",
			"kompas","",
			"ukazsmer","",
			"damageHide","",
			"podkoloL1_hide","podkoloL1",
			"podkoloL2_hide","podkoloL2",
			"podkoloL3_hide","podkoloL3",
			"podkoloL4_hide","podkoloL4",
			"podkoloL5_hide","podkoloL5",
			"podkoloL6_hide","podkoloL6",
			"podkoloL7_hide","podkoloL7",
			"podkoloL8_hide","podkoloL8",
			"podkoloP1_hide","podkoloP1",
			"podkoloP2_hide","podkoloP2",
			"podkoloP3_hide","podkoloP3",
			"podkoloP4_hide","podkoloP4",
			"podkoloP5_hide","podkoloP5",
			"podkoloP6_hide","podkoloP6",
			"podkoloP7_hide","podkoloP7",
			"podkoloP8_hide","podkoloP8"
		};
	};
	class Tank : TankBase 
	{
		skeletonInherit = "TankBase";
		skeletonBones[] = 
		{
			"main_turret","",
			"main_gun","main_turret",
			"commander_turret","main_turret",
			"OtocVelitele","main_turret",
			"commander_gun","commander_turret",
			"poklop_driver","",
			//"poklop_commander","commander_turret",
			"poklop_gunner","main_turret",
			"damageVez","main_turret"
		};
	};
	class Tank_F: Tank 
	{
		skeletonInherit = "Tank";
		skeletonBones[] = 
		{
			"muzzleFlash", "main_gun",
			"recoilHlaven",	"main_gun",
			"hatch_gunner","main_turret",
			"hatch_commander","main_turret",
			"commander_turret","main_turret",
			"commander_gun","commander_turret",
		};
	};
	class CWR3_M41_Skeleton : Tank_F
    {
		isDiscrete=1;
		skeletonInherit = "Tank_F"; 
		skeletonBones[]=
		{
			"zasleh","recoilHlaven",
			"zasleh_1","main_gun",
			"hatch_driver","",
			"up_whe1L","",
			"up_whe2L","",
			"up_whe3L","",
			"up_whe1R","",
			"up_whe2R","",
			"up_whe3R",""
		};
    };
};
class CfgModels
{
   
    class Default 
	{
		sectionsInherit = "";
		sections[] = {};
		skeletonName = "";
	};
	
	class Vehicle: Default 
	{
		sections[] = 
		{
			"cislo",
			"grupa",
			"side",
			"sektor",
			"clan",
			"clan_sign",
			"podsvit pristroju",
			"poskozeni",
			"L svetlo",
			"P svetlo",
			"muzzleFlashGMG",
			"muzzleFlashHMG",
			"muzzleFlash"
		};
	};
	
	class Tank : Vehicle 
	{
		htMin = 60;		// Minimum half-cooling time (in seconds)
		htMax = 1800;	// Maximum half-cooling time (in seconds)
		afMax = 200;	// Maximum temperature in case the model is alive (in celsius)
		mfMax = 100;	// Maximum temperature when the model is moving (in celsius)
		mFact = 1;		// Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
		tBody = 250;	// Metabolism temperature of the model (in celsius)

		sectionsInherit = "Vehicle";
		sections[] = 
		{
			"zadni svetlo",
			"brzdove svetlo",
			"PasOffsetP",
			"PasOffsetL",
			"karoserie",
			"pas_L",
			"pas_P",
			"motor",
			"vez",
			"zbran",
			"clan",
			"clan_sign",
			"Light_L",
			"Light_R",
			"zbytek"
		};
		skeletonName = "Tank";
		class Animations
		{
			class damageHide 
			{
				type="hide";
				source="damage";
				selection="damageHide";
			};
			class HatchDriver 
			{
				type="rotation";
				source="hatchDriver";
				selection="hatch_driver";
				axis="axis_hatch_driver";
				animPeriod=0;
				angle0=0;
				angle1="rad -100";
			};
			class IndicatorSpeed 
			{
				type="rotation";
				source="speed";
				selection="ukaz_rychlo";
				axis="osa_rychlo";
				memory="false";
				animPeriod=0;
				minValue=0;
				maxValue=16.670000;
				angle0=0;
				angle1="rad -240";
			};
			class IndicatorSpeed2 
			{
				type="rotation";
				source="speed";
				selection="ukaz_rychlo2";
				axis="osa_rychlo2";
				memory="false";
				animPeriod=0;
				minValue=0;
				maxValue=16.670000;
				angle0=0;
				angle1="rad -240";
			};
			class IndicatorRPM 
			{
				type="rotation";
				source="rpm";
				selection="ukaz_rpm";
				axis="osa_rpm";
				memory="false";
				animPeriod=0;
				minValue=0;
				maxValue=1;
				angle0=0;
				angle1="rad -340";
			};
			class Radar 
			{
				type="rotation";
				source="time";
				selection="ukaz_radar";
				axis="osa_radar";
				memory="false";
				minValue=0;
				maxValue=2;
				sourceAddress="loop";
				angle0=0;
				angle1="rad 360";
			};
			class IndicatorTurret 
			{
				type="rotation";
				source="turretDir";
				selection="ukazsmer";
				axis="osa_ukazsmer";
				memory="false";
				animPeriod=0;
				minValue=0;
				maxValue=6.283185;
				angle0=0;
				angle1="rad 360";
			};
			class WatchHour 
			{
				type="rotation";
				source="clockHour";
				selection="hodinova";
				axis="osa_time";
				memory="false";
				animPeriod=0;
				angle0=0;
				angle1="rad 360";
			};
			class WatchMinute 
			{
				type="rotation";
				source="clockMinute";
				selection="minutova";
				axis="osa_time";
				memory="false";
				animPeriod=0;
				angle0=0;
				angle1="rad 360";
			};
			class Wheel_kolL1 
			{
				type="rotationX";
				source="wheelL";
				selection="kolL1";
				axis="";
				memory="false";
				animPeriod=0;
				minvalue=0.5;
				maxvalue = 1.0;
				angle0=0;
				angle1="rad -360";
				sourceAddress="loop";
			};
			class Wheel_koloL1: Wheel_kolL1 
			{
				selection="koloL1";
			};
			class Wheel_podkoloL1 
			{
				type="translation";
				source="damper";
				selection="podkoloL1";
				axis="Basic_Damper_Destruct_Axis";
				memory="true";
				animPeriod=0;
				minValue="0";
				maxValue="1";
				offset0= "-0.18";
				offset1= "0.18";
			};
			class Wheel_kolP1: Wheel_kolL1 {
				source="wheelR";
				selection="kolP1";
			};
			class Wheel_koloP1: Wheel_koloL1 {
				source="wheelR";
				selection="koloP1";
			};
			class Wheel_podkoloP1: Wheel_podkoloL1 {
				selection="podkoloP1";
			};
			class Wheel_kolL2: Wheel_kolL1 {
				selection="kolL2";
			};
			class Wheel_kolL3: Wheel_kolL1 {
				selection="kolL3";
			};
			class Wheel_kolL4: Wheel_kolL1 {
				selection="kolL4";
			};
			class Wheel_kolL5: Wheel_kolL1 {
				selection="kolL5";
			};
			class Wheel_kolL6: Wheel_kolL1 {
				selection="kolL6";
			};
			class Wheel_kolL7: Wheel_kolL1 {
				selection="kolL7";
			};
			class Wheel_kolL8: Wheel_kolL1 {
				selection="kolL8";
			};
			class Wheel_kolP2: Wheel_kolP1 {
				selection="kolP2";
			};
			class Wheel_kolP3: Wheel_kolP1 {
				selection="kolP3";
			};
			class Wheel_kolP4: Wheel_kolP1 {
				selection="kolP4";
			};
			class Wheel_kolP5: Wheel_kolP1 {
				selection="kolP5";
			};
			class Wheel_kolP6: Wheel_kolP1 {
				selection="kolP6";
			};
			class Wheel_kolP7: Wheel_kolP1 {
				selection="kolP7";
			};
			class Wheel_kolP8: Wheel_kolP1 {
				selection="kolP8";
			};
			class Wheel_koloL2: Wheel_koloL1 {
				selection="koloL2";
			};
			class Wheel_koloL3: Wheel_koloL1 {
				selection="koloL3";
			};
			class Wheel_koloL4: Wheel_koloL1 {
				selection="koloL4";
			};
			class Wheel_koloL5: Wheel_koloL1 {
				selection="koloL5";
			};
			class Wheel_koloL6: Wheel_koloL1 {
				selection="koloL6";
			};
			class Wheel_koloL7: Wheel_koloL1 {
				selection="koloL7";
			};
			class Wheel_koloL8: Wheel_koloL1 {
				selection="koloL8";
			};
			class Wheel_koloP2: Wheel_koloP1 {
				selection="koloP2";
			};
			class Wheel_koloP3: Wheel_koloP1 {
				selection="koloP3";
			};
			class Wheel_koloP4: Wheel_koloP1 {
				selection="koloP4";
			};
			class Wheel_koloP5: Wheel_koloP1 {
				selection="koloP5";
			};
			class Wheel_koloP6: Wheel_koloP1 {
				selection="koloP6";
			};
			class Wheel_koloP7: Wheel_koloP1 {
				selection="koloP7";
			};
			class Wheel_koloP8: Wheel_koloP1 {
				selection="koloP8";
			};
			class Wheel_podkoloL2: Wheel_podkoloL1 {
				selection="podkoloL2";
			};
			class Wheel_podkoloL3: Wheel_podkoloL1 {
				selection="podkoloL3";
			};
			class Wheel_podkoloL4: Wheel_podkoloL1 {
				selection="podkoloL4";
			};
			class Wheel_podkoloL5: Wheel_podkoloL1 {
				selection="podkoloL5";
			};
			class Wheel_podkoloL6: Wheel_podkoloL1 {
				selection="podkoloL6";
			};
			class Wheel_podkoloP2: Wheel_podkoloP1 {
				selection="podkoloP2";
			};
			class Wheel_podkoloP3: Wheel_podkoloP1 {
				selection="podkoloP3";
			};
			class Wheel_podkoloP4: Wheel_podkoloP1 {
				selection="podkoloP4";
			};
			class Wheel_podkoloP5: Wheel_podkoloP1 {
				selection="podkoloP5";
			};
			class Wheel_podkoloP6: Wheel_podkoloP1 {
				selection="podkoloP6";
			};
			class podkoloL1_hide_damage: damageHide {
				selection="podkoloL1_hide";
			};
			class podkoloL2_hide_damage: damageHide {
				selection="podkoloL2_hide";
			};
			class podkoloL3_hide_damage: damageHide {
				selection="podkoloL3_hide";
			};
			class podkoloL4_hide_damage: damageHide {
				selection="podkoloL4_hide";
			};
			class podkoloL5_hide_damage: damageHide {
				selection="podkoloL5_hide";
			};
			class podkoloL6_hide_damage: damageHide {
				selection="podkoloL6_hide";
			};
			class podkoloL7_hide_damage: damageHide {
				selection="podkoloL7_hide";
			};
			class podkoloL8_hide_damage: damageHide {
				selection="podkoloL8_hide";
			};
			class podkoloP1_hide_damage: damageHide {
				selection="podkoloP1_hide";
			};
			class podkoloP2_hide_damage: damageHide {
				selection="podkoloP2_hide";
			};
			class podkoloP3_hide_damage: damageHide {
				selection="podkoloP3_hide";
			};
			class podkoloP4_hide_damage: damageHide {
				selection="podkoloP4_hide";
			};
			class podkoloP5_hide_damage: damageHide {
				selection="podkoloP5_hide";
			};
			class podkoloP6_hide_damage: damageHide {
				selection="podkoloP6_hide";
			};
			class podkoloP7_hide_damage: damageHide {
				selection="podkoloP7_hide";
			};
			class podkoloP8_hide_damage: damageHide {
				selection="podkoloP8_hide";
			};
			class damageVez: damageHide {
				selection="damageVez";
			};
			class MainTurret {
				type="rotationY";
				source="mainTurret";
				selection="main_turret";
				axis="main_turret_axis";
				animPeriod=0;
				minValue="rad -360";
				maxValue="rad +360";
				angle0="rad -360";
				angle1="rad +360";
				memory = 1;
			};
			class MainGun: MainTurret {
				type="rotationX";
				source="mainGun";
				selection="main_gun";
				axis="main_gun_axis";
			};
			class HatchCommander {
				type="rotation";
				source="hatchCommander";
				selection="hatch_commander";
				axis="axis_hatch_commander";
				animPeriod=0;
				angle0=0;
				angle1="rad -95";
			};
			class HatchGunner {
				type="rotation";
				source="hatchGunner";
				selection="hatch_gunner";
				axis="axis_hatch_gunner";
				animPeriod=0;
				angle0=0;
				angle1="rad -95";
			};
		};
	};
	
	class Tank_F : Tank 
	{
		sectionsInherit = "Tank";
		skeletonName = "Tank_F";
		class Animations : Animations 
		{
			class ObsTurret:MainTurret 
			{
				source="obsTurret";
				selection="Commander_Turret";
				axis="Commander_Turret_axis";
			};
			class ObsGun:MainGun 
			{
				source="obsGun";
				selection="Commander_Gun";
				axis="Commander_Gun_axis";
			};

		};
	};
	
   class BRAF_M41A : Tank_F
   {
		sectionsInherit = "Tank_F";                     
		sections[] =
		{
			"camo1",
			"camo2",
			"camo3",
			"camo4",
			"zasleh",
			"zasleh_1",
			"recoilhlaven",
			"zbran",
			"telo",
			"vez",
			"zbytek"
		};
		skeletonName = "CWR3_M41_Skeleton"; 
		class Animations : Animations
		{
			class Recoil 
			{
				type="translation";
				source="recoil_source";
				selection="recoilHlaven";
				axis="Recoil_axis";
				memory=1;
				minValue=0.85;
				maxValue=1;
				offset0=0;
				offset1=-1;
			};
			class zasleh_rot_coax 
			{
				type="rotationZ";
				source="muzzle_rot_coax";
				sourceAddress="loop";
				selection="zasleh";
				axis="coax_rot_axis";
				centerFirstVertex=true;
				minValue=0;
				maxValue=4;
				angle0="rad 0";
				angle1="rad 360";
			};
			class HatchDriverUp : HatchDriver 
			{
				type="translation";
				memory=1;
				minValue=0.85;
				maxValue=1;
				offset0=0;
				offset1=-1;
			};
			class m41up_whe1L : Wheel_koloL1
			{
				selection = "up_whe1L";
			};
			class m41up_whe2L : Wheel_koloL1
			{
				selection = "up_whe2L";
			};
			class m41up_whe3L : Wheel_koloL1
			{
				selection = "up_whe3L";
			};
			class m41up_whe1R : Wheel_koloP1
			{
				selection = "up_whe1R";
			};
			class m41up_whe2R : Wheel_koloP1
			{
				selection = "up_whe2R";
			};
			class m41up_whe3R : Wheel_koloP1
			{
				selection = "up_whe3R";
			};
		};
    };
	class BRAF_M41C : BRAF_M41A {};
};