Jump to content
Sign in to follow this  
GSTAVO

"weaponMode" do not rotate properly in game

Recommended Posts

Hi! I'm having a issue with the animation of the fire mode selector of a gun that i'm doing.

The issue is that the angle of rotation that I set in model.cfg do not work as indeed in game but in external view is perfect.

 

Right position:

490QGGD.png

 

Wrong:

R5zHe7I.png

 

Here is the code of model.cfg:

Quote

            class safety_mode_rot
            {
                type="rotation";
                source="weaponMode";
                selection="safety";
                sourceAddress="clamp";
                axis="safety_axis"
                minPhase=0;
                maxPhase=0.5;
                minValue=0;
                maxValue=0.5;
                memory=0;
                angle0=-0.785398; 
                angle1=-3.66519;
            };

 

Anyone know what is causing this?

Thanks

Share this post


Link to post
Share on other sites

take into the account hidden AI modes (all modes[] in weapon array are used by weaponMode source). You are most likely using wrong max value

  • Like 1

Share this post


Link to post
Share on other sites
11 hours ago, reyhard said:

take into the account hidden AI modes (all modes[] in weapon array are used by weaponMode source). You are most likely using wrong max value

That's it. Thank you very much!!! =)

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  

×