Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make animations configurable and compositable #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oversword
Copy link

This is basically a re-write and should be taken as a suggestion, I understand if the creators don't want the mod to be taken in this direction.

This was all done to facilitate a new sneak animation I want to implement, instead of just adding a new animation for every combination (like walk_mine does) we should make all animations independent so they can be combined in any way you like.

Features:

  • Allow multiple animations at once by compositing them
  • Allow users to register their own animations
  • Allow users to assign animations to players
  • Allow the speed of the animation to be set
  • Allow rotation on sneak to be disabled

Changes:

  • Add a global for the mod to provide an API for users to configure their own animations
  • Move all localisation of helper functions to one place
  • Change all animations to modify only the parts of the model they affect
  • Move looking head and lagging body to options in the animation registration
  • Change model files to have clear separation of the bones and the specific animation settings
  • Re-write the main function to allow for all of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant