-
Notifications
You must be signed in to change notification settings - Fork 177
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
Refactor: WeaponState, AutoAttackState #1345
Conversation
mariamatthews
commented
Mar 27, 2025
- Redefined IsUnsheathed (0x00), SheatheCooldown (0x04), AutoSheathTimer (0x08), and AutoSheatheState (0x0C).
- Deprecated the embedded AutoAttackState at 0x10 (now managed globally via DAT_142921510).
- Added Tick, SetUnsheathed, and SetUnsheathed2 and other methods with updated signatures.
- Revised AutoAttackState interop with SetImpl, Get, and a global binding via Instance().
- Updated data.yml to reflect context and current implementation.
Updated WeaponState interop: - Defined IsUnsheathed (0x00), SheatheCooldown (0x04), AutoSheathTimer (0x08), and AutoSheatheState (0x0C). - Deprecated the embedded AutoAttackState at 0x10 (now managed globally via DAT_142921510). - Added Tick, SetUnsheathed, and SetUnsheathed2 and other methods with updated signatures. - Revised AutoAttackState interop with SetImpl, Get, and a global binding via Instance(). - Updated data.yml to reflect context and current implementation.
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.
Everything listed has to be changed before even looking at the sigs.
Thanks for corrections! - Updated Signatures to better calls - Updated comments on SetUnsheathed - Restored and added OnActorControl (thanks for spotting this) - Removed AutoAttackState Global as requested
Heya. Just in case you don't know: the GitHub Action is is comparing your branch with the current main branch. |
Hi @Haselnussbomber! I thought it might be the case - I should have merged main in first, apologies! |
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.
Task failed.
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.
Some wrong defined methods that needs to be fixed.
- Updated parameter types and names - removed unnecessary parameters
Quick question about the automated check reporting: Breaking Changes This seems to be triggered because the original metadata defined this offset as a simple bool, whereas we now explicitly define it as a struct (AutoAttackState). Is this something I need to address, or is it safe to ignore? |
It's fine in this case and safe to ignore. |
- Keeping obsolete isAutoAttacking for removal later.