Sleepy rune fix :)

This commit is contained in:
YesseYesseY
2025-07-17 02:08:29 +02:00
parent 9c3d023274
commit 8752228569
3 changed files with 12 additions and 10 deletions

View File

@@ -160,14 +160,12 @@ namespace Calendar
static void (*OnDamageServerSleepyOriginal)(UObject* SleepyProp, FFrame& Stack, void* Ret); static void (*OnDamageServerSleepyOriginal)(UObject* SleepyProp, FFrame& Stack, void* Ret);
static void OnDamageServerSleepyHook(UObject* SleepyProp, FFrame& Stack, void* Ret) static void OnDamageServerSleepyHook(UObject* SleepyProp, FFrame& Stack, void* Ret)
{ {
// TODO: Fix damage im too tired and stupid to fix it rn static auto DamageOffset = FindOffsetStruct("/Game/Athena/Prototype/Blueprints/Sleepy/BP_Sleepy_M.BP_Sleepy_M_C.RootUpdateDamage", "Damage");
float Damage = 50.0f; int Damage = (int)(*(float*)(__int64(Stack.Locals) + DamageOffset));
Stack.StepCompiledIn(&Damage);
static UObject* SleepyM = FindObject("/Game/Athena/Maps/Test/S8/SleepyMap.SleepyMap:PersistentLevel.BP_Sleepy_M_2"); static UObject* SleepyM = FindObject("/Game/Athena/Maps/Test/S8/SleepyMap.SleepyMap:PersistentLevel.BP_Sleepy_M_2");
static UFunction* RootUpdateDamage = SleepyM->FindFunction("RootUpdateDamage"); static UFunction* RootUpdateDamage = SleepyM->FindFunction("RootUpdateDamage");
SleepyM->ProcessEvent(RootUpdateDamage, &Damage); SleepyM->ProcessEvent(RootUpdateDamage, &Damage);
OnDamageServerSleepyOriginal(SleepyProp, Stack, Ret); OnDamageServerSleepyOriginal(SleepyProp, Stack, Ret);
} }
} }

View File

@@ -987,11 +987,11 @@ DWORD WINAPI Main(LPVOID)
} }
*/ */
//if (Fortnite_Version == 8.40) if (Fortnite_Version == 8.40)
//{ {
// Hooking::MinHook::Hook((PVOID)(__int64(GetModuleHandleW(0)) + 0x8BC410), (PVOID)GetMeshNetworkNodeTypeHook, nullptr); Hooking::MinHook::Hook((PVOID)(__int64(GetModuleHandleW(0)) + 0x8BC410), (PVOID)GetMeshNetworkNodeTypeHook, nullptr);
// Hooking::MinHook::Hook((PVOID)(__int64(GetModuleHandleW(0)) + 0x8BC450), (PVOID)GetMeshNetworkNodeTypeHook, nullptr); Hooking::MinHook::Hook((PVOID)(__int64(GetModuleHandleW(0)) + 0x8BC450), (PVOID)GetMeshNetworkNodeTypeHook, nullptr);
//} }
if (Fortnite_Version >= 16 && Fortnite_Version < 19) if (Fortnite_Version >= 16 && Fortnite_Version < 19)
{ {

View File

@@ -992,6 +992,10 @@ static inline void MainUI()
InitSleepy = true; InitSleepy = true;
Hooking::MinHook::Hook(SleepyProp, SleepyProp->FindFunction("OnDamageServer"), Calendar::OnDamageServerSleepyHook, (void**)&Calendar::OnDamageServerSleepyOriginal, false, true); Hooking::MinHook::Hook(SleepyProp, SleepyProp->FindFunction("OnDamageServer"), Calendar::OnDamageServerSleepyHook, (void**)&Calendar::OnDamageServerSleepyOriginal, false, true);
int FiveHundred = 500;
*SleepyM->GetPtr<int>("MaxHealth") = 500;
SleepyM->ProcessEvent(SleepyM->FindFunction("RootSetProgress"), &FiveHundred);
} }
} }
} }