

class CfgSkeletons
{
	class smurfc_m2a2_Vehicle
	{
		isDiscrete=1;
		skeletonInherit="";
		skeletonBones[]={};
	};
	class smurfc_m2a2_TankBase: smurfc_m2a2_Vehicle
	{
		skeletonInherit="smurfc_m2a2_Vehicle";
		skeletonBones[]=
		{
			"koll1", "",
			"koll2", "",
			"koll3", "",
			"koll4", "",
			"koll5", "",
			"koll6", "",
			"koll7", "",
			"koll8", "",
			"kolp1", "",
			"kolp2", "",
			"kolp3", "",
			"kolp4", "",
			"kolp5", "",
			"kolp6", "",
			"kolp7", "",
			"kolp8", "",
			"podkolol1", "",
			"podkolol2", "",
			"podkolol3", "",
			"podkolol4", "",
			"podkolol5", "",
			"podkolol6", "",
			"podkolop1", "",
			"podkolop2", "",
			"podkolop3", "",
			"podkolop4", "",
			"podkolop5", "",
			"podkolop6", "",
			"kolol1", "podkolol1",
			"kolol2", "podkolol2",
			"kolol3", "podkolol3",
			"kolol4", "podkolol4",
			"kolol5", "podkolol5",
			"kolol6", "podkolol6",
			"kolol7", "",
			"kolol8", "",
			"kolol9", "",
			"kolop1", "podkolop1",
			"kolop2", "podkolop2",
			"kolop3", "podkolop3",
			"kolop4", "podkolop4",
			"kolop5", "podkolop5",
			"kolop6", "podkolop6",
			"kolop7", "",
			"kolop8", "",
			"kolop9", "",
			"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",
			"podkolop1_hide", "podkolop1",
			"podkolop2_hide", "podkolop2",
			"podkolop3_hide", "podkolop3",
			"podkolop4_hide", "podkolop4",
			"podkolop5_hide", "podkolop5",
			"podkolop6_hide", "podkolop6"
		};
	};
	class smurfc_m2a2_Tank: smurfc_m2a2_TankBase
	{
		skeletonInherit="smurfc_m2a2_TankBase";
		skeletonBones[]=
		{
			"OtocVez", "",
			"OtocHlaven", "OtocVez",
			"OtocVelitele", "OtocVez",
			"OtocHlavenVelitele", "OtocVelitele",
			"poklop_driver", "",
			"poklop_commander", "OtocVez",
			"poklop_gunner", "OtocVez",
			"damageVez", "OtocVez",
			"damageHlaven", "OtocHlaven",
			"barrel", "OtocHlaven",
			"ammo_belt", "OtocHlavenVelitele",
//			"gunnerview", "OtocHlaven",
//			"commanderview", "OtocHlavenVelitele",
//			"driverview","",
			"tow_launcher", "OtocVez",
			"poklop_tow", "tow_launcher",
			"stinger", "OtocVez",
			"stinger_launcher", "stinger",
			"poklop_gun", "OtocVez",
			"ironsight","OtocVez",
			"lever_up","ironsight",
			"lever_down","OtocHlaven",
			"cargo_periscope",""
		};
	};
};

class Rotation;
class CfgModels
{
    class Default
    {
        sectionsInherit="";
        sections[] = {};
        skeletonName = "";
    };
	class smurfc_m2a2_Vehicle: Default
	{
        sectionsInherit="Default";
        sections[] = {};
        skeletonName = "";
	};
	class smurfc_m2a2_Tank: smurfc_m2a2_Vehicle
	{
		sectionsInherit="smurfc_m2a2_Vehicle";
		sections[]=
		{
			"zadni svetlo",
			"brzdove svetlo",
			"P svetlo",
			"L svetlo",
			"PasOffsetP",
			"PasOffsetL",
			"telo",
			"pas_L",
			"pas_P",
			"motor",
			"vez",
			"zbran",
			"clan",
			"clan_sign"
		};
		skeletonName="smurfc_m2a2_Tank";
		class Animations
		{
			class smurfc_m2a2_damageHide
			{
				type="hide";
				source="damage";
				selection="damageHide";
			};
			class smurfc_m2a2_HatchDriver
			{
				type="rotation";
				source="hatchDriver";
				selection="poklop_driver";
				axis="osa_poklop_driver";
				animPeriod=0;
				angle0=0;
				angle1="rad 50";
			};
			class smurfc_m2a2_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 smurfc_m2a2_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 smurfc_m2a2_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 smurfc_m2a2_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 smurfc_m2a2_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 smurfc_m2a2_WatchHour
			{
				type="rotation";
				source="clockHour";
				selection="hodinova";
				axis="osa_time";
				memory="false";
				animPeriod=0;
				angle0=0;
				angle1="rad 360";
			};
			class smurfc_m2a2_WatchMinute
			{
				type="rotation";
				source="clockMinute";
				selection="minutova";
				axis="osa_time";
				memory="false";
				animPeriod=0;
				angle0=0;
				angle1="rad 360";
			};
			class smurfc_m2a2_Wheel_koll1
			{
				type="rotationX";
				source="wheelL";
				selection="koll1";
				axis="";
				memory="false";
				animPeriod=0;
				angle0=0;
				angle1="rad -360";
				sourceAddress="loop";
			};
			class smurfc_m2a2_Wheel_kolol1: smurfc_m2a2_Wheel_koll1
			{
				selection="kolol1";
			};
			class smurfc_m2a2_Wheel_podkolol1
			{
				type="translationY";
				source="damper";
				selection="podkolol1";
				axis="";
				memory="false";
				animPeriod=0;
				minValue=-1000;
				maxValue=1000;
			};
			class smurfc_m2a2_Wheel_kolp1: smurfc_m2a2_Wheel_koll1
			{
				source="wheelR";
				selection="kolp1";
			};
			class smurfc_m2a2_Wheel_kolop1: smurfc_m2a2_Wheel_kolol1
			{
				source="wheelR";
				selection="kolop1";
			};
			class smurfc_m2a2_Wheel_podkolop1: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolop1";
			};
			class smurfc_m2a2_Wheel_koll2: smurfc_m2a2_Wheel_koll1
			{
				selection="koll2";
			};
			class smurfc_m2a2_Wheel_koll3: smurfc_m2a2_Wheel_koll1
			{
				selection="koll3";
			};
			class smurfc_m2a2_Wheel_koll4: smurfc_m2a2_Wheel_koll1
			{
				selection="koll4";
			};
			class smurfc_m2a2_Wheel_koll5: smurfc_m2a2_Wheel_koll1
			{
				selection="koll5";
			};
			class smurfc_m2a2_Wheel_koll6: smurfc_m2a2_Wheel_koll1
			{
				selection="koll6";
			};
			class smurfc_m2a2_Wheel_koll7: smurfc_m2a2_Wheel_koll1
			{
				selection="koll7";
			};
			class smurfc_m2a2_Wheel_koll8: smurfc_m2a2_Wheel_koll1
			{
				selection="koll8";
			};
			class smurfc_m2a2_Wheel_kolp2: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp2";
			};
			class smurfc_m2a2_Wheel_kolp3: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp3";
			};
			class smurfc_m2a2_Wheel_kolp4: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp4";
			};
			class smurfc_m2a2_Wheel_kolp5: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp5";
			};
			class smurfc_m2a2_Wheel_kolp6: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp6";
			};
			class smurfc_m2a2_Wheel_kolp7: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp7";
			};
			class smurfc_m2a2_Wheel_kolp8: smurfc_m2a2_Wheel_kolp1
			{
				selection="kolp8";
			};
			class smurfc_m2a2_Wheel_kolol2: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol2";
			};
			class smurfc_m2a2_Wheel_kolol3: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol3";
			};
			class smurfc_m2a2_Wheel_kolol4: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol4";
			};
			class smurfc_m2a2_Wheel_kolol5: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol5";
			};
			class smurfc_m2a2_Wheel_kolol6: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol6";
			};
			class smurfc_m2a2_Wheel_kolol7: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol7";
			};
			class smurfc_m2a2_Wheel_kolol8: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol8";
			};
			class smurfc_m2a2_Wheel_kolol9: smurfc_m2a2_Wheel_kolol1
			{
				selection="kolol9";
			};
			class smurfc_m2a2_Wheel_kolop2: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop2";
			};
			class smurfc_m2a2_Wheel_kolop3: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop3";
			};
			class smurfc_m2a2_Wheel_kolop4: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop4";
			};
			class smurfc_m2a2_Wheel_kolop5: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop5";
			};
			class smurfc_m2a2_Wheel_kolop6: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop6";
			};
			class smurfc_m2a2_Wheel_kolop7: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop7";
			};
			class smurfc_m2a2_Wheel_kolop8: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop8";
			};
			class smurfc_m2a2_Wheel_kolop9: smurfc_m2a2_Wheel_kolop1
			{
				selection="kolop9";
			};
			class smurfc_m2a2_Wheel_podkolol2: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol2";
			};
			class smurfc_m2a2_Wheel_podkolol3: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol3";
			};
			class smurfc_m2a2_Wheel_podkolol4: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol4";
			};
			class smurfc_m2a2_Wheel_podkolol5: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol5";
			};
			class smurfc_m2a2_Wheel_podkolol6: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol6";
			};
			class smurfc_m2a2_Wheel_podkolol7: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol7";
			};
			class smurfc_m2a2_Wheel_podkolol8: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol8";
			};
			class smurfc_m2a2_Wheel_podkolol9: smurfc_m2a2_Wheel_podkolol1
			{
				selection="podkolol9";
			};
			class smurfc_m2a2_Wheel_podkolop2: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop2";
			};
			class smurfc_m2a2_Wheel_podkolop3: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop3";
			};
			class smurfc_m2a2_Wheel_podkolop4: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop4";
			};
			class smurfc_m2a2_Wheel_podkolop5: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop5";
			};
			class smurfc_m2a2_Wheel_podkolop6: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop6";
			};
			class smurfc_m2a2_Wheel_podkolop7: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop7";
			};
			class smurfc_m2a2_Wheel_podkolop8: smurfc_m2a2_Wheel_podkolop1
			{
				selection="podkolop8";
			};
			class smurfc_m2a2_podkolol1_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolol1_hide";
			};
			class smurfc_m2a2_podkolol2_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolol2_hide";
			};
			class smurfc_m2a2_podkolol3_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolol3_hide";
			};
			class smurfc_m2a2_podkolol4_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolol4_hide";
			};
			class smurfc_m2a2_podkolol5_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolol5_hide";
			};
			class smurfc_m2a2_podkolol6_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolol6_hide";
			};
			class smurfc_m2a2_podkolop1_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolop1_hide";
			};
			class smurfc_m2a2_podkolop2_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolop2_hide";
			};
			class smurfc_m2a2_podkolop3_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolop3_hide";
			};
			class smurfc_m2a2_podkolop4_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolop4_hide";
			};
			class smurfc_m2a2_podkolop5_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolop5_hide";
			};
			class smurfc_m2a2_podkolop6_hide_damage: smurfc_m2a2_damageHide
			{
				selection="podkolop6_hide";
			};
			class smurfc_m2a2_damageVez: smurfc_m2a2_damageHide
			{
				selection="damageVez";
			};
			class smurfc_m2a2_damageHlaven: smurfc_m2a2_damageHide
			{
				selection="damageHlaven";
			};
		};
	};
	class smurfc_m2a2: smurfc_m2a2_Tank
	{
		sectionsInherit="smurfc_m2a2_Tank";
		sections[]=
		{
			"zasleh",
			"zasleh_1",
			"num1_m2a2",
			"num2_m2a2",
			"num3_m2a2",
			"1_co_m2a2",
			"2_co_m2a2",
			"3_co_m2a2",
			"flag_m2a2"
		};
		class Animations: Animations
		{
			class MainTurret
			{
				type="rotationY";
				source="mainTurret";
				selection="OtocVez";
				axis="OsaVeze";
				animPeriod=0;
				minValue="rad -360";
				maxValue="rad +360";
				angle0="rad -360";
				angle1="rad +360";
			};
			class MainGun: MainTurret
			{
				type="rotationX";
				source="mainGun";
				selection="OtocHlaven";
				axis="OsaHlavne";
			};
			class ObsTurret
			{
				type="rotationY";
				source="obsTurret";
				selection="OtocVelitele";
				axis="OsaVelitele";
				animPeriod=0;
				minValue="rad -360";
				maxValue="rad +360";
				angle0="rad -360";
				angle1="rad +360";
			};
			class ObsGun: ObsTurret
			{
				type="rotationX";
				source="obsGun";
				selection="OtocHlavenVelitele";
				axis="OsaHlavneVelitele";
			};
			class smurfc_m2a2_ironsight : MainGun
			{
				selection = "ironsight";
				axis = "ironsight_axis";
			};
			class smurfc_m2a2_lever_up : MainGun
			{
				selection = "lever_up";
				axis = "lever_up_axis";
				angle0="rad +360";
				angle1="rad -360";
			};
			class smurfc_m2a2_lever_down : MainGun
			{
				selection = "lever_down";
				axis = "lever_down_axis";
				angle0="rad +360";
				angle1="rad -360";
			};
			class smurfc_m2a2_HatchCommander
			{
				type="rotation";
				source="hatchCommander";
				selection="poklop_commander";
				axis="osa_poklop_commander";
				animPeriod=0;
				angle0=0;
				angle1="rad -100";
			};
			class smurfc_m2a2_HatchGunner : smurfc_m2a2_HatchCommander
			{
				source="hatchGunner";
				selection="poklop_gunner";
				axis="osa_poklop_gunner";
			};
			class smurfc_m2a2_IndicatorRPM: smurfc_m2a2_IndicatorRPM
			{
				angle0="rad  130";
				angle1="rad -130";
			};
			class smurfc_m2a2_IndicatorCompass
			{
				type="rotation";
				source="direction";
				selection="kompas";
				axis="osa_kompas";
				memory="false";
				minValue=-3.141593;
				maxValue=3.141593;
				angle0=0;
				angle1="rad -360";
			};
			class smurfc_m2a2_OtocVelitele_hide: smurfc_m2a2_damageHide
			{
				selection="OtocVelitele";
			};
			class smurfc_m2a2_poklop_gunner_damage: smurfc_m2a2_damageHide
			{
				selection="poklop_gunner";
			};
			class smurfc_m2a2_poklop_driver_damage: smurfc_m2a2_damageHide
			{
				selection="poklop_driver";
			};
			class smurfc_m2a2_damageTurret
			{
				type="hide";
				source = "user";
				selection="otocVez";
				animPeriod=0;
				minPhase=0;
				maxPhase=1;
				minValue=0;
				maxValue=1;
				memory=0;
				angle0=1;
			};
			class smurfc_m2a2_damageGun
			{
				type="hide";
				source = "user";
				selection="OtocHlaven";
				animPeriod=0;
				minPhase=0;
				maxPhase=1;
				minValue=0;
				maxValue=1;
				memory=0;
				angle0=1;
			};
			class smurfc_m2a2_MainGunRecoil
			{
				type="translation";
				axis="osa_barrel";
				source = "smurfc_m2a2_MainGunReload";
				selection="barrel";
				animPeriod=0.2;
	            sourceAddress = "loop";
				minValue=0.0;
				maxValue=0.999999/(210.0); // 1.0 / Mag-Size (Bushmaster: 210)
				memory=1;
				initPhase=1;
	            offset0=0;
	            offset1=1;
			};
			class smurfc_m2a2_MainTurret_DriverOut // traverse 12.5 degrees up when driver hatch is open
			{
				type="rotation";
				source="hatchDriver";
				selection="OtocHlaven";
				axis="OsaHlavne";
				animPeriod=0;
				memory=0;
				minValue=0;
				maxValue=1;
				angle0=0;
				angle1="rad 12.5";
			};
			class smurfc_m2a2_ironsight_DriverOut : smurfc_m2a2_MainTurret_DriverOut
			{
				selection="ironsight";
				axis="ironsight_axis";
				angle0=0;
				angle1="rad -12.5";
			};
			class smurfc_m2a2_HatchTow : smurfc_m2a2_HatchCommander
			{
				source="hatchGunner";
				selection="poklop_tow";
				axis="osa_poklop_tow";
				angle1="rad 90";
			};
			class smurfc_m2a2_TowLauncher : smurfc_m2a2_HatchCommander
			{
				source="hatchGunner";
				selection="tow_launcher";
				axis="osa_tow_launcher";
				angle1="rad 90";
			};
			class smurfc_m2a2_Stinger : MainGun
			{				
				selection="stinger";
				axis="osa_stinger";
			}
			class smurfc_m2a2_StingerLauncher : smurfc_m2a2_HatchCommander
			{
				source="hatchGunner";
				selection="stinger_launcher";
				axis="osa_stinger_launcher";
				angle1="rad 90";
			};
			class smurfc_m2a2_poklop_gun
			{
				type="rotation";
				source="rpm";
				selection="poklop_gun";
				axis="poklop_gun_axis";
				memory=1;
				minValue=0.000000;
				maxValue=0.200000;
				angle1=0.000000;
				angle0="rad 65";
			};
			class smurfc_m2a2_periscope_mirror
			{
				type="translation";
				source="user";
				selection="cargo_periscope";
				axis="cargo_periscope_axis";
				memory=0;
				minValue=0.000000;
				maxValue=1.000000;
	            offset0=0.000000;
	            offset1=1.000000;
			};
			class smurfc_m2a2_MainGunRecoil_A2
			{
				type="translation";
				axis="osa_barrel";
				source = "smurfc_m2a2_MainGunReload_A2";
				selection="barrel";
				animPeriod=0.2;
	            sourceAddress = "loop";
				minValue=0.0;
				maxValue=1.000000;
				memory=1;
				initPhase=1;
	            offset0=0;
	            offset1=1;
			};
		};
	};
	class smurfc_m6: smurfc_m2a2 {};
	class smurfc_m2a2_Barel1: Default
	{
		sectionsInherit="Default";
		sections[] = {"karoserie"};
		skeletonName = "";
	};
};