class CfgSkeletons
{
    class Default {
        isDiscrete = 1;
        skeletonInherit = "";
        skeletonBones[] = {};
    };
    class AGLGSkeleton: Default
    {
        skeletonBones[]=
        {
			"Bolt_piece2",	"",
			"bipod_pivot", "",
			"Bolt_piece1",	"Bolt_piece2",
			"Striker_assy", "Bolt_piece2",
			"Striker", "Bolt_piece2",
			"flashgrip", "",
			"Magazine",	"",
			"Ferrolho", "",
			"casing", "Bolt_piece2",
			"Bullet1", "Magazine",
			"Bullet2", "Magazine",
			"Bullet3", "Magazine",
			"Bullet4", "Magazine",
			"Bullet5", "Magazine",
			"follower", "",
			"Trigger",	"",
			"zasleh","",
			"bipod_rail",""
        };
    };
};

class CfgModels
{
    class Default {
        selections[] = {};
        selectionsInherit = "";
        skeletonName = "";
    };
    
    class aglgm: Default
    {
        sections[]=
        {
            "zasleh","Magazine","Bolt_piece2","Trigger","MAin","reciever","Stock","Camo"
        };
        skeletonName="AGLGSkeleton";
	sectionsInherit = "";
        class Animations
        {
		    class bipod_rail
           	{
               	type="hide";
               	source="hasUnderbarrel";
               	selection="bipod_rail";
               	minValue=0;
               	maxValue=1;
				hideValue=1.0;
				unhideValue = -0.5;					
            };
            class muzzleflash_hide
            {
                type="hide";
                source="hasSuppressor";
                selection="zasleh";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.01;
            };
            class railgrip_hide
            {
                type="hide";
		        source="hasAccessory";
                selection="flashgrip";
                minValue = 0;
                maxvalue = 0.5;
                hideValue = 0;
	            unhidevalue = 0.5;
            };

            class bullet1_hide
            {
                type="hide";
                source="revolving";
                selection="bullet1";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.00;
                unhideValue = 0.9;
            };
            class bullet2_hide
            {
                type="hide";
                source="revolving";
                selection="bullet2";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.00;
                unhideValue = 0.8;
            };
            class bullet3_hide
            {
                type="hide";
                source="revolving";
                selection="bullet3";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.00;
                unhideValue = 0.6;
            };
            class bullet4_hide
            {
                type="hide";
                source="revolving";
                selection="bullet4";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.00;
                unhideValue = 0.4;
            };
            class bullet5_hide
            {
                type="hide";
                source="revolving";
                selection="bullet5";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.00;
                unhideValue = 0.2;
            };
            class casing_hide
            {
                type="hide";
                source="isEmpty";
                selection="casing";
                minValue = 0.0;
                maxvalue = 1;
                hideValue = 0.01;
            };
            class bullet1_reload
            {
                type = "translation";
                source = "reload";
                selection = "bullet5";
	            memory=1;
	            axis = "bulletlift_axis";
                minValue = 0.44;
                maxValue = 0.5;
                offset0 = -1;
                offset1 = 0;
            };
            class bullet1_reload2
            {
                type = "translation";
                source = "reload";
                selection = "bullet5";
                memory=1;
                axis = "bolt_axis";
                minValue = 0.44;
                maxValue = 0.5;
                offset0 = -1;
                offset1 = 0;
            };
            class bullet1_reload_reset
            {
                type = "translation";
                source = "reload";
                selection = "bullet5";
                memory=1;
                axis = "bulletlift_axis";
                minValue = 0.01;
                maxValue = 0.02;
                offset0 = 1;
                offset1 = 0;
            };
            class bullet1_reload2_reset
            {
                type = "translation";
                source = "reload";
                selection = "bullet5";
                memory=1;
                axis = "bolt_axis";
                minValue = 0.01;
                maxValue = 0.02;
                offset0 = 1;
                offset1 = 0;
            };
            class bullet1_reload3
            {
                type = "rotation";
                source = "reload";
                selection = "bullet5";
	            memory=1;
	            axis = "bulletrot_axis";
                minValue = 0.46;
                maxValue = 0.48;
	            angle0=0;
                angle1="rad -10";
            };
            class bullet1_reload4
            {
                type = "rotation";
                source = "reload";
                selection = "bullet5";
                memory=1;
                axis = "bulletrot_axis";
                minValue = 0.485;
                maxValue = 0.49;
                angle0=0;
                angle1="rad 10";
            };
            class bolt1
            {
                type = "translation";
                source = "reload";
                selection = "Ferrolho";
                memory=1;
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue=0.3;
                maxValue=0.36;
                offset0 = "0";
                offset1 = 0.05;
            };

            class bolt2
            {
                type = "translation";
                source = "reload";
                selection = "Ferrolho";
	            memory=1;
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0.44;
                maxValue = 0.51; //0.09; //"1";
                offset0 = "0";
                offset1 = 0.95;
            };
            class casing_hide_rechamber
            {
                type="hide";
                source = "reload";
                selection="casing";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.01;
                unhideValue =0.625;
            };

            class bolt3
            {
                type = "translation";
                source = "reload";
                selection = "Ferrolho";
                memory=1;
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0.62;
                maxValue = 0.7; //0.09; //"1";
                offset0 = "0";
                offset1 = -0.95;
            };

            class bolt4
            {
                type = "translation";
                source = "reload";
                selection = "Ferrolho";
	            memory=1;
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue=0.74;
                maxValue=0.78;
                offset0 = "0";
                offset1 = -0.05;
            };
            class follower
            {
                type = "translation";
                source = "revolving";
                selection = "follower";
	            memory=1;
                axis = "follower_axis";
                minValue=0;
                maxValue=1;
                offset0 = 1;
                offset1 = 0;
            };
			 class striker1
            {
                type = "translation";
                source = "reload";
                selection = "striker";
	            memory=1;
                axis = "striker_axis";
                minValue=0.76;
                maxValue=0.8;
                offset0 = 1;
                offset1 = 0;
            };

          class Boltturn1
            {
                type="rotation";
                source="reload";
                selection="Ferrolho";
                axis="bolt_axis";
	            memory=1;
                minValue=0.3;
                maxValue=0.36;
                angle0=0;
                angle1="rad -90";

            };
            class Boltturn2
            {
                type="rotation";
                source="reload";
                selection="Ferrolho";
                axis="bolt_axis";
	            memory=1;
                minValue=0.74;
                maxValue=0.78;
                angle0=0;
                angle1="rad 90";
            };
           class Mag_bolt_rot1
            {
                type="rotation";
                source="reloadmagazine";
                selection="Ferrolho";
                axis="bolt_axis";
	            memory=1;
                minValue=0.04888888888888888888888888888889;
                maxValue=0.05777777777777777777777777777778;
                angle0=0;
                angle1="rad -90";

            };
            class Mag_bolt_rot2
            {
                type="rotation";
                source="reloadmagazine";
                selection="Ferrolho";
                axis="bolt_axis";
	            memory=1;
                minValue=0.85333333333333333333333333333333;
                maxValue=0.86666666666666666666666666666667;
                angle0=0;
                angle1="rad 90";
            };
    
            class Mag_striker_trans1
            {
                type = "translation";
                source = "reloadmagazine";
                selection = "Ferrolho";
                memory=1;
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0.06666666666666666666666666666667;
                maxValue = 0.08444444444444444444444444444444;
                offset0 = "0";
                offset1 = 1;
            };
            class Mag_striker_trans3
            {
                type = "translation";
                source = "reloadmagazine";
                selection = "Bolt_piece2";
	            memory=1;
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0.82666666666666666666666666666667;
                maxValue = 0.85333333333333333333333333333333;
                offset0 = "0";
                offset1 = -1;
            };
            class mag_bullet1_reload
            {
                type = "translation";
                source ="reloadmagazine";
                selection = "bullet5";
				memory=1;
				axis = "bulletlift_axis";
	            minValue = 0.82666666666666666666666666666667;
                maxValue = 0.83555555555555555555555555555556;
                offset0 = 0;
                offset1 = -1;
            };
            class mag_bullet1_reload2
            {
                type = "translation";
                source = "reloadmagazine";
                selection = "bullet5";
				memory=1;
				axis = "bolt_axis";
                minValue = 0.82666666666666666666666666666667;
                maxValue = 0.85333333333333333333333333333333;	
                offset0 = 0;
                offset1 = -1;
            };
            class mag_bullet1_reload3
            {
                type = "rotation";
                source = "reloadmagazine";
                selection = "bullet5";
                memory=1;
                axis = "bulletrot_axis";
				minValue = 0.82666666666666666666666666666667;
                maxValue = 0.83555555555555555555555555555556;
	            angle0=0;
                angle1="rad -10";
            };
            class mag_bullet1_reload4
            {
                type = "rotation";
                source = "reloadmagazine";
                selection = "bullet5";
                memory=1;
                axis = "bulletrot_axis";
				minValue = 0.83555555555555555555555555555556;
                maxValue = 0.85333333333333333333333333333333;
	            angle0=0;
                angle1="rad 10";
            };
            class casing_hide_reload
            {
                type="hide";
                source = "reloadmagazine";
                selection="casing";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.08444444444444444444444444444444;
                unhideValue =0.999;
            };
			class bullet1_hide_reload
            {
                type="hide";
                source = "reloadmagazine";
                selection="Bullet1";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.0001;
                unhideValue =0.7466;
            };
            class bullet2_hide_reload
            {
                type="hide";
                source = "reloadmagazine";
                selection="Bullet2";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.0001;
                unhideValue =0.66666666666666666666666666666667;
            };
            class bullet3_hide_reload
            {
                type="hide";
                source = "reloadmagazine";
                selection="Bullet3";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.0001;
                unhideValue =0.56888888888888888888888888888889;
            };
			class bullet4_hide_reload
            {
                type="hide";
                source = "reloadmagazine";
                selection="Bullet4";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.0001;
                unhideValue =0.46222222222222222222222222222222;
            };
			class bullet5_hide_reload
            {
                type="hide";
                source = "reloadmagazine";
                selection="Bullet5";
                minValue = 0.0;
                maxvalue = 1;
                hideValue =0.0001;
                unhideValue =0.35111111111111111111111111111111;
            };
            class unloaded_magazine_hide
            {
                type = "hide";
                source = "hasMagazine";
                selection = "Magazine";
                hideValue = 0.1;
			};

    };
};
    class aglc: aglgm {};
};