Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Hand Move Offset enhancements

Open TheNinjaScout opened this issue 1 year ago • 0 comments

Walk/Run/Crouch animations have a new boolean parameter: "ApplyHandMoveOffsetWhenStationary", set to false by default

When set to true, the hands of the character will move into the position defined by "HandMoveOffset" even when it is standing still.

Additionally, the horizontal value of the Hand Move Offset parameter no longer changes sign when the character moves backwards.

To elaborate on that change mentioned at the bottom of the commit message, this is currently happens on the public Barotrauma branch when you decide you want to make a humanoid character walk with their arms forwards

https://github.com/user-attachments/assets/487c1ffa-b2f5-414e-8306-2885529a8d40

While here's what happens with the modifications made in this PR (namely, checking to see if the character is flipped to decide the horizontal sign of the hand offset instead of the sign of the horizontal movement value)

https://github.com/user-attachments/assets/527e22a1-ad11-40d8-b838-0eca53d9b973

And finally, an example of the new "ApplyHandMoveOffsetWhenStationary" parameter at work:

https://github.com/user-attachments/assets/5ed53e19-db22-4704-9960-824a24037a56

TheNinjaScout avatar Sep 10 '24 00:09 TheNinjaScout