Implemented Unleash gauge hooks

- Implements "Unleash Cancel" to allow cancelling Unleash after activating it.
- Implements out of control fixes to prevent the gauge from draining when the player cannot utilise it.
This commit is contained in:
Hyper
2024-10-20 02:54:49 +01:00
parent bdfa5e874f
commit dd74392279
9 changed files with 77 additions and 2 deletions
@@ -0,0 +1,14 @@
#pragma once
#include "SWA.inl"
#include "SWA/Player/Character/EvilSonic/EvilSonicContext.h"
namespace SWA::Player
{
class CEvilSonic
{
public:
SWA_INSERT_PADDING(0xC4);
xpointer<CEvilSonicContext> m_spContext;
};
}
@@ -11,5 +11,7 @@ namespace SWA::Player
be<float> m_DarkGaiaEnergy;
SWA_INSERT_PADDING(0x138);
be<uint32_t> m_AnimationID;
SWA_INSERT_PADDING(0x104);
be<uint32_t> m_OutOfControlCount;
};
}