From 4012d554190e64cf031ced2632a4eac7ab16922c Mon Sep 17 00:00:00 2001 From: FloppyDolphin57 <50063641+FloppyDolphin57@users.noreply.github.com> Date: Sun, 29 Aug 2021 12:35:15 -0400 Subject: [PATCH] Fix High Jump (#4486) --- Memory/Hooks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Memory/Hooks.cpp b/Memory/Hooks.cpp index 8f09c3ce..42c92410 100644 --- a/Memory/Hooks.cpp +++ b/Memory/Hooks.cpp @@ -64,6 +64,8 @@ void Hooks::Init() { g_Hooks.Actor_ascendLadderHook = std::make_unique(localPlayerVtable[333], Hooks::Actor_ascendLadder);*/ g_Hooks.Actor_swingHook = std::make_unique(localPlayerVtable[214], Hooks::Actor_swing); + + g_Hooks.JumpPowerHook = std::make_unique(localPlayerVtable[357], Hooks::JumpPower); } } @@ -245,8 +247,8 @@ void Hooks::Init() { g_Hooks.GetGammaHook = std::make_unique(fullbright, Hooks::GetGamma); // Mob::_jumpFromGround - void* jump = reinterpret_cast(FindSignature("48 89 5C 24 10 57 48 83 EC ?? 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 44 24 ?? 48 8B 19 48 8D")); - g_Hooks.JumpPowerHook = std::make_unique(jump, Hooks::JumpPower); + /*void* jump = reinterpret_cast(FindSignature("48 89 5C 24 10 57 48 83 EC ?? 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 44 24 ?? 48 8B 19 48 8D")); + g_Hooks.JumpPowerHook = std::make_unique(jump, Hooks::JumpPower);*/ void* onAppSuspended = reinterpret_cast(FindSignature("48 89 5C 24 ? 48 89 74 24 ? 55 57 41 56 48 8B EC 48 83 EC ? 48 8B F1 E8")); g_Hooks.MinecraftGame_onAppSuspendedHook = std::make_unique(onAppSuspended, Hooks::MinecraftGame_onAppSuspended);