Jump to content
Sign in to follow this  
alduric

Wierd animations problem

Recommended Posts

Okay guys! Hello! 1st of all - Sorry for my weak english - I hope u will understand me.

I got a problem, i made two weapons, those weapons are in separated .pbo's and they working fine. Problem comes out when i tried to do animations. I make proper selections on model, i made model.cfg - All works fine on 1st model. I made same on 2nd model - And now nothing - 0 animations. BUT when i delete 1st or 2nd pbo from my mod folder, the other gun works fine. It looks like some conflict between those mods.

Any1 had problem like this? Can help me?

1st model.cfg

class CfgSkeletons

{

class Default

{

isDiscrete=1;

skeletonInherit="";

skeletonBones[]={};

};

class tb_arifle_m16a4_base: Default

{

skeletonBones[]=

{

"magazine",

"bolt"

};

};

};

class CfgModels

{

class Default

{

sectionsInherit="";

sections[]={};

skeletonName="";

};

class tb_arifle_m16a4_base: Default

{

sections[]=

{

"magazine",

"bolt"

};

skeletonName="tb_arifle_m16a4_base";

class Animations

{

};

};

class Beryl_96: tb_arifle_m16a4_base

{

class Animations

{

class magazine_reload_move_1

{

type = "translation";

source = "reloadMagazine";

selection = "magazine";

axis = "magazine_axis";

minValue = 0.145;

maxValue = 0.170;

offset0 = 0.0;

offset1 = 0.5;

};

class magazine_hide

{

type = "hide";

source = "reloadMagazine";

selection = "magazine";

axis = "magazine_axis";

minValue = 0.000000;

maxValue = 1.00000;

hideValue = 0.220;

unhideValue = 0.550;

};

class bolt_empty

{

type="translation";

source="isempty";

selection="bolt";

memory=1;

sourceAddress="clamp";

minValue=0;

maxValue=1;

begin="bolt_start";

end="bolt_end";

offset0=0;

offset1=1;

};

class bolt

{

type = "translation";

source = "reload";

selection = "bolt";

axis = "bolt_axis";

minValue = 0;

maxValue = "1";

offset0 = "0";

offset1 = "1";

};

class bolt_empty_1

{

type="translation";

source="reloadMagazine";

selection="bolt";

memory=0;

sourceAddress="clamp";

minValue=0;

maxValue=1;

begin="bolt_start";

end="bolt_end";

offset0=0;

offset1=1;

};

class bolt_empty_2

{

type="translation";

source="revolving";

selection="bolt";

memory=1;

sourceAddress="clamp";

minValue=1;

maxValue=1;

begin="bolt_start";

end="bolt_end";

offset0=0;

offset1=1;

};

};

};

};

2nd model.cfg

class CfgSkeletons

{

class Default

{

isDiscrete=1;

skeletonInherit="";

skeletonBones[]={};

};

class tb_arifle_m16a4_base: Default

{

skeletonBones[]=

{

"magazine",

"bolt"

};

};

};

class CfgModels

{

class Default

{

sectionsInherit="";

sections[]={};

skeletonName="";

};

class tb_arifle_m16a4_base: Default

{

sections[]=

{

"magazine",

"bolt"

};

skeletonName="tb_arifle_m16a4_base";

class Animations

{

};

};

class Beryl_2004: tb_arifle_m16a4_base

{

class Animations

{

class magazine_reload_move_1

{

type = "translation";

source = "reloadMagazine";

selection = "magazine";

axis = "magazine_axis";

minValue = 0.145;

maxValue = 0.170;

offset0 = 0.0;

offset1 = 0.5;

};

class magazine_hide

{

type = "hide";

source = "reloadMagazine";

selection = "magazine";

axis = "magazine_axis";

minValue = 0.000000;

maxValue = 1.00000;

hideValue = 0.220;

unhideValue = 0.550;

};

class bolt_empty

{

type="translation";

source="isempty";

selection="bolt";

memory=1;

sourceAddress="clamp";

minValue=0;

maxValue=1;

begin="bolt_start";

end="bolt_end";

offset0=0;

offset1=1;

};

class bolt

{

type = "translation";

source = "reload";

selection = "bolt";

axis = "bolt_axis";

minValue = 0;

maxValue = "1";

offset0 = "0";

offset1 = "1";

};

class bolt_empty_1

{

type="translation";

source="reloadMagazine";

selection="bolt";

memory=0;

sourceAddress="clamp";

minValue=0;

maxValue=1;

begin="bolt_start";

end="bolt_end";

offset0=0;

offset1=1;

};

class bolt_empty_2

{

type="translation";

source="revolving";

selection="bolt";

memory=1;

sourceAddress="clamp";

minValue=1;

maxValue=1;

begin="bolt_start";

end="bolt_end";

offset0=0;

offset1=1;

};

};

};

};

Share this post


Link to post
Share on other sites
I make proper selections on model, i made model.cfg - All works fine on 1st model. I made same on 2nd model

first model is named after demo model so no good as you need own name in model.cfg, p3d and config .cpp class

second model also needs different name or wont work so mygun and mygun1 in p3d ,model.cfg and config.cpp

skeleton can remain same sname for everything bu not others.

Share this post


Link to post
Share on other sites

@up

My model name is Beryl_96 (Beryl_93.p3d) and Beryl_2004 (Beryl_2004.p3d)

Like in mine configs

class Beryl_96: tb_arifle_m16a4_base / class Beryl_2004: tb_arifle_m16a4_base

Or i dont understand it...

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  

×