mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-14 03:32:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
79
dependencies/reboot/Project Reboot 3.0/FortAthenaCreativePortal.h
vendored
Normal file
79
dependencies/reboot/Project Reboot 3.0/FortAthenaCreativePortal.h
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
#pragma once
|
||||
|
||||
#include "BuildingActor.h"
|
||||
#include "FortVolume.h"
|
||||
#include "Stack.h"
|
||||
|
||||
struct FCreativeLoadedLinkData
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
class AFortAthenaCreativePortal : public ABuildingActor // ABuildingGameplayActor
|
||||
{
|
||||
public:
|
||||
static inline void (*TeleportPlayerToLinkedVolumeOriginal)(UObject* Context, FFrame& Stack, void* Ret);
|
||||
static inline void (*TeleportPlayerOriginal)(UObject* Context, FFrame& Stack, void* Ret);
|
||||
|
||||
FCreativeLoadedLinkData* GetIslandInfo()
|
||||
{
|
||||
static auto CreativeLoadedLinkDataStruct = FindObject<UStruct>("/Script/FortniteGame.CreativeLoadedLinkData");
|
||||
|
||||
if (!CreativeLoadedLinkDataStruct)
|
||||
return nullptr;
|
||||
|
||||
static auto IslandInfoOffset = GetOffset("IslandInfo");
|
||||
return GetPtr<FCreativeLoadedLinkData>(IslandInfoOffset);
|
||||
}
|
||||
|
||||
void* GetOwningPlayer()
|
||||
{
|
||||
static auto OwningPlayerOffset = GetOffset("OwningPlayer", false);
|
||||
|
||||
if (OwningPlayerOffset == -1)
|
||||
return nullptr;
|
||||
|
||||
return GetPtr<void>(OwningPlayerOffset);
|
||||
}
|
||||
|
||||
bool& GetPortalOpen()
|
||||
{
|
||||
static auto bPortalOpenOffset = GetOffset("bPortalOpen");
|
||||
return Get<bool>(bPortalOpenOffset);
|
||||
}
|
||||
|
||||
bool& GetUserInitiatedLoad()
|
||||
{
|
||||
static auto bUserInitiatedLoadOffset = GetOffset("bUserInitiatedLoad");
|
||||
return Get<bool>(bUserInitiatedLoadOffset);
|
||||
}
|
||||
|
||||
bool& GetInErrorState()
|
||||
{
|
||||
static auto bInErrorStateOffset = GetOffset("bInErrorState");
|
||||
return Get<bool>(bInErrorStateOffset);
|
||||
}
|
||||
|
||||
AFortVolume*& GetLinkedVolume()
|
||||
{
|
||||
static auto LinkedVolumeOffset = GetOffset("LinkedVolume");
|
||||
return Get<AFortVolume*>(LinkedVolumeOffset);
|
||||
}
|
||||
|
||||
FString& GetCreatorName()
|
||||
{
|
||||
auto IslandInfo = GetIslandInfo();
|
||||
|
||||
if (!IslandInfo)
|
||||
{
|
||||
return *(FString*)0;
|
||||
}
|
||||
|
||||
static auto CreatorNameOffset = FindOffsetStruct("/Script/FortniteGame.CreativeLoadedLinkData", "CreatorName");
|
||||
return *(FString*)(__int64(IslandInfo) + CreatorNameOffset);
|
||||
}
|
||||
|
||||
static void TeleportPlayerToLinkedVolumeHook(UObject* Context, FFrame& Stack, void* Ret);
|
||||
static void TeleportPlayerHook(UObject* Context, FFrame& Stack, void* Ret);
|
||||
// hook TeleportPlayer ?? but do what with it
|
||||
};
|
||||
Reference in New Issue
Block a user