class CfgSkeletons
{
	class Default
	{
		isDiscrete=1;
		skeletonInherit="";
		skeletonBones[]={};
	};
	class braf_mag_100_keleton: Default
	{
		skeletonBones[]=
		{
			"magazine", "",
			"bipod_leg_l", "",
			"bipod_leg_r", "",
			"bipod_legs", "",
			"bipe", "",
			"feedtray_cover", "",
			"bullet001", "",
			"bullet002", "",
			"bullet003", "",
			"bullet004", "",
			"bullet005", "",
			"bullet006", "",
			"bullet007", "",
			"bullet008", "",
			"charging_handle", "",
			"selector", "",
			"Sling", "",
			"alsa", "",
			"zeroing", "",
			"zarelho", "",
			"granada", "",
			"mira", "",
			"trilho_frontal", "",
			"muzzleFlash", "",
			"optic_rail", "",
		
			"zasleh", "",
			"bolt", "charging_handle"
			
		};
	};
};
class CfgModels
{
	class Default
	{
		sectionsInherit="";
		sections[]={};
		skeletonName="";
	};
	class braf_mag_100: Default
	{
		sections[]=
		{
			"zasleh","muzzleFlash","magazine","selector","bolt","optic_rail","mira","zeroing","alsa","zarelho","trilho_frontal","granada","Sling","bipe"
		};
		skeletonName="braf_mag_100_keleton";
		sectionsInherit="";
		class Animations
		{
		    class optic_rail
           	{
               	type="hide";
               	source="hasOptics";
               	selection="optic_rail";
               	minValue=0;
               	maxValue=1;
				hideValue=-1.0;
				unhideValue = 0.5;


            };
		    class acessory_rail
           	{
               	type="hide";
               	source="hasAccessory";
               	selection="trilho_frontal";
               	minValue=0;
               	maxValue=1;
				hideValue=-1.0;
				unhideValue = 0.5;


            };
			//class Sling_hide
			//{
			//	type="hide";
			//	source="isSelected"; //bipod
			//	selection="Sling";
			//	minValue=0;
			//	maxValue=1;
			//	hideValue = 1.0;
			//	unhideValue =-0.5;
			//};
            class ammo_belt
            {
                type="rotation";
                source="reload";
                selection="ammo_belt";
                sourceAddress="clamp";
                axis="ammo_belt";
                minPhase=0.3;
                maxPhase=1;
                minValue=0.3;
                maxValue=1;
                memory=0;
                angle0=-0.12;
                angle1=0.06;
            };
           class bullet001_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet001";
                sourceAddress="clamp";
				axis="bullet001_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0;
            };
            class bullet001_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet001";
                sourceAddress="clamp";
				axis="bullet001_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet001_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet001";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.065;
            };
            class bullet002_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet002";
                sourceAddress="clamp";
				axis="bullet002_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0;
            };
            class bullet002_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet002";
                sourceAddress="clamp";
				axis="bullet002_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet002_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet002";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.06;
            };
            class bullet003_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet003";
                sourceAddress="clamp";
				axis="bullet003_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0;
            };
            class bullet003_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet003";
                sourceAddress="clamp";
				axis="bullet003_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet003_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet003";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.055;
            };
            class bullet004_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet004";
                sourceAddress="clamp";
				axis="bullet004_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0;
            };
            class bullet004_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet004";
                sourceAddress="clamp";
				axis="bullet004_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet004_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet004";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.05;
            };
            class bullet005_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet005";
                sourceAddress="clamp";
				axis="bullet005_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0;
            };
            class bullet005_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet005";
                sourceAddress="clamp";
				axis="bullet005_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet005_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet005";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.045;
            };
            class bullet006_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet006";
                sourceAddress="clamp";
				axis="bullet006_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0.4014257;
            };
            class bullet006_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet006";
                sourceAddress="clamp";
				axis="bullet006_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet006_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet006";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.04;
            };
            class bullet007_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet007";
                sourceAddress="clamp";
				axis="bullet007_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0.2617994;
            };
            class bullet007_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet007";
                sourceAddress="clamp";
				axis="bullet007_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet007_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet007";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.035;
            };
            class bullet008_reload_rot
            {
                type="rotation";
                source="reload";
                selection="bullet008";
                sourceAddress="clamp";
				axis="bullet008_rot_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=0;
                angle1=0.2617994;
            };
            class bullet008_reload_move
            {
                type="translation";
                source="reload";
                selection="bullet008";
                sourceAddress="clamp";
				axis="bullet008_move_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                offset0=0;
                offset1=1;
            };
            class bullet008_revolving_hide
            {
                type="hide";
                source="revolving";
                selection="bullet008";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.03;
            };
            class magazine_hide
            {
                type="hide";
                source="reloadMagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis="magazine_reload_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.296;
                unHideValue=0.352;
            };
            class no_magazine
            {
                type="hide";
                source="hasMagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis="magazine_reload_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.5;
                unHideValue=-1;
            };
            class magazine_out
            {
                type="translation";
                source="reloadMagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis="magazine_reload_axis";
                minPhase=0.257;
                maxPhase=0.296;
                minValue=0.257;
                maxValue=0.296;
                memory=0;
                offset0=0;
                offset1=0.8;
            };
            class magazine_in
            {
                type="translation";
                source="reloadMagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis="magazine_reload_axis";
                minPhase=0.352;
                maxPhase=0.447;
                minValue=0.352;
                maxValue=0.447;
                memory=0;
                offset0=0;
                offset1=-0.8;
            };
            class magazine_shake
            {
                type="rotationz";
                source="reload";
                selection="magazine";
                sourceAddress="mirror";
                axis="magazine";
                minPhase=0;
                maxPhase=0.5;
                minValue=0;
                maxValue=0.5;
                memory=0;
                angle0=-0.008726646;
                angle1=0.008726646;
            };
            class magazine_shake02
            {
                type="rotationx";
                source="reload";
                selection="magazine";
                sourceAddress="mirror";
				axis="magazine";
                minPhase=0;
                maxPhase=0.25;
                minValue=0;
                maxValue=0.25;
                memory=0;
                angle0=0.004363323;
                angle1=-0.004363323;
            };
            class magazine_shake03
            {
                type="rotationy";
                source="reload";
                selection="magazine";
                sourceAddress="mirror";
				axis="magazine";
                minPhase=0;
                maxPhase=0.5;
                minValue=0;
                maxValue=0.5;
                memory=0;
                angle0=0.005759587;
                angle1=-0.005759587;
            };
            class mira_shake
            {
                type="rotationz";
                source="reload";
                selection="mira";
                sourceAddress="mirror";
                axis="mira";
                minPhase=0;
                maxPhase=0.5;
                minValue=0;
                maxValue=0.5;
                memory=0;
                angle0=-0.008726646;
                angle1=0.008726646;
            };
            class mira_shake02
            {
                type="rotationx";
                source="reload";
                selection="mira";
                sourceAddress="mirror";
				axis="mira";
                minPhase=0;
                maxPhase=0.25;
                minValue=0;
                maxValue=0.25;
                memory=0;
                angle0=0.004363323;
                angle1=-0.004363323;
            };
            class mira_shake03
            {
                type="rotationy";
                source="reload";
                selection="mira";
                sourceAddress="mirror";
				axis="mira";
                minPhase=0;
                maxPhase=0.5;
                minValue=0;
                maxValue=0.5;
                memory=0;
                angle0=0.005759587;
                angle1=-0.005759587;
            };
            class feedtray_cover_up
            {
                type="rotation";
                source="reloadMagazine";
                selection="feedtray_cover";
                sourceAddress="clamp";
                axis="feedtray_cover_axis";
                minPhase=0.063;
                maxPhase=0.115;
                minValue=0.063;
                maxValue=0.115;
                memory=0;
                angle0=0;
                angle1=-1.57;
            };
            class feedtray_cover_down
            {
                type="rotation";
                source="reloadMagazine";
                selection="feedtray_cover";
                sourceAddress="clamp";
                axis="feedtray_cover_axis";
                minPhase=0.694;
                maxPhase=0.731;
                minValue=0.694;
                maxValue=0.731;
                memory=0;
                angle0=0;
                angle1=1.57;
            };
            class backsight_rotate
            {
                type="translation";
                source="zeroing";
                selection="mira";
                axis="mira_axis";
                minValue=0;
                maxValue=1;
                //hideValue=1;
                offset0=0;
                offset1="-0.8";

            };	
            class reload_ammobelt_hide
            {
                type="hide";
                source="reloadMagazine";
                selection="ammo_belt";
                sourceAddress="clamp";
				axis="ammo_belt";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.173;
                unHideValue=0.575;
            };
            class reload_ammobelt_bottom_hide
            {
                type="hide";
                source="reloadMagazine";
                selection="ammo_belt";
                sourceAddress="clamp";
				axis="ammo_belt";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.173;
                unHideValue=0.575;
            };
            class ammo_belt_rotation_out
            {
                type="rotation";
                source="reloadMagazine";
                selection="ammo_belt";
                sourceAddress="clamp";
				axis="ammo_belt";
                minPhase=0.16;
                maxPhase=0.173;
                minValue=0.16;
                maxValue=0.173;
                memory=0;
                angle0=0;
                angle1=1.047198;
            };
            class ammo_belt_rotation_in
            {
                type="rotation";
                source="reloadMagazine";
                selection="ammo_belt";
                sourceAddress="clamp";
				axis="ammo_belt";
                minPhase=0.575;
                maxPhase=0.588;
                minValue=0.575;
                maxValue=0.588;
                memory=0;
                angle0=0;
                angle1=-1.047198;
            };			
            class charge1
			{
				type="translation";
				source="reloadMagazine";
				selection= "bolt";
				axis="bolt_axis";
                minPhase=0.865;
                maxPhase=0.889;
                minValue=0.865;
                maxValue=0.889;
                memory=0;
                offset0=0;
                offset1=2;
			};
	        class charge2
			{
				type="translation";
				source="reloadMagazine";
				selection= "bolt";
				axis="bolt_axis";
				begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minPhase=0.896;
                maxPhase=0.904;
                minValue=0.896;
                maxValue=0.904;
                memory=0;
                offset0=0;
                offset1=-2;
			};
	       	class alsa
			{
				type="rotation";
				source="reload";
				selection="alsa";
				axis="alsa_axis";
				minValue=0;
				maxValue="0.5";
				angle0="rad 20";
				angle1="rad 0";
			};
	       	class alsa2
			{
				type="rotation";
				source="reload";
				selection="alsa";
				axis="alsa_axis";
				minValue=0.5;
				maxValue="0";
				angle0="rad 0";
				angle1="rad 20";
			};
	       	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 bipodleg_l_anim
            {
                type="rotation";
                source="bipod";
                selection="bipod_leg_l";
                sourceAddress="clamp";
				axis="bipod_leg_l_axis";
                minPhase=0;
                maxPhase=0.1;
                minValue=0;
                maxValue=0.1;
                memory=0;
                angle0=0;
                angle1=-1.570796;
            };
            class bipodleg_r_anim
            {
                type="rotation";
                source="bipod";
                selection="bipod_leg_r";
                sourceAddress="clamp";
				axis="bipod_leg_r_axis";
                minPhase=0;
                maxPhase=0.1;
                minValue=0;
                maxValue=0.1;
                memory=0;
                angle0=0;
                angle1=1.570796;
            };
			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";
			};
			class FireModeSwitch
			{
				type = "rotation";
                source="weaponMode";
                memory=1;
                selection="Selector";
                animPeriod=0;
                axis="Selector_axis";
                minValue=0.0;
                maxValue=1;
                minPhase=0.0;
                maxPhase=1;
				angle0= 0;
				angle1="rad 580";
            };
		};
	};
	
	
};