Jump to content
Sign in to follow this  
Αplion

Weapon MG model.cfg issue ?

Recommended Posts

I'm facing a strange issue with an MG weapon I'm working on ... everything is working fine but when I'm selecting my weapon empty from a weapons box I have this strange mini ammo-belt attached at the bottom of my weapon http://prntscr.com/15hfis ... if I'll reload my weapon then the magazine and normal ammo-belt are taking place and this "mini ammo-belt" is going off http://prntscr.com/15hfxd .... but still ... if I'll empty all ammo in magazine ... it re-appearing !! http://prntscr.com/15hg7z (my normal ammo-belt is now hidden as is empty).

I'm pretty sure that is some kind of model.cfg problem but I can't find it so far ...

Below is my model.cfg

class cfgSkeletons
{
class HAFM_M249_Skeleton
{
	isDiscrete=0;
	skeletonInherit="";
	skeletonBones[]=
	{
		"magazine",
		"",
		"trigger",
		"",
		"charging_handle",
		"",
		"ammo_belt",
		""
	};
};
};
class CfgModels
{

class HAFM_M249
{
	sectionsInherit="";
	sections[]=
	{
		"magazine",
		"zasleh",
		"trigger",
		"charging_handle",
		"ammo_belt"
	};
	skeletonName="HAFM_M249_Skeleton";
	class Animations
	{
		class reload_magazine_hide
		{
			type="hide";
			source="reloadMagazine";
			selection="magazine";
			minValue=-0.40000001;
			maxValue=0.40000001;
			minPhase=-0.40000001;
			maxPhase=0.40000001;
			hideValue=0.75;
			sourceAddress="mirror";
		};

		class charging_handle
		{
			type="translationX";
			source="reload";
			selection="charging_handle";
			axis="charging_handle_axis";
			sourceAddress="loop";
			animPeriod=1;
			memory=1;
			minValue="0";
			maxValue="0.1";
			angle0="0";
			angle1="-0.1";
		};

		class trigger
		{
			type="translationX";
			source="reload";
			selection="trigger";
			axis="trigger_axis";
			sourceAddress="loop";
			memory=0;
			minValue=0;
			maxValue="0.05";
			angle0="0";
			angle1="-0.05";
		};

		class ammo_belt
		{
			type="Rotation";
			source="reload";
			selection="ammo_belt";
			axis="ammo_belt_axis";
			sourceAddress="loop";
			animPeriod=1;
			memory=1;
			minValue=0;
			maxValue="5";
			angle0="0";
			angle1="5";
		};
		class ammo_belt_hide
		{
			type="hide";
			source="reloadMagazine";
			selection="ammo_belt";
			hidevalue=0.75;
		};
		class unloaded_magazine_hide {
			type = "hide";
			source = "hasMagazine";
			selection = "magazine";
			hideValue = 0.1;
		};

		class ammobelt_empty_hide
		{
			type="hide";
			source="isEmpty";
			selection="ammo_belt";
			minValue=0.000000;
			maxValue=1.000000;
			hideValue=1.000000;
		};
	};
};

class HAFM_M249_muzzle: HAFM_M249{};
};

Any help will be much appreciated.

Edited by Aplion

Share this post


Link to post
Share on other sites

class cfgSkeletons
{
   class HAFM_M249_Skeleton
   {
       isDiscrete=[b]1[/b];
       skeletonInherit="";
       skeletonBones[]=
       {
           "magazine",
           "",
           "trigger",
           "",
           "charging_handle",
           "",
           "ammo_belt",
           ""
       };
   };
};

Make sure isdiscrete is set to a value of 1.

Share this post


Link to post
Share on other sites

Yeap ... that solve my issue !!!

Thanks a lot Jackal326 ... appreciated mate.

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  

×