mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fix cheat god, fix 1.7.2, 1.8, 2.4.2, and probably 2.5, add rocket event idk couldnt test, fix some crashes.
15 lines
662 B
C++
15 lines
662 B
C++
#include "NetConnection.h"
|
|
|
|
bool UNetConnection::ClientHasInitializedLevelFor(const AActor* TestActor) const {
|
|
// return true;
|
|
static auto ClientHasInitializedLevelForAddr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC 20 48 8B 5A 20 48 8B F1 4C 8B C3").Get();
|
|
|
|
if (!ClientHasInitializedLevelForAddr)
|
|
return true;
|
|
|
|
static bool (*ClientHasInitializedLevelForOriginal)(const UNetConnection * Connection, const AActor * TestActor)
|
|
= decltype(ClientHasInitializedLevelForOriginal)(ClientHasInitializedLevelForAddr);
|
|
// ^ This is virtual but it doesn't really matter
|
|
|
|
return ClientHasInitializedLevelForOriginal(this, TestActor);
|
|
} |