From 1282273da9a7ef34eca42f2219deac1109065cb3 Mon Sep 17 00:00:00 2001 From: "okknots@gmail.com" Date: Wed, 20 Dec 2023 11:50:03 +0300 Subject: [PATCH] Fixed May's dolphin hurtbox rotation. --- README.md | 1 + ggxrd_hitbox_overlay/collectHitboxes.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 3afab02..14df94b 100644 --- a/README.md +++ b/README.md @@ -458,3 +458,4 @@ Dependencies are better described in each project's README.md. Short version is, - 2023 November 29: Fixed a crash when quitting a match/training session while the mod is running. - 2023 December 12: Made some fixes in code related to thread safety. - 2023 December 13: Tried to fix an issue with hotkeys not working during frame freeze. +- 2023 December 20: Fixed May's dolphin hurtbox rotation. diff --git a/ggxrd_hitbox_overlay/collectHitboxes.cpp b/ggxrd_hitbox_overlay/collectHitboxes.cpp index cbfed1c..69450d7 100644 --- a/ggxrd_hitbox_overlay/collectHitboxes.cpp +++ b/ggxrd_hitbox_overlay/collectHitboxes.cpp @@ -73,6 +73,9 @@ void collectHitboxes(const Entity& ent, callParams.hitboxData = hurtboxData; callParams.hitboxCount = hurtboxCount; callParams.params = params; + callParams.params.angle = *(int*)(ent + 0x258); + callParams.params.hitboxOffsetX = *(int*)(ent + 0x27C); + callParams.params.hitboxOffsetY = *(int*)(ent + 0x280); DWORD alpha = 64; if (state.strikeInvuln) { alpha = 0;