mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02: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:
@@ -73,6 +73,21 @@ static void ApplyCID(AFortPlayerPawn* Pawn, UObject* CID, bool bUseServerChooseP
|
||||
// PlayerState->Get(HeroTypeOffset) = HeroDefinition;
|
||||
}
|
||||
|
||||
struct FGhostModeRepData
|
||||
{
|
||||
bool& IsInGhostMode()
|
||||
{
|
||||
static auto bInGhostModeOffset = FindOffsetStruct("/Script/FortniteGame.GhostModeRepData", "bInGhostMode");
|
||||
return *(bool*)(__int64(this) + bInGhostModeOffset);
|
||||
}
|
||||
|
||||
UFortWorldItemDefinition*& GetGhostModeItemDef()
|
||||
{
|
||||
static auto GhostModeItemDefOffset = FindOffsetStruct("/Script/FortniteGame.GhostModeRepData", "GhostModeItemDef");
|
||||
return *(UFortWorldItemDefinition**)(__int64(this) + GhostModeItemDefOffset);
|
||||
}
|
||||
};
|
||||
|
||||
class AFortPlayerControllerAthena : public AFortPlayerController
|
||||
{
|
||||
public:
|
||||
@@ -80,18 +95,28 @@ public:
|
||||
static inline void (*ServerReadyToStartMatchOriginal)(AFortPlayerControllerAthena* PlayerController);
|
||||
static inline void (*ServerRequestSeatChangeOriginal)(AFortPlayerControllerAthena* PlayerController, int TargetSeatIndex);
|
||||
static inline void (*EnterAircraftOriginal)(UObject* PC, AActor* Aircraft);
|
||||
static inline void (*StartGhostModeOriginal)(UObject* Context, FFrame* Stack, void* Ret);
|
||||
static inline void (*EndGhostModeOriginal)(AFortPlayerControllerAthena* PlayerController);
|
||||
|
||||
AFortPlayerStateAthena* GetPlayerStateAthena()
|
||||
{
|
||||
return (AFortPlayerStateAthena*)GetPlayerState();
|
||||
}
|
||||
|
||||
FGhostModeRepData* GetGhostModeRepData()
|
||||
{
|
||||
static auto GhostModeRepDataOffset = GetOffset("GhostModeRepData");
|
||||
return GetPtr<FGhostModeRepData>(GhostModeRepDataOffset);
|
||||
}
|
||||
|
||||
UAthenaMarkerComponent* GetMarkerComponent()
|
||||
{
|
||||
static auto MarkerComponentOffset = GetOffset("MarkerComponent");
|
||||
return Get<UAthenaMarkerComponent*>(MarkerComponentOffset);
|
||||
}
|
||||
|
||||
static void StartGhostModeHook(UObject* Context, FFrame* Stack, void* Ret); // we could native hook this but eh
|
||||
static void EndGhostModeHook(AFortPlayerControllerAthena* PlayerController);
|
||||
static void EnterAircraftHook(UObject* PC, AActor* Aircraft);
|
||||
static void ServerRequestSeatChangeHook(AFortPlayerControllerAthena* PlayerController, int TargetSeatIndex); // actually in zone
|
||||
static void ServerRestartPlayerHook(AFortPlayerControllerAthena* Controller);
|
||||
|
||||
Reference in New Issue
Block a user