Jump to content
Sign in to follow this  
DeltaFr_Owl

M249 model.cfg

Recommended Posts

Greetings all,

I was searching an answer on this forum to a little problem which currently drive me mad... and found nothing.

So that's why I'm requesting your help. :)

I'm working on a m249 minimi. I took the ArmA1 BIS model and I replaced the original 200 rounds mag by a 100 rounds one.

My problem is that now the ammo belt anim doesn't work properly with this 100 rounds mag.

So I'm wondering if someone could give me the model.cfg of the m249 for ArmA2:OA or tell me where to find it in my ArmA2 folder.

Thx a lot.

Share this post


Link to post
Share on other sites

you won't be able to find the model.cfgs separatly, those are embeded in the p3d on binarization.

You can get Mikero's Model.Cfg Extract and get that from the m249.p3d.

Share this post


Link to post
Share on other sites

Thanx PuFu,

But I already try ExtractModelCfg and it didn't work...

Maybe I don't know how to use it because when I execute the .exe it returns me the following error :

??1FileString@@QAE@XZ is missing in dynamic links library DePbo.dll

I put DePbo.dll in my system32 folder and even try different versions and nothing... always the same error :(

Share this post


Link to post
Share on other sites

put the pbo.dll in the same folder with the extractModelCfg.exe

Share this post


Link to post
Share on other sites

Ok, the DePbo version I used was too old...

Now I can launch ExtractModelCfg.exe and open the DOS window.

But... as I am a lucky guy... when I press a key (to enter the command line) this window close immediatly...

I'm on Win7, so I tried different compatbilty mode and also tried DePbo in version 3.59, 3.58 and 3.57 and always the same thing.

Share this post


Link to post
Share on other sites

read its txt would be a great start.

ExtractModelCfg NameOfP3d[.p3d]

You need to use the existing cmd (start->run->cmd) to use Mikeros tools (minus eliteness). Having the .p3d file in the same folder as the tools would help

chdir "~location_of_ExtractModelCfg.exe~" then

ExtractModelCfg.exe p3dName.p3d or

ExtractModelCfg.exe "~location_of_p3d~\P3DName.p3d"

Edited by PuFu

Share this post


Link to post
Share on other sites

Huge Thank Pufu,

I'm sorry but i'm not very familiar with MSDOS :o

and the only thing I have in the readme is :

ExtractModelCfg Version 1.xx by Mikero

see readmegeneral.txt

----------------------

minddll is 3.41

1.66

made compat to dll

1.64

made compaitble

fixes @ 1.63

corrected output to modelname.cfg

-------------------------------------------------------

Extract P3d re-creates the model.cfg file (if any) from an odolv40/48 (arma/arma2) p3d

usage

ExtractModelCfg NameOfP3d[.p3d]

output will be to NameOfP3d.cfg

It works now but I have a invalid message error with m249_iron.p3d...

I continue searching.

Thanks again ! :)

Share this post


Link to post
Share on other sites

here u go

class CfgSkeletons
{
class Default
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
class MachineGun : Default
{
	SkeletonBones[]=
	{
		"magazine","",
		"ammo_belt_cover02","magazine",
		"magazine_belt","magazine",
		"trigger","",
		"ammo_belt","",
		"ammo_belt_bottom","ammo_belt",
		"bullet010","ammo_belt",
		"bullet009","bullet010",
		"bullet008","bullet009",
		"bullet007","bullet008",
		"bullet006","bullet007",
		"bullet005","bullet006",
		"bullet004","bullet005",
		"bullet003","bullet004",
		"bullet002","bullet003",
		"bullet001","bullet002",
		"feedtray_cover","",
		"ammo_belt_cover","feedtray_cover",
		"misc_cover","feedtray_cover",
		"bolt","",
		"fake_bullet","",
		"bullet007hide","",
		"bullet_cover","",
		"optics","",
	};
};
};
class CfgModels
{
class Default
{
	sections[] = {};
	sectionsInherit="";
	skeletonName = "";
};
class Name_Of_Your_Model : Default
{
	skeletonName="MachineGun";
	sections[]=
	{
		"zasleh",
	};
	class Animations
	{
		class magazine_hide
		{
			type="hide";
			hideValue=0.5;
			minValue=0;
			maxValue=0.4;
			minPhase=0;
			maxPhase=0.4;
			source="reloadMagazine";
			sourceAddress=2;
			selection="magazine";
		};
		class reload_ammobelt_hide
		{
			type="hide";
			hideValue=0.5;
			minValue=0;
			maxValue=0.4;
			minPhase=0;
			maxPhase=0.4;
			source="reloadMagazine";
			sourceAddress=2;
			selection="ammo_belt";
		};
		class reload_ammobelt_bottom_hide
		{
			type="hide";
			hideValue=0.5;
			minValue=0;
			maxValue=0.4;
			minPhase=0;
			maxPhase=0.4;
			source="reloadMagazine";
			sourceAddress=2;
			selection="ammo_belt_bottom";
		};
		class ammobelt_hide
		{
			type="hide";
			hideValue=1;
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			source="isEmpty";
			sourceAddress=2;
			selection="ammo_belt";
		};
		class ammobelt_bottom_hide
		{
			type="hide";
			hideValue=1;
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			source="isEmpty";
			sourceAddress=2;
			selection="ammo_belt_bottom";
		};
		class ammo_belt
		{
			type="rotation";
			angle0=-0.12;
			angle1=0.06;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0.3;
			maxValue=1;
			minPhase=0.3;
			maxPhase=1;
			source="reload";
			sourceAddress=0;
			selection="ammo_belt";
		};
		class ammo_belt_bottom
		{
			type="rotation";
			angle0=-0.15;
			angle1=-0.5;
			axis="feedtray_cover_axis";
			memory=1;
			minValue=0.3;
			maxValue=1;
			minPhase=0.3;
			maxPhase=1;
			source="reload";
			sourceAddress=0;
			selection="ammo_belt_bottom";
		};
		class ammo_belt_shake_01
		{
			type="translation";
			offset0=0;
			offset1=0.05;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet002";
		};
		class ammo_belt_shake_02
		{
			type="translation";
			offset0=0;
			offset1=0.05;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet003";
		};
		class ammo_belt_shake_03
		{
			type="translation";
			offset0=0;
			offset1=0.025;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet004";
		};
		class ammo_belt_shake_05
		{
			type="translation";
			offset0=0;
			offset1=-0.025;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet006";
		};
		class ammo_belt_shake_06
		{
			type="translation";
			offset0=0;
			offset1=-0.05;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet007";
		};
		class ammo_belt_shake_08
		{
			type="translation";
			offset0=0;
			offset1=-0.025;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet009";
		};
		class ammo_belt_rotation_shake_01
		{
			type="rotation";
			angle0=0;
			angle1=-0.5235988;
			axis="ammo_belt_bottom_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet001";
		};
		class ammo_belt_rotation_shake_02
		{
			type="rotation";
			angle0=0;
			angle1=0.08726646;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet002";
		};
		class ammo_belt_rotation_shake_03
		{
			type="rotation";
			angle0=0;
			angle1=0.4363323;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="bullet003";
		};
		class magazine_shake
		{
			type="rotationZ";
			angle0=-0.008726646;
			angle1=0.008726646;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="magazine";
		};
		class magazine_shake02
		{
			type="rotationX";
			angle0=0.004363323;
			angle1=-0.004363323;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.25;
			minPhase=0;
			maxPhase=0.25;
			source="reload";
			sourceAddress=2;
			selection="magazine";
		};
		class magazine_shake03
		{
			type="rotationY";
			angle0=0.005759587;
			angle1=-0.005759587;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=0.5;
			minPhase=0;
			maxPhase=0.5;
			source="reload";
			sourceAddress=2;
			selection="magazine";
		};
		class ammo_belt_rotation_shake_static_01
		{
			type="rotation";
			angle0=0;
			angle1=0.1745329;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0;
			maxValue=3;
			minPhase=0;
			maxPhase=3;
			source="time";
			sourceAddress=2;
			selection="bullet004";
		};
		class ammo_belt_rotation_shake_static_02
		{
			type="rotation";
			angle0=0;
			angle1=0.08726646;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0.1;
			maxValue=3.5;
			minPhase=0.1;
			maxPhase=3.5;
			source="time";
			sourceAddress=2;
			selection="bullet003";
		};
		class ammo_belt_rotation_shake_static_03
		{
			type="rotation";
			angle0=0;
			angle1=0.1745329;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0.2;
			maxValue=4;
			minPhase=0.2;
			maxPhase=4;
			source="time";
			sourceAddress=2;
			selection="bullet002";
		};
		class bolt_begin
		{
			type="translation";
			offset0=0;
			offset1=0.5;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0.15;
			maxValue=0.2;
			minPhase=0.15;
			maxPhase=0.2;
			source="reloadMagazine";
			sourceAddress=0;
			selection="bolt";
		};
		class bolt_end
		{
			type="translation";
			offset0=0;
			offset1=-0.5;
			axis="ammo_belt_axis";
			memory=1;
			minValue=0.8;
			maxValue=0.9;
			minPhase=0.8;
			maxPhase=0.9;
			source="reloadMagazine";
			sourceAddress=0;
			selection="bolt";
		};
		class Bullet001
		{
			type="hide";
			hideValue=0.94501;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet001";
		};
		class Bullet002
		{
			type="hide";
			hideValue=0.95001;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet002";
		};
		class Bullet003
		{
			type="hide";
			hideValue=0.95501;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet003";
		};
		class Bullet004
		{
			type="hide";
			hideValue=0.96001;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet004";
		};
		class Bullet005
		{
			type="hide";
			hideValue=0.96501;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet005";
		};
		class Bullet006
		{
			type="hide";
			hideValue=0.97001;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet006";
		};
		class Bullet007
		{
			type="hide";
			hideValue=0.97501;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet007";
		};
		class Bullet008
		{
			type="hide";
			hideValue=0.98001;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet008";
		};
		class Bullet009
		{
			type="hide";
			hideValue=0.98501;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet009";
		};
		class Bullet010
		{
			type="hide";
			hideValue=0.99001;
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			source="revolving";
			sourceAddress=2;
			selection="bullet010";
		};
		class feedtray_cover_up
		{
			type="rotation";
			angle0=0;
			angle1=-0.7853982;
			axis="feedtray_cover_axis";
			memory=1;
			minValue=0;
			maxValue=0.1;
			minPhase=0;
			maxPhase=0.1;
			source="reloadMagazine";
			sourceAddress=0;
			selection="feedtray_cover";
		};
		class feedtray_cover_down
		{
			type="rotation";
			angle0=0;
			angle1=0.7853982;
			axis="feedtray_cover_axis";
			memory=1;
			minValue=0.95;
			maxValue=1;
			minPhase=0.95;
			maxPhase=1;
			source="reloadMagazine";
			sourceAddress=0;
			selection="feedtray_cover";
		};
	};
};
};

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  

×