Animation specific limb constant angles #15374
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new character animation property "LimbConstantAngles" which is formatted like this: "limbID: constantangle;constanttorque, limbID2: constantangle2;constanttorque2, ..."
This allows specific limbs to assume certain angles with certain torque depending on the currently selected animation, allowing more control over how a character's limbs are posed, especially for non humanoid ones
Limb-defined constantangles and constanttorques will be used if there aren't any animation specific ones for that limb
Constanttorque is no longer applied to limbs if the character is stunned / unconscious (could add a way to circumvent this later, maybe with a limb specific boolean property and/or even an animation-wide one to allow things like custom death poses by swapping animation set after death, but not sure how worth it it is)
Example demonstration video
Example mod overriding husk chimera to add some custom constant torque during run animation