class CfgSkeletons
{
	class Default
	{
		isDiscrete=1;
		skeletonInherit="";
		skeletonBones[]={};
	};
	class PT92_keleton: Default
	{
		skeletonBones[]=
		{
			"magazine", "",
			"recoil", "",
			"hammer", "",
			"bullet007", "",
			"bullet008", "",
			"charging_handle", "",
			"seletor", "",
			"Sling", "",
			"alsa", "",
			"gatilho", "",
			"zeroing", "",
			"zarelho", "",
			"granada", "",
			"Alca_mira", "",
			"trilho_frontal", "",
			"muzzleFlash", "",
			"optic_rail", "",
			"zasleh", "",
			"bolt", "charging_handle"
			
		};
	};
};
class CfgModels
{
	class Default
	{
		sectionsInherit="";
		sections[]={};
		skeletonName="";
	};
	class PT92: Default
	{
		sections[]=
		{
			"recoil","hammer","zasleh","muzzleFlash","magazine","selector","bolt","optic_rail","mira","zeroing","alsa","zarelho","trilho_frontal","granada","Sling","camo","camo1","camo2","camo3","camo4","camo5"
		};
		skeletonName="PT92_keleton";
		sectionsInherit="";
		class Animations
		{
			class gatilho_move_2
            {
                type="translation";
                source="reload";
				axis="gatilho_axis";
                selection="gatilho";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=0.6;
                minValue=0.5;
                maxValue=0.75;
                memory=0;
                offset0=0;
                offset1=-0.2;
            };
            
            class gatilho_move_1
            {
                type="translation";
                source="reload";
				axis="gatilho_axis";
                selection="gatilho";
                sourceAddress="clamp";
                minPhase=0.6;
                maxPhase=1;
                minValue=0.75;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=0.2;
            };			
            class magazine_hasmag_hide
            {
                type="hide";
                source="hasmagazine";
                selection="magazine";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.5;
                unHideValue=-1;
            };
            class magazine_reloadmag_hide
            {
                type="hide";
                source="reloadmagazine";
                selection="magazine";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.245;
                unHideValue=0.59;
            };
            class magazine_reloadmag_move_1
            {
                type="translation";
                source="reloadmagazine";
                selection="magazine";
				axis = "magazine_axis";
                sourceAddress="clamp";
                minPhase=0.18;
                maxPhase=0.245;
                minValue=0.18;
                maxValue=0.245;
                memory=0;
                offset0=0;
                offset1=1.5;
            };
            class magazine_reloadmag_move_2
            {
                type="translation";
                source="reloadmagazine";
                selection="magazine";
				axis = "magazine_axis";
                sourceAddress="clamp";
                minPhase=0.59;
                maxPhase=0.69;
                minValue=0.59;
                maxValue=0.69;
                memory=0;
                offset0=0;
                offset1=-1.5;
            };
			class hammer_reload_rot_2
            {
                type="rotation";
                source="reload";
				axis="hammer_axis";
                selection="hammer";
                sourceAddress="clamp";
                minPhase=0.6;
                maxPhase=0.9;
                minValue=0.0;
                maxValue=0.25;
                memory=0;
                angle0=0;
                angle1=-1.570796;
            };
             class hammer_reload_rot_1
            {
                type="rotation";
                source="reload";
				axis="hammer_axis";
                selection="hammer";
                sourceAddress="clamp";
                minPhase=0.9;
                maxPhase=1;
                minValue=0.25;
                maxValue=0.5;
                memory=0;
                angle0=0;
                angle1=1.570796;
            };
			
			class bolt_reload_move_2
            {
                type="translation";
                source="reload";
				axis="bolt_axis";
                selection="bolt";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=0.6;
                minValue=0.5;
                maxValue=0.75;
                memory=0;
                offset0=0;
                offset1=-0.2;
            };
            
            class bolt_reload_move_1
            {
                type="translation";
                source="reload";
				axis="bolt_axis";
                selection="bolt";
                sourceAddress="clamp";
                minPhase=0.6;
                maxPhase=1;
                minValue=0.75;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=0.2;
            };
           
            class bolt_empty_move
            {
                type="translation";
                source="isempty";
				axis="bolt_axis";
                selection="bolt";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=0.6;
                minValue=0;
                maxValue=0.6;
                memory=0;
                offset0=0;
                offset1=-0.2;
            };
	       	class alsa
			{
				type="rotation";
				source="reload";
				selection="alsa";
				axis="alsa_axis";
				minValue=0;
				maxValue="0.5";
				angle0="rad 30";
				angle1="rad 0";
			};
	       	class alsa2
			{
				type="rotation";
				source="reload";
				selection="alsa";
				axis="alsa_axis";
				minValue=0.5;
				maxValue="0";
				angle0="rad 0";
				angle1="rad 30";
			};
	       	class zarelho
			{
				type="rotation";
				source="reload";
				selection="zarelho";
				axis="zarelho_axis";
				minValue=0;
				maxValue="0.5";
				angle0="50";
				angle1="0";
			};
	       	class zarelho2
			{
				type="rotation";
				source="reload";
				selection="zarelho";
				axis="zarelho_axis";
				minValue=0.5;
				maxValue="0";
				angle0="0";
				angle1="50";
			};

			class muzzleFlashROT
			{
				type="rotationX";
				source="ammoRandom";      //use ammo count as phase for animation
				sourceAddress="loop";     //loop when phase out of bounds
				selection="zasleh";  //selection we want to rotate
				axis="";                  //no own axis - center of rotation is computed from selection
				centerFirstVertex=true;   //use first vertex of selection as center of rotation
				minValue=0;
				maxValue=4;               //rotation angle will be 360/4 = 90 degrees
				angle0="rad 0";
				angle1="rad 360";
            };
		};
	};	
};