Jump to content
Sign in to follow this  
madrussian

Broken animation transitions

Recommended Posts

Hello.  With the final patch out now, there are still some missing animation transitions.  Sakura-Chan had thankfully fixed some of them a while back, but there are still a few problems left.  With so many things working so well now in ArmA, I thought I'd take a crack at fixing the remaining broken animation transitions for once and all.

I've got a decent handle on how the transition system works after looking at what Sakura-Chan did... or well I thought I did. confused_o.gif

Here's a chunk of the code that should affect transitions from Sprinting Forward Erect with Rifle Raised, or in the anim code "AmovPercMsprSrasWrflDf".  (You may want to widen your browser to see this correctly):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">...

class AmovPercMsprSrasWrflDf : SprintBaseDf {

connectTo[] = {"AmovPercMstpSrasWrflDnon", 0.025, "AmovPknlMstpSrasWrflDnon", 0.1, "AmovPercMsprSrasWrflDf", 0.1,  "AmovPercMrunSrasWrflDf", 0.1};

connectFrom[] = {"AmovPercMstpSrasWrflDnon", 0.025, "AmovPknlMstpSrasWrflDnon", 0.1, "AmovPercMsprSrasWrflDf", 0.1,  "AmovPercMrunSrasWrflDf", 0.1};

interpolateFrom[] = {"AmovPercMstpSrasWrflDnon", 0.025, "AmovPercMrunSrasWrflDf",   0.02, "AmovPercMsprSrasWrflDfl", 0.05,"AmovPercMsprSrasWrflDfr", 0.05};

interpolateTo[] = {"AmovPknlMstpSrasWrflDnon", 0.1, "AmovPercMstpSrasWrflDnon", 0.025, "AmovPercMrunSrasWrflDf", 0.02, "AmovPercMsprSrasWrflDfl", 0.05, "AmovPercMsprSrasWrflDfr", 0.05};

...

First of all, it seems obvious that the numbers here are lengths of time over which the transitions occur.  So in an effort to see how everything here is associated, I started to modify specific numbers to see if I could detect any change in game.  Idea being, if I set one of the periods of time to a big number, like 3, that particular transition would be easily recognizible.  (btw- I was using the animationState command in the editor to verify which animation state I was transitioning from and to.)

Unfortunately, I wasn't having much luck, so I tried a blanket approach (changing all of the numbers to 3) to see if that would do the trick, like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">...

class AmovPercMsprSrasWrflDf : SprintBaseDf {

connectTo[] = {"AmovPercMstpSrasWrflDnon", 3, "AmovPknlMstpSrasWrflDnon", 3, "AmovPercMsprSrasWrflDf", 3, "AmovPercMrunSrasWrflDf", 3};

connectFrom[] = {"AmovPercMstpSrasWrflDnon", 3, "AmovPknlMstpSrasWrflDnon", 3, "AmovPercMsprSrasWrflDf", 3, "AmovPercMrunSrasWrflDf", 3};

interpolateFrom[] = {"AmovPercMstpSrasWrflDnon", 3, "AmovPercMrunSrasWrflDf", 3, "AmovPercMsprSrasWrflDfl", 3, "AmovPercMsprSrasWrflDfr", 3};

interpolateTo[] = {"AmovPknlMstpSrasWrflDnon", 3, "AmovPercMstpSrasWrflDnon", 3, "AmovPercMrunSrasWrflDf", 3, "AmovPercMsprSrasWrflDfl", 3, "AmovPercMsprSrasWrflDfr", 3};

...

Still no change. wow_o.gif

Anyhow, I'm a little baffled here.  Does anyone have any experience in this area or perhaps some suggestions?

Thanks in advance. smile_o.gif

MadRussian

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  

×