class CfgSkeletons
{
	class Default
	{
		isDiscrete = 1;
		skeletonInherit = "";
		skeletonBones[] = {};
	};
	class StaticWeapon: Default
	{
		isDiscrete=1;
		skeletonInherit="Default";
		skeletonBones[]=
		{
			"OtocVez","",
			"OtocHlaven","OtocVez",
			"OtocHlaven_Shake","OtocHlaven",
			"ammo_belt","OtocHlaven_Shake",
			"magazine","OtocHlaven_Shake",
			"feedtray_cover","OtocHlaven_Shake",
			"bolt","OtocHlaven_Shake",
			"recoil","OtocHlaven_Shake",
			"charging_handle","OtocHlaven_Shake",
			"damagehideVez","OtocVez",
			"damagehideHlaven","OtocHlaven",
			"damagehideRecoil","recoil"
		};
	};
	class 81Mortar: StaticWeapon
	{
		isDiscrete = 1;
		skeletonInherit = "Default";
		skeletonBones[]=
		{
			"otocVez","",
			"otochlaven","otocVez",
		};
	};
};

class CfgModels
{
	class Default
	{
		sections[] = {};
		sectionsInherit="";
		skeletonName = "";
	};
	class StaticWeapon: Default
	{
		sections[]=
		{
			"zasleh","zbytek","camo"
		};
		skeletonName="StaticWeapon";
		class 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
			{
				type="rotationX";
				source="mainGun";
				selection="OtocHlaven";
				axis="osahlavne";
				animPeriod=0;
				minValue="rad -360";
				maxValue="rad +360";
				angle0="rad -360";
				angle1="rad +360";
			};


			// destruct BASE START
			class MainTurret_destructX
			{
				type="rotationX";
				source="damage";
				selection="OtocVez";
				axis="osaveze";
				animPeriod=0;
				minValue=0.99;
				maxValue=1;
				angle0=0;
				angle1="rad -3";
			};
			class MainTurret_destructY:MainTurret_destructX
			{
				type="rotationY";
				angle1="rad +5";
			};
			class MainTurret_destructZ:MainTurret_destructX
			{
				type="rotationZ";
				angle1="rad -5";
			};
			class MainGun_destructX:MainTurret_destructX
			{
				selection="OtocHlaven";
				axis="osahlavne";
				angle1="rad -12";
			};
			class MainGun_destructY:MainGun_destructX
			{
				type="rotationY";
				angle1="rad +2";
			};
			class MainGun_destructZ:MainGun_destructX
			{
				type="rotationZ";
				angle1="rad +5";
			};
			class magazine_destruct:MainTurret_destructX
			{
				type="hide";
				selection="magazine";
				hideValue=0.5;
			};
			class ammo_belt_destruct:magazine_destruct
			{
				selection="ammo_belt";
			};
			class bolt_destruct:magazine_destruct
			{
				selection="bolt";
			};
			class charging_handle_destruct:magazine_destruct
			{
				selection="charging_handle";
			};
			class damagehideVez_destruct:magazine_destruct
			{
				type="hide";
				selection="damagehideVez";
				hideValue=0.9;
			};
			class damagehideHlaven_destruct:damagehideVez_destruct
			{
				selection="damagehideHlaven";
			};
			class damagehideRecoil_destruct:damagehideVez_destruct
			{
				selection="damagehideRecoil";
			};
			// destruct BASE END

		};
	};
	class 81Mortar: StaticWeapon
	{
		sections[]={};
		skeletonName="81Mortar";
		sectionsInherit = "Default";
		class 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
			{
				type="rotationX";
				source="mainGun";
				selection="otochlaven";
				axis="osahlaven";
				animPeriod=0;
				minValue="rad -360";
				maxValue="rad +360";
				angle0="rad -360";
				angle1="rad +360";
			};
		};
	};
};

