TombEngine icon indicating copy to clipboard operation
TombEngine copied to clipboard

Jump up ledge grab is still hardcoded to Jump forward grab

Open Joey79100 opened this issue 9 months ago • 1 comments

When jumping up and grabbing a ledge, Core always linked to animation 96: the forward jump grab animation. They just skip the beginning. This means you can't have a proper ledge grab animation from jumping up.

In early versions of TR1, they initially made a dedicated animation. Then they decided they didn't like it, but it was kept in the files: animation 29. It looks weird, but it means we have a free slot for this purpose. The code could be changed to link to it instead. As for the animation itself, it can be replaced with the frames of animation 96, so it looks exactly the same with classic animations.

The line to edit would be this one: https://github.com/MontyTRC89/TombEngine/blob/612e7de24389ba7765b6e852831aee9164d0a156/TombEngine/Game/Lara/lara_tests.cpp#L367

Just replace it with:

SetAnimation(item, LA_JUMP_UP_TO_HANG);

And put this animation into LARA's animation 29: 0029_JUMP_UP_TO_HANG.zip

Joey79100 avatar May 05 '24 19:05 Joey79100