JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.01k stars 612 forks source link

Looping anims played in reverse easily get "stuck" #458

Closed dusty22 closed 6 years ago

dusty22 commented 10 years ago

Topic title says it all.

Play an anim in reverse in the animation.cfg and it tends to get stuck when you change anims rapidly.

ensiform commented 10 years ago

WONTFIX.

Animation sync issues are not fixable in the scope of OpenJK to a point that you would cause compat issues.

dusty22 commented 10 years ago

Naah man, I mean there's a bug in the game's code of how reverse animations are played. Unless are you saying fixing this bug would make JA incompatible with existing mods, by changing the code?

You see, in the animation.cfg, with some of Raven's animations, they all have a framespeed or fps speed right? And if you make this a negative number, it'll play that animation in reverse. This function has a bug however. If it's a looping animation like a walk cycle, and you change over quickly from a forwards-playing animation such as a run, the reverse-playing animation's loop will get stuck on a single frame and you'll float around instead of walking in this particular situation. I'm pretty sure there's nothing you could do to fix this non-codewise unless you rip the animation and manually reverse the frame order.

dusty22 commented 10 years ago

If you ask eezstreet I believe he even knows exactly what causes the bug, unless maybe he already fixed it? I haven't really tested it in OpenJK.