Jump to content
Sign in to follow this  
road runner

Floating Magazine

Recommended Posts

I have this weird bug ongoing with the MK18MOD0 I released on steam, there's a ghost magazine that appears to the front/side during the unload, just a fleeting apparance, but it's enough to bug the shit out of me, and I really have no idea what caused it.

The model.cfg is pretty much the same one I've used on numerous projects, without this "bug"

The weapon model selection is called "Magazine" it dissapears on the unload as it should, but when it does, this ghost mag appears in front of the weapon.

 

class CfgSkeletons
{
    class Default {
        isDiscrete = 1;
        skeletonInherit = "";
        skeletonBones[] = {};
    };
    class M4CQBRSkeleton: Default
    {
        skeletonBones[]=
        {
			"zasleh", "",
		    "Magazine",
			"Bolt",	"",		
			"camo", 
			"camo1", 
			"camo2", 
			"camo3",
            "camo4"			
        };
    };
};

class CfgModels
{
    class Default {
        selections[] = {};
        selectionsInherit = "";
        skeletonName = "";
    };
    
    class M4CQBRM: Default
    {
        sections[]=
        {
			"zasleh", "",
		    "Magazine",
			"Bolt",	"",		
			"camo", 
			"camo1", 
			"camo2", 
			"camo3",
            "camo4"	};
        skeletonName="M4CQBRSkeleton";
		sectionsInherit="";
        class Animations
        {
            class muzzleflash_hide
            {
                type="hide";
                source="hasSuppressor";
                selection="zasleh";
                minValue = 0.0;
                maxvalue = 0.25;
                hideValue = 0.01;
            };
            class muzzlebreak_hide
            {
                type="hide";
                source="hasSuppressor";
                selection="Break";
                minValue = 0.0;
                maxvalue = 0.25;
                hideValue = 0.01;
            };
		class unloaded_magazine_hide {
				type = "hide";
				source = "hasMagazine";
				selection = "Magazine";
				hideValue = 0.1;
		};
            class magazine_hide
            {
                type="hide";
                source="reloadMagazine";
                selection="Magazine";
                minValue=0.0;
                maxValue=1;
                hideValue=0.15;
                unhideValue=0.59;
            };
            class magazine_move1
            {
                type = "translation";
                source="reloadMagazine";
                selection="Magazine";
                axis = "Magazine_axis";
                minValue = 0.12;
                maxValue = 0.15; //0.09; //"1";
                offset0 = "0";
                offset1 = "1";
            };
            class magazine_move2
            {
                type = "translation";
                source="reloadMagazine";
                selection="Magazine";
                axis = "Magazine_axis";
                minValue = 0.59;
                maxValue = 0.63; //0.09; //"1";
                offset0 = "0";
                offset1 = "-1";
            };
            class magrelease_move1
            {
                type = "translation";
                source="reloadMagazine";
                selection="Magrelease";
                axis = "Magrelease_axis";
                minValue = 0.1;
                maxValue = 0.11; //0.09; //"1";
                offset0 = "0";
                offset1 = "1";
            };
            class magrelease_move2
            {
                type = "translation";
                source="reloadMagazine";
                selection="Magrelease";
                axis = "Magrelease_axis";
                minValue = 0.15;
                maxValue = 0.17; //0.09; //"1";
                offset0 = "0";
                offset1 = "-1";
            };
           class bolt
            {
                type = "translation";
                source = "reload";
                selection = "Bolt";
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0;
                maxValue = 0.5; //0.09; //"1";
                offset0 = "0";
                offset1 = "1";
            };
           class bolt2
            {
                type = "translation";
                source = "reload";
                selection = "Bolt";
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0.5;
                maxValue = 1; //0.09; //"1";
                offset0 = "0";
                offset1 = "-1";
            };       
           class bolt_reload1
            {
                type = "translation";
                source = "reloadmagazine";
                selection = "Bolt";
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0;
                maxValue = 0.0001; //0.09; //"1";
                offset0 = "0";
                offset1 = "1";
            };
           class bolt2_reload
            {
                type = "translation";
                source = "reloadmagazine";
                selection = "Bolt";
                axis = "bolt_axis";
                begin = "bolt_axis_end";
                end = "bolt_axis_begin";
                minValue = 0.71;
                maxValue = 0.73;
                offset0 = "0";
                offset1 = "-1";
            };       
            class bolt_empty
            {
                type="translationx";
	            source = "isEmptyNoReload";
                selection="Bolt";
                axis="";
                animPeriod=0;
                minValue=0;
                maxValue=0.09; //10;
                offset0 = "0";
                offset1 = "1";
            };
     class boltlock_empty
            {
                type="rotation";
                source="isEmpty";
                selection="Boltcatch";
                axis="boltcatch_axis";
                animPeriod=0;
                minValue=0;
                maxValue=1; //10;
	angle1=rad 12;
                	angle0=0;
            };

			class BackSight_optic
	  		{
		     		type="rotation";
		     		source="hasOptics";
		     		selection="BackSight";
		     		axis="BackSight_axis";
		     		memory=1;
		     		minValue=0.0000000;
		     		maxValue=1.0000000;
		     		angle0=0.000000;
		    		angle1=(rad -90);
	        	};

            		class ForeSight_optic: BackSight_optic
	    		{
		     		selection="ForeSight";
		     		axis="ForeSight_axis";
		     		angle1=(rad -90);
	        	};
				
            class FireModeSwitch {
                type="rotationZ";
                source="weaponMode";
                memory=1;
                selection="Selector";
                animPeriod=0;
                axis="Selector_axis";
                minValue=0.0;
                maxValue=0.1;
                minPhase=0.0;
                maxPhase=1.0;
                angle1=rad 90;
                angle0=0;
            };
	class bullet30_hide
	{
	type="hide";
                	hideValue=0.03;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet30";
	};
	class bullet29_hide
	{
	type="hide";
                	hideValue=0.06;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet29";
	};
	class bullet28_hide
	{
	type="hide";
                	hideValue=0.09;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet28";
	};
	class bullet27_hide
	{
	type="hide";
                	hideValue=0.12;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet27";
	};
	class bullet26_hide
	{
	type="hide";
                	hideValue=0.15;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet26";
	};
class bullet25_hide
	{
	type="hide";
	source="revolving";
	selection="Bullet25";
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	hideValue=0.18;
	};
	class bullet24_hide
	{
	type="hide";
                	hideValue=0.21;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet24";
	};
	class bullet23_hide
	{
	type="hide";
                	hideValue=0.24;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet23";
	};
	class bullet22_hide
	{
	type="hide";
                	hideValue=0.27;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet22";
	};
	class bullet21_hide
	{
	type="hide";
                	hideValue=0.3;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet21";
	};
	class bullet20_hide
	{
	type="hide";
                	hideValue=0.33;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet20";
	};
	class bullet19_hide
	{
	type="hide";
                	hideValue=0.36;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet19";
	};
	class bullet18_hide
	{
	type="hide";
                	hideValue=0.39;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet18";
	};
	class bullet17_hide
	{
	type="hide";
    hideValue=0.41;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet17";
	};
	class bullet16_hide
	{
	type="hide";
    hideValue=0.44;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet16";
	};
	class bullet15_hide
	{
	type="hide";
    hideValue=0.47;
	sourceAddress="mirror";
	minValue = -1;
	maxValue = 0;
	minphase = -1;
	maxphase = 0;
	source="revolving";
	selection="bullet15";
	};
            class rounds_empty
            {
	            type="hide";
                source="isEmpty";
                selection="topround";
                axis="boltcatch_axis";
                animPeriod=0;
                minValue=0;
                maxValue=1; //10;
                	hideValue=0.1;
            };
        };
    };

    class UKSF_C8: m4cqbrM {};
    class UKSF_C8_2: m4cqbrM {};
    class M4CQBR_3: m4cqbrM {};		

};

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×