class CfgSkeletons
{
    class M20A1_skel
    {
        isDiscrete=1;
        skeletonInherit="";
        skeletonBones[]={"magazine", "", "trigger", "", "tube_front", "", "safety_load", "", "sight_swing", "", "sight_guard", "sight_swing", "rubber_guard", "", "safety_trigger", ""};
    };
};
class CfgModels
{
    class M20A1
    {
        htMin=0;
        htMax=0;
        afMax=0;
        mfMax=0;
        mFact=0;
        tBody=0;
        skeletonName="M20A1_skel";
        sectionsInherit="";
        sections[]={"safety_trigger", "trigger", "magazine", "tube_front", "sight_guard", "sight_swing", "rubber_guard"};
        class Animations
        {
            class tube_front_1
            {
                type="rotationy";
                source="isselected";
                selection="tube_front";
                sourceAddress="clamp";
				axis = "fold_axis";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                angle0=-3.141593;
                angle1=0;
            };
            class sight_swing_closed
            {
                type="rotationy";
                source="isselected";
                selection="sight_swing";
                sourceAddress="clamp";
				axis = "sight_swing_axis";
                minPhase=0.2;
                maxPhase=1;
                minValue=0.2;
                maxValue=1;
                memory=0;
                angle0=1.570796;
                angle1=0;
            };
            class sight_guard_covered
            {
                type="rotationz";
                source="isselected";
                selection="sight_guard";
                sourceAddress="clamp";
				axis = "sight_guard_axis";
                minPhase=0.75;
                maxPhase=1;
                minValue=0.75;
                maxValue=1;
                memory=0;
                angle0=-1.570796;
                angle1=0;
            };
            class rubber_guard_hide
            {
                type="hide";
                source="isselected";
                selection="rubber_guard";
                sourceAddress="clamp";
                minPhase=0.95;
                maxPhase=1;
                minValue=0.95;
                maxValue=1;
                memory=0;
                hideValue=0;
                unHideValue=0.002;
            };
            class safety_on
            {
                type="translationy";
                source="hasmagazine";
                selection="safety_trigger";
                sourceAddress="clamp";
				axis = "safety_trigger_axis";
                minPhase=0;
                maxPhase=0.002;
                minValue=0;
                maxValue=0.002;
                memory=0;
                offset0=0;
                offset1=0;
            };
            class unloaded_magazine_hide
            {
                type="hide";
                source="hasmagazine";
                selection="magazine";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.1;
                unHideValue=-1;
            };
            class magazine_hide
            {
                type="hide";
                source="reloadmagazine";
                selection="magazine";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.15;
                unHideValue=0.4615385;
            };
            class mag_empty
            {
                type="hide";
                source="isempty";
                selection="magazine";
                sourceAddress="clamp";
                minPhase=0;
                maxPhase=1;
                minValue=0;
                maxValue=1;
                memory=0;
                hideValue=0.1;
                unHideValue=-1;
            };
            class rocket_reload_out
            {
                type="translation";
                source="reloadmagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis = "magazine_axis";
                minPhase=0;
                maxPhase=0.1;
                minValue=0;
                maxValue=0.1;
                memory=0;
                offset0=0;
                offset1=2;
            };
            class rocket_reload_in
            {
                type="translation";
                source="reloadmagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis = "magazine_axis";
                minPhase=0.1;
                maxPhase=0.6;
                minValue=0.1;
                maxValue=0.6;
                memory=0;
                offset0=0;
                offset1=0;
            };
            class rocket_reload_rot
            {
                type="rotationx";
                source="reloadmagazine";
                selection="magazine";
                sourceAddress="clamp";
				axis = "magazine_axis";
                minPhase=0.3;
                maxPhase=0.5;
                minValue=0.3;
                maxValue=0.5;
                memory=0;
                angle0=0;
                angle1=2.094395;
            };
            class trigger
            {
                type="rotationz";
                source="reload";
                selection="trigger";
                sourceAddress="clamp";
				axis = "trigger_axis";
                minPhase=0.9;
                maxPhase=1;
                minValue=0.9;
                maxValue=1;
                memory=0;
                angle0=-0.2617994;
                angle1=0;
            };
            class trigger2
            {
                type="rotationz";
                source="reload";
                selection="trigger";
                sourceAddress="clamp";
				axis = "trigger_axis";
                minPhase=0.7;
                maxPhase=0.8;
                minValue=0.7;
                maxValue=0.8;
                memory=0;
                angle0=0.2617994;
                angle1=0;
            };
            class safety_latch
            {
                type="rotationz";
                source="hasmagazine";
                selection="safety_load";
                sourceAddress="clamp";
				axis = "safety_load_axis";
                minPhase=0.1;
                maxPhase=1;
                minValue=0.1;
                maxValue=1;
                memory=0;
                angle0=0.8726646;
                angle1=-0.8726646;
            };
        };
    };
};
