Skip to content

Commit

Permalink
Auto-attack related functions. (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil authored Jan 20, 2025
1 parent 6e839b8 commit 3190841
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
12 changes: 11 additions & 1 deletion FFXIVClientStructs/FFXIV/Client/Game/UI/WeaponState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@ public struct WeaponState {
[FieldOffset(0x04)] public float SheatheCooldown;
[FieldOffset(0x08)] public float AutoSheathTimer;
[FieldOffset(0x0C)] public bool AutoSheatheState;
[FieldOffset(0x10)] public bool IsAutoAttacking;
[FieldOffset(0x10)] public AutoAttackState AutoAttackState; // note: not sure whether this is actually a part of this structure or next field of a parent
[FieldOffset(0x10), Obsolete("Use AutoAttackState.IsAutoAttacking")] public bool IsAutoAttacking;
}

[GenerateInterop]
[StructLayout(LayoutKind.Explicit, Size = 1)]
public partial struct AutoAttackState {
[FieldOffset(0)] public bool IsAutoAttacking;

[MemberFunction("E8 ?? ?? ?? ?? EB 15 41 B0 01")]
public partial bool SetImpl(bool value, bool sendPacket, bool isInstant);
}
13 changes: 13 additions & 0 deletions ida/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,19 @@ classes:
instances:
- ea: 0x1427F7240
pointer: False
funcs:
0x14096E620: CanAutoSheathe
0x14096E660: ExtendAutoSheatheTimer
0x14096E6C0: OnActorControlWeaponDrawn
0x14096E770: Tick
0x14096E9A0: SetUnsheathed
0x14096EA60: SetUnsheathed2
Client::Game::UI::AutoAttackState:
funcs:
0x14096EBC0: Get
0x14096EC10: OnActorControl
0x14096EC80: SetImpl
0x14096EDC0: Set
Client::Game::UI::PlayerState:
instances:
- ea: 0x1427F7258
Expand Down

0 comments on commit 3190841

Please sign in to comment.