-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(extra-natives/five): GET_ENTITY_HEALTH_FLOAT #2274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually try to patternify offsets, but since it's CPhysical
I guess there's a very little chance this offset would ever be changed. So LGTM, tested on all game builds.
@Disquse Any reason not to add this as a function (maybe with a field) to |
I don't like how we are using |
Should also decide whether this native should be allowed to write to any arbitrary entity/script-extension instead of using |
I'll add an |
Yes. That is one of its many issues. |
Currently only the C# runtime has a way to obtain this (
Entity.HealthFloat
)