mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a lot
fix 1.11 replication, fix some ltm specific stuff, start on shadow stones, fix some events not having foundations, fix s4-s6 gadgets, fix clear inventory on some versions
This commit is contained in:
@@ -9,6 +9,33 @@
|
||||
|
||||
} */
|
||||
|
||||
TScriptInterface<UFortSafeZoneInterface> AFortGameStateAthena::GetSafeZoneInterface()
|
||||
{
|
||||
int Offset = -1;
|
||||
|
||||
if (Fortnite_Version == 10.40)
|
||||
{
|
||||
// Offset = 0xF60;
|
||||
}
|
||||
|
||||
TScriptInterface<UFortSafeZoneInterface> ScriptInterface{};
|
||||
|
||||
if (Offset != -1)
|
||||
{
|
||||
auto idk = (void*)(__int64(this) + Offset);
|
||||
|
||||
UObject* ObjectPtr = reinterpret_cast<UObject* (*)(__int64)>(((UObject*)idk)->VFTable[0x1])(__int64(idk)); // not actually a uobject but its just how we can get vft
|
||||
|
||||
if (ObjectPtr)
|
||||
{
|
||||
ScriptInterface.ObjectPointer = ObjectPtr;
|
||||
ScriptInterface.InterfacePointer = ObjectPtr->GetInterfaceAddress(UFortSafeZoneInterface::StaticClass());
|
||||
}
|
||||
}
|
||||
|
||||
return ScriptInterface;
|
||||
}
|
||||
|
||||
UFortPlaylist*& AFortGameStateAthena::GetCurrentPlaylist()
|
||||
{
|
||||
static auto CurrentPlaylistInfoOffset = GetOffset("CurrentPlaylistInfo", false);
|
||||
|
||||
Reference in New Issue
Block a user