
class cfgSkeletons
{
	class Default
	{
		isDiscrete = 1;
		skeletonInherit = "";
		skeletonBones[] = {};
	};
	class BRAF_M114StaticWeapon: 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 BRAF_M114: BRAF_M114StaticWeapon
	{
		isDiscrete = 1;
		skeletonInherit = "BRAF_M114StaticWeapon";
		skeletonBones[]=
		{
			"leftT","",
			"rightT","",
			"leftW","OtocVez",
			"rightW","OtocVez",
			"wheels","OtocVez",
			"szpilki",""
		};
	};
};

class CfgModels
{
	class Default
	{
		sections[] = {};
		sectionsInherit="";
		skeletonName = "";
	};
	class BRAF_M114StaticWeapon: Default
	{
		sections[]=
		{
			"zasleh","zbytek"
		};
		skeletonName="BRAF_M114StaticWeapon";
		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 BRAF_M114Cannon: BRAF_M114StaticWeapon
	{
		class Animations: Animations
		{
			class recoil_BEGIN
			{
				type="translation";
				source="recoil_source";
				selection="recoil";
				axis="recoil_axis";
				memory=1;
				minValue=0.92;
				maxValue=0.99;
				offset0=0;
				offset1=-2.0;
			};
			class recoil_END:recoil_BEGIN
			{
				minValue=0.99;
				maxValue=1.0;
				offset0=0;
				offset1=2.0;
			};

			// recoils shake START
			class recoil_Shake_HlavenX
			{
				type="rotationX";
				source="recoil_source";
				//sourceAddress="mirror";
				selection="OtocHlaven";
				axis="recoil_axis";
				memory=1;
				minValue=0.900000;
				maxValue=0.950000;
				angle0=0;
				angle1="rad +2.0";
			};
			class recoil_Shake_HlavenX_END:recoil_Shake_HlavenX
			{
				minValue=0.950000;
				maxValue=1.0;
				angle0="rad +2.0";
				angle1=0;
			};
			class recoil_Shake_HlavenY:recoil_Shake_HlavenX
			{
				type="rotationY";
				minValue=0.930000;
				maxValue=0.980000;
				angle1="rad +1.0";
			};
			class recoil_Shake_HlavenY_END:recoil_Shake_HlavenY
			{
				minValue=0.980000;
				maxValue=1.0;
				angle0="rad +1.0";
				angle1=0;
			};
			class recoil_Shake_HlavenZ:recoil_Shake_HlavenX
			{
				type="rotationZ";
				minValue=0.950000;
				maxValue=0.990000;
				angle1="rad -1.5";
			};
			class recoil_Shake_HlavenZ_END:recoil_Shake_HlavenZ
			{
				minValue=0.980000;
				maxValue=1.00000;
				angle0="rad -1.5";
				angle1=0;
			};
			class recoil_Shake_VezX:recoil_Shake_HlavenX
			{
				selection="OtocVez";
				angle1="rad -0.5";
			};
			class recoil_Shake_VezX_END:recoil_Shake_HlavenX_END
			{
				selection="OtocVez";
				angle0="rad -0.5";
				angle1=0;
			};
			class recoil_Shake_VezY:recoil_Shake_HlavenY
			{
				selection="OtocVez";
				angle1="rad -0.25";
			};
			class recoil_Shake_VezY_END:recoil_Shake_HlavenY_END
			{
				selection="OtocVez";
				angle0="rad -0.25";
				angle1=0;
			};
			class recoil_Shake_VezZ:recoil_Shake_HlavenZ
			{
				selection="OtocVez";
				angle1="rad +0.25";
			};
			class recoil_Shake_VezZ_END:recoil_Shake_HlavenZ_END
			{
				selection="OtocVez";
				angle0="rad +0.25";
				angle1=0;
			};
			// recoils shake END
		};
	};
	class BRAF_M114: BRAF_M114Cannon
	{
		skeletonName="BRAF_M114";
		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";
			};
			class MainGunT: MainGun {source="mainGunT_source";};
			class MainTurretT: MainTurret {source="MainTurretT_source";};
			class leftT
			{
				type="rotationY";
				source="leftT_source";
				selection="leftT";
				axis="osa_L";
				animPeriod=1;
				minValue="-2.3";
				maxValue="0";
				angle0="0";
				angle1="-2.3";
			};
			class rightT
			{
				type="rotationY";
				source="rightT_source";
				selection="rightT";
				axis="osa_R";
				animPeriod=1;
				minValue="0";
				maxValue="2.3";
				angle0="0";
				angle1="2.3";
			};
			class leftW
			{
				type="rotationX";
				source="leftW_source";
				selection="leftW";
				axis="osa_W";
				animPeriod=1;
				minValue="-1.7";
				maxValue="0";
				angle0="0";
				angle1="-1.7";
			};
			class rightW
			{
				type="rotationX";
				source="rightW_source";
				selection="rightW";
				axis="osa_W";
				animPeriod=1;
				minValue="-1.7";
				maxValue="0";
				angle0="0";
				angle1="-1.7";
			};
			class wheels
			{
				type="rotationX";
				source="wheel";
				selection="wheels";
				axis="wheels_axis";
				animPeriod=1;
				minValue="-1.7";
				maxValue="0";
				angle0="0";
				angle1="-1.7";
			};
			class szpilki
			{
				type="hide";
				source="szpilki_source";
				sourceAddress="mirror";
				selection="szpilki";
				minValue=0.0;
				maxValue=0.5;
				hideValue=0.56;
			};



			// 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";
			};
			class recoil_BEGIN
			{
				type="translation";
				source="recoil_source";
				selection="recoil";
				axis="recoil_axis";
				memory=1;
				minValue=0.92;
				maxValue=0.99;
				offset0=0;
				offset1=-2.0;
			};
			class recoil_END:recoil_BEGIN
			{
				minValue=0.99;
				maxValue=1.0;
				offset0=0;
				offset1=2.0;
			};
		};
	};
};