mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-23 16:32:22 +00:00
Fix Homing Attack on Jump not affecting Cool Edge Act 3 (Day) (#904)
Some checks are pending
validate-internal / build (push) Waiting to run
Some checks are pending
validate-internal / build (push) Waiting to run
This commit is contained in:
parent
c64ef1fe15
commit
a9e280e116
3 changed files with 19 additions and 7 deletions
|
|
@ -318,6 +318,18 @@ void PostureSpaceHurrierDPadSupportYMidAsmHook(PPCRegister& pPadState, PPCVRegis
|
||||||
vector.f32[3] = -1.0f;
|
vector.f32[3] = -1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetXButtonHomingMidAsmHook(PPCRegister& r1)
|
||||||
|
{
|
||||||
|
auto pXButtonHoming = (bool*)(g_memory.base + r1.u32 + 0x63);
|
||||||
|
|
||||||
|
*pXButtonHoming = !Config::HomingAttackOnJump;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsHomingAttackOnJump()
|
||||||
|
{
|
||||||
|
return Config::HomingAttackOnJump;
|
||||||
|
}
|
||||||
|
|
||||||
// ------------- WORLD MAP ------------- //
|
// ------------- WORLD MAP ------------- //
|
||||||
|
|
||||||
bool WorldMapDeadzoneMidAsmHook(PPCRegister& pPadState)
|
bool WorldMapDeadzoneMidAsmHook(PPCRegister& pPadState)
|
||||||
|
|
|
||||||
|
|
@ -95,13 +95,6 @@ void PostUnleashMidAsmHook(PPCRegister& r30)
|
||||||
g_isUnleashCancelled = false;
|
g_isUnleashCancelled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetXButtonHomingMidAsmHook(PPCRegister& r1)
|
|
||||||
{
|
|
||||||
auto pXButtonHoming = (bool*)(g_memory.base + r1.u32 + 0x63);
|
|
||||||
|
|
||||||
*pXButtonHoming = !Config::HomingAttackOnJump;
|
|
||||||
}
|
|
||||||
|
|
||||||
// SWA::Player::CEvilSonicContext
|
// SWA::Player::CEvilSonicContext
|
||||||
PPC_FUNC_IMPL(__imp__sub_823B49D8);
|
PPC_FUNC_IMPL(__imp__sub_823B49D8);
|
||||||
PPC_FUNC(sub_823B49D8)
|
PPC_FUNC(sub_823B49D8)
|
||||||
|
|
|
||||||
|
|
@ -197,11 +197,18 @@ address = 0x823A4FF0
|
||||||
registers = ["r4", "r5"]
|
registers = ["r4", "r5"]
|
||||||
return_on_false = true
|
return_on_false = true
|
||||||
|
|
||||||
|
# Set default value for XButtonHoming.
|
||||||
[[midasm_hook]]
|
[[midasm_hook]]
|
||||||
name = "SetXButtonHomingMidAsmHook"
|
name = "SetXButtonHomingMidAsmHook"
|
||||||
address = 0x8237AC90
|
address = 0x8237AC90
|
||||||
registers = ["r1"]
|
registers = ["r1"]
|
||||||
|
|
||||||
|
# Disable XML reading for XButtonHoming.
|
||||||
|
[[midasm_hook]]
|
||||||
|
name = "IsHomingAttackOnJump"
|
||||||
|
address = 0x8237ACE4
|
||||||
|
jump_address_on_true = 0x8237ACE8
|
||||||
|
|
||||||
# Down force HFR fix
|
# Down force HFR fix
|
||||||
[[midasm_hook]]
|
[[midasm_hook]]
|
||||||
name = "DownForceDeltaTimeFixMidAsmHook"
|
name = "DownForceDeltaTimeFixMidAsmHook"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue