From 47126e9bac7b9ba0498d815aee015249b9867f86 Mon Sep 17 00:00:00 2001 From: Milxnor Date: Sun, 26 Mar 2023 16:47:48 -0400 Subject: [PATCH] fix winning on some versions + someone try 2.5 again pls --- Project Reboot 3.0/finder.h | 13 +++++++++---- Project Reboot 3.0/hooking.h | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Project Reboot 3.0/finder.h b/Project Reboot 3.0/finder.h index 4372683..00d04ac 100644 --- a/Project Reboot 3.0/finder.h +++ b/Project Reboot 3.0/finder.h @@ -543,6 +543,8 @@ static inline uint64 FindCollectGarbage() static inline uint64 FindActorGetNetMode() { + // return 0; + if (Engine_Version == 500) return Memcury::Scanner::FindPattern("48 89 5C 24 ? 57 48 83 EC 20 F6 41 08 10 48 8B D9 0F 85 ? ? ? ? 48 8B 41 20 48 85 C0 0F 84 ? ? ? ? F7 40").Get(); @@ -566,6 +568,9 @@ static inline uint64 FindRemoveFromAlivePlayers() { auto Addrr = Memcury::Scanner::FindStringRef(L"FortGameModeAthena: Player [%s] removed from alive players list (Team [%d]). Player count is now [%d]. Team count is now [%d].", false).Get(); + if (!Addrr) + Addrr = Memcury::Scanner::FindStringRef(L"FortGameModeAthena: Player [%s] removed from alive players list (Team [%d]). Player count is now [%d]. PlayerBots count is now [%d]. Team count is now [%d].", false).Get(); + if (!Addrr) Addrr = Memcury::Scanner::FindStringRef(L"FortGameModeAthena::RemoveFromAlivePlayers: Player [%s] PC [%s] removed from alive players list (Team [%d]). Player count is now [%d]. PlayerBots count is now [%d]. Team count is now [%d].", true, 0, Fortnite_Version >= 18).Get(); // todo check version @@ -690,8 +695,8 @@ static inline uint64 FindGIsServer() // if (Fortnite_Version == 19.10) // return __int64(GetModuleHandleW(0)) + 0xB30CF9D; - if (Fortnite_Version == 2.5) - return __int64(GetModuleHandleW(0)) + 0x46AD735; + // if (Fortnite_Version == 2.5) + // return __int64(GetModuleHandleW(0)) + 0x46AD735; if (Fortnite_Version == 12.41) return __int64(GetModuleHandleW(0)) + 0x804B65A; @@ -794,8 +799,8 @@ static inline uint64 FindDispatchRequest() static inline uint64 FindGIsClient() { - if (Fortnite_Version == 2.5) - return __int64(GetModuleHandleW(0)) + 0x46AD734; + // if (Fortnite_Version == 2.5) + // return __int64(GetModuleHandleW(0)) + 0x46AD734; if (Fortnite_Version == 4.1) return __int64(GetModuleHandleW(0)) + 0x4BF6F17; diff --git a/Project Reboot 3.0/hooking.h b/Project Reboot 3.0/hooking.h index 850d987..eebbab3 100644 --- a/Project Reboot 3.0/hooking.h +++ b/Project Reboot 3.0/hooking.h @@ -101,6 +101,7 @@ inline __int64 GetFunctionIdxOrPtr(UFunction* Function) if ((*(uint8_t*)(NativeAddr + i) == 0x41 && *(uint8_t*)(NativeAddr + i + 1) == 0xFF)) // wtf ue500 { + LOG_INFO(LogDev, "Uhhhhhh report this to milxnor if u not on 19.10 {}", Function->GetName()); bFoundValidate = true; continue; }