Jump to content
Sign in to follow this  
Sakai

"unloaded_magazine_hide" Not working as it should

Recommended Posts

Hey guys! I've found a strange bug in a model OR model.cfg as in my model.cfg theres "class unloaded_magazine_hide" aka:

class unloaded_magazine_hide {
			type = "hide";
			source = "hasMagazine";
			selection = "magazine";
			hideValue = 0.1;
		};

Which is suppose to animate a gun having no magazine when its unloaded, HOWEVER! when you load the magazine in the animation seems to be still bugged and not make the magazine appear...

Any idea whats up with this? I used it multiple time and this never happened to me until now.

Share this post


Link to post
Share on other sites

Been one day and I really need help with this even tho I do not want to bump it :|

Any clever fella?

Share this post


Link to post
Share on other sites

My amateur thoughts, is the source defined correctly?

Share this post


Link to post
Share on other sites
My amateur thoughts, is the source defined correctly?

Now thats a good question... Another question how should I "define it"? I mean hell I used the same config back in my AFCR mod and ArmA 3 it worked perfectly now something is wrong... But what, where, how O.o

Share this post


Link to post
Share on other sites
Now thats a good question... Another question how should I "define it"? I mean hell I used the same config back in my AFCR mod and ArmA 3 it worked perfectly now something is wrong... But what, where, how O.o

how its the magazine defined in the p3d model? is it called magazine?

Share this post


Link to post
Share on other sites
how its the magazine defined in the p3d model? is it called magazine?

Yes it is.

Share this post


Link to post
Share on other sites

bump... Still didnt get to fix it...

Share this post


Link to post
Share on other sites

Through trial and error this worked for me on my project. Original code was from the Kaybar model.cfg and I just killed the other anims and played with the hideValue till it worked.

class no_magazine
{
type="hide";
source="hasMagazine";
selection="magazine";
minValue = 0.0;//rad 0.0
maxValue = 1.0;//rad 57.29578
minPhase = 0.0;//rad 0.0
maxPhase = 1.0;//rad 57.29578
hideValue = 1.0;
};

I'm brand new to arma modding but my guess is the true hide/unhide commands for the vanilla animations are in other configs or maybe the new rtfs. Seems like a lot of stuff is //'d out that would be important like the animation axes, etc.

edit: forgot to add that I have an unhide value on the magazine reload animation so that might be what's doing it too.

class magazine_hide
{
type="hide";
source="reloadMagazine";
selection="magazine";
minValue = 0.0;//rad 0.0
maxValue = 1.0;//rad 57.29578
minPhase = 0.0;//rad 0.0
maxPhase = 1.0;//rad 57.29578
hideValue = 0.2;
unhideValue = 0.25;

Edited by ataboo

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  

×