player hud: scripts can drive the hand animations, show empty hands and offset each hand (linked PR #4) - #677
Open
TheLostInPlace wants to merge 9 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
LINKED PR # 4
This PR was split into a 4 part PR due to the size and to aid in reviewing changes
Changes
Script bindings on the player hud so a mod can move the hands without holding an invisible item.
While initially made with Wearable Devices in mind, nothing in it is tied/specific to
that mod.
game.set_hud_offsetandgame.clear_hud_offset, and script motions that keep playing while freelook is onsection
models
the old motions
counted so a script can check
callbacks_gameobject.script:actor_hud_on_script_anim_end(part,section, motion, reason) and
actor_hud_on_hands_changed(new and old hands section)Nothing changes unless a script calls the new functions, the bare hands mode is off by default.
Every new export is listed in
lua_help_ex.script. Built DX11-AVX x64, tested in game with theWearable Devices mod. Merges into the MT branch without conflicts.