madrussian 347 Posted May 24, 2008 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. 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. Anyhow, I'm a little baffled here. Â Does anyone have any experience in this area or perhaps some suggestions? Thanks in advance. MadRussian Share this post Link to post Share on other sites