Skip to content

Script Attachments#140

Merged
themrdemonized merged 10 commits intothemrdemonized:all-in-one-vs2022-wpofrom
xr-lucy:script_attachments
Mar 14, 2025
Merged

Script Attachments#140
themrdemonized merged 10 commits intothemrdemonized:all-in-one-vs2022-wpofrom
xr-lucy:script_attachments

Conversation

@xr-lucy
Copy link
Contributor

@xr-lucy xr-lucy commented Mar 13, 2025

Adds support for script attachments as well as some other goodies necessary for them to work.

Notable additions:

  • Fixed hud_mode for lights
  • Hidden bone transform + access to HudItemData at all times
  • Small render optimization + actor shadow rework
  • on_before_mouse_move callback

xr-lucy added 10 commits March 13, 2025 21:26
Avoid recalculating world/hud Fulltransform, Projection, View, InvView multiple times per frame
Thanks to v2v3v4 for math help!!
Necessary for script attachments and possible future first person body support
Now it's possible to read bone data, etc. from hud items even while they are not attached to the hud at the moment

Added hud mode support to :center() script function to get the center of a hud item model
Now it's possible to read the correct position of a bone even when it's hidden
Script Attachments code ported from 1.6
To be used with Script Attachments
Can be used to read and cancel mouse movement
set_position and set_direction can now be called both with a vector or three numbers
Includes some example usage of script attachments
@themrdemonized themrdemonized merged commit c0c516e into themrdemonized:all-in-one-vs2022-wpo Mar 14, 2025
@themrdemonized
Copy link
Owner

Thanks

themrdemonized added a commit that referenced this pull request Mar 14, 2025
Script Attachments

(cherry picked from commit c0c516e)
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.

2 participants