From 3e122f93cc63fad0db076913b57a686e1706c1a1 Mon Sep 17 00:00:00 2001 From: Gray <84999745+Milxnor@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:48:28 -0500 Subject: [PATCH] thanks jyzo (cant believe im saying this) --- Project Reboot 3.0/FortGameModeAthena.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Project Reboot 3.0/FortGameModeAthena.h b/Project Reboot 3.0/FortGameModeAthena.h index 0a8bab5..b78792f 100644 --- a/Project Reboot 3.0/FortGameModeAthena.h +++ b/Project Reboot 3.0/FortGameModeAthena.h @@ -121,8 +121,12 @@ static void ShowFoundation(AActor* BuildingFoundation, bool bShow = true) static auto DynamicFoundationTypeOffset = BuildingFoundation->GetOffset("DynamicFoundationType", false); - if (DynamicFoundationTypeOffset != -1) + bool bChangeDynamicFoundationType = Fortnite_Version < 13; + + if (DynamicFoundationTypeOffset != -1 && bChangeDynamicFoundationType) + { BuildingFoundation->Get(DynamicFoundationTypeOffset) = bShow ? Static : StartDisabled; + } /* static auto bShowHLODWhenDisabledOffset = BuildingFoundation->GetOffset("bShowHLODWhenDisabled", false); @@ -272,4 +276,4 @@ public: static int Athena_PickTeamHook(AFortGameModeAthena* GameMode, uint8 preferredTeam, AActor* Controller); static void Athena_HandleStartingNewPlayerHook(AFortGameModeAthena* GameMode, AActor* NewPlayerActor); static void SetZoneToIndexHook(AFortGameModeAthena* GameModeAthena, int OverridePhaseMaybeIDFK); -}; \ No newline at end of file +};