From bc296ce505074574a1316fcca6732b21931d2696 Mon Sep 17 00:00:00 2001 From: Gray <84999745+Milxnor@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:47:46 -0500 Subject: [PATCH 01/18] Update dllmain.cpp --- Project Reboot 3.0/dllmain.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Project Reboot 3.0/dllmain.cpp b/Project Reboot 3.0/dllmain.cpp index ab527d9..b65a9f5 100644 --- a/Project Reboot 3.0/dllmain.cpp +++ b/Project Reboot 3.0/dllmain.cpp @@ -462,17 +462,17 @@ DWORD WINAPI Main(LPVOID) Hooking::MinHook::Hook((PVOID)Addresses::ActorGetNetMode, (PVOID)GetNetModeHook2, nullptr); - /* + if (Fortnite_Version > 13) // ermm + { + Hooking::MinHook::Hook(FindObject(L"/Script/FortniteGame.Default__BuildingFoundation"), + FindObject(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationTransform"), + ABuildingFoundation::SetDynamicFoundationTransformHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationTransformOriginal, false, true); - Hooking::MinHook::Hook(FindObject(L"/Script/FortniteGame.Default__BuildingFoundation"), - FindObject(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationTransform"), - ABuildingFoundation::SetDynamicFoundationTransformHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationTransformOriginal, false, true); + Hooking::MinHook::Hook(FindObject(L"/Script/FortniteGame.Default__BuildingFoundation"), + FindObject(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationEnabled"), + ABuildingFoundation::SetDynamicFoundationEnabledHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationEnabledOriginal, false, true); + } - Hooking::MinHook::Hook(FindObject(L"/Script/FortniteGame.Default__BuildingFoundation"), - FindObject(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationEnabled"), - ABuildingFoundation::SetDynamicFoundationEnabledHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationEnabledOriginal, false, true); - - */ /* if (Fortnite_Version == 6.21) // ur trolling 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 02/18] 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 +}; From c3424fb937845944f7c1b753b366cc9068aa7e98 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 22:55:02 +0100 Subject: [PATCH 03/18] Update README.md --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 28a7eeb..a589e96 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,3 @@ # Project Reboot 3.0 -I have quit the community and the project is discontinued 😢. - -S3-S15 (S16-S19 is slightly supported) - -## TODO - -- Rewrite picking up code. -- Rewrite dllmain -- Move hooking to each class (for example, AFortGameModeAthena::InitHooks). +I just wana add some cool shits to this reboot From c00486ae30b158e0a1397b1d6c10824762918326 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 22:56:52 +0100 Subject: [PATCH 04/18] start add snow map to 11.31 --- Project Reboot 3.0/calendar.h | 53 +++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/Project Reboot 3.0/calendar.h b/Project Reboot 3.0/calendar.h index c5d9065..980f2ee 100644 --- a/Project Reboot 3.0/calendar.h +++ b/Project Reboot 3.0/calendar.h @@ -8,7 +8,7 @@ namespace Calendar { static inline bool HasSnowModification() { - return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 19.10; + return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 15.10 || Fortnite_Version == 19.10; } static inline UObject* GetSnowSetup() @@ -40,9 +40,42 @@ namespace Calendar return -1; } + static inline void EnableFog() + { + auto SnowSetup = GetSnowSetup(); + + if (SnowSetup) + { + static auto Onready1 = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_E426AA7F4F2319EA06FBA2B9905F0B24"); + static auto Onready2 = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8"); + static auto refrehsdmap = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C:RefreshMapLocations"); + + auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState(); + + GET_PLAYLIST(GameState) + + struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()}; + + SnowSetup->ProcessEvent(Onready1, &OnReadyParams); + SnowSetup->ProcessEvent(Onready2, &OnReadyParams); + SnowSetup->ProcessEvent(refrehsdmap); // needed? + } + } + + static inline void SetSnowfall(float NewValue) // idk bruh i think setsnow also does this math things who knows + { + static auto SetSnowfallFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnowFall"); + auto SnowSetup = GetSnowSetup(); + + if (SetSnowfallFn && SnowSetup) + { + SnowSetup->ProcessEvent(SetSnowfallFn, &NewValue); + } + } + static inline void SetSnow(float NewValue) { - static auto SetSnowFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") ? FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") : + static auto SetSnowFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") ? FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") : FindObject(L"/Game/Athena/Environments/Landscape/Blueprints/BP_SnowSetup.BP_SnowSetup_C.SetSnow"); auto SnowSetup = GetSnowSetup(); @@ -53,6 +86,8 @@ namespace Calendar auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState(); GET_PLAYLIST(GameState) + + /* struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()}; UFunction* OnReadyFunc = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8"); @@ -64,8 +99,14 @@ namespace Calendar SnowSetup->ProcessEvent(OnReadyFunc, &OnReadyParams); } + */ + LOG_INFO(LogDev, "Called OnReady!"); + SnowSetup->ProcessEvent(SetSnowFn, &NewValue); + + LOG_INFO(LogDev, "Called SetSnow!"); + return; if (NewValue != -1) @@ -85,6 +126,12 @@ namespace Calendar static auto ada = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetFullSnowEd"); SnowSetup->ProcessEvent(ada); + + + } + else + { + LOG_INFO(LogDev, "Failed TO FIND!"); } } -} \ No newline at end of file +} From 541682d0553d69fa69c0582edbe11bea224318a9 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:00:15 +0100 Subject: [PATCH 05/18] full fix snow map 7.3 15.10 11.31 --- Project Reboot 3.0/GameModeBase.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/GameModeBase.cpp b/Project Reboot 3.0/GameModeBase.cpp index 8c2c8a4..0647e06 100644 --- a/Project Reboot 3.0/GameModeBase.cpp +++ b/Project Reboot 3.0/GameModeBase.cpp @@ -8,6 +8,7 @@ #include "DataTableFunctionLibrary.h" #include "FortAthenaMutator_GG.h" #include "FortAthenaMutator_InventoryOverride.h" +#include "calendar.h void AGameModeBase::RestartPlayerAtTransform(AController* NewPlayer, FTransform SpawnTransform) { @@ -262,5 +263,14 @@ APawn* AGameModeBase::SpawnDefaultPawnForHook(AGameModeBase* GameMode, AControll // LOG_INFO(LogDev, "Finish SpawnDefaultPawnFor!"); + static bool bFirst = Fortnite_Version == 11.31 || Fortnite_Version == 15.10; + + if (bFirst) + { + bFirst = false; + // Calendar::EnableFog(); + Calendar::SetSnow(100); + // Calendar::EnableFog(); + } return NewPawn; -} \ No newline at end of file +} From 7bad6d58fbcb756707bd6cdfd3fe4a1cd85d8fb1 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:01:08 +0100 Subject: [PATCH 06/18] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a589e96..387e978 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Project Reboot 3.0 +# what i add alr? +- snow map 11.31 +- snow map 7.30 +- snow map 15.10 + + I just wana add some cool shits to this reboot + +discord https://discord.gg/VeptRzDkDu From cbb54c30c9f6722e2f4e0c04bd092f51bda5253c Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:02:23 +0100 Subject: [PATCH 07/18] fly and speed comand --- Project Reboot 3.0/commands.cpp | 71 ++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/commands.cpp b/Project Reboot 3.0/commands.cpp index 89f6fed..5297506 100644 --- a/Project Reboot 3.0/commands.cpp +++ b/Project Reboot 3.0/commands.cpp @@ -919,6 +919,75 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg) Pawn->TeleportTo(FVector(X, Y, Z), Pawn->GetActorRotation()); SendMessageToConsole(PlayerController, L"Teleported!"); } + else if (Command == "fly") + { + auto Pawn = Cast(ReceivingController->GetPawn()); + + if (!Pawn) + { + SendMessageToConsole(PlayerController, L"No pawn found!"); + return; + } + + static auto CharMovementOffset = Pawn->GetOffset("CharacterMovement"); + if (CharMovementOffset != -1) + { + auto CharMovement = Pawn->Get(CharMovementOffset); + + static auto MovementOffset = CharMovement->GetOffset("MovementMode", false); + if (MovementOffset != -1) + { + uint8_t MovementMode = CharMovement->Get(MovementOffset); + static auto SetMovementModeFn = FindObject(L"/Script/Engine.CharacterMovementComponent.SetMovementMode"); + uint8_t NewMode = 1; + if (MovementMode != 5) + { + NewMode = 5; + } + if (SetMovementModeFn) + { + CharMovement->ProcessEvent(SetMovementModeFn, &NewMode); + } + } + else + { + SendMessageToConsole(PlayerController, L"Movement mode not found!"); + return; + } + } + else + { + SendMessageToConsole(PlayerController, L"Character movement not found!"); + return; + } + } + else if (Command == "setspeed") + { + float Speed = 1.0f; + + if (Arguments.size() > 1 && Arguments[1] != " ") + { + try { Speed = std::stof(Arguments[1]); } + catch (...) {} + } + + auto Pawn = Cast(ReceivingController->GetPawn()); + + if (!Pawn) + { + SendMessageToConsole(PlayerController, L"No pawn to set speed!"); + return; + } + + static auto SetMovementSpeedFn = FindObject(L"/Script/FortniteGame.FortPawn.SetMovementSpeed"); + SetMovementSpeedFn = SetMovementSpeedFn ? SetMovementSpeedFn : FindObject(L"/Script/FortniteGame.FortPawn.SetMovementSpeedMultiplier"); // extremely clean code that totally works + if (!SetMovementSpeedFn) + { + SendMessageToConsole(PlayerController, L"Function not found!"); + return; + } + Pawn->ProcessEvent(SetMovementSpeedFn, &Speed); + } else { bSendHelpMessage = true; }; } else { bSendHelpMessage = true; }; @@ -949,4 +1018,4 @@ If you want to execute a command on a certain player, surround their name (case SendMessageToConsole(PlayerController, HelpMessage); } -} \ No newline at end of file +} From 3dd8093d203dbc9efb2acf2b281937977d87ac2c Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:02:55 +0100 Subject: [PATCH 08/18] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 387e978..1f5b584 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ - snow map 11.31 - snow map 7.30 - snow map 15.10 +- comand to fly +- comand to go more fast speed up I just wana add some cool shits to this reboot From 675838e2cb140b468b78c8af940c7912acfe8d61 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:04:17 +0100 Subject: [PATCH 09/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1f5b584..05c37c8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ - snow map 15.10 - comand to fly - comand to go more fast speed up +- fix s9 event I just wana add some cool shits to this reboot From 9d7c9f29f47120a5d64ff643d8fdf0f73da29715 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:05:20 +0100 Subject: [PATCH 10/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 05c37c8..f15e01d 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ - comand to fly - comand to go more fast speed up - fix s9 event +- fix 9.10 volcano not work I just wana add some cool shits to this reboot From 93702302c25c39181df5352af7d430cebf868a06 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:05:43 +0100 Subject: [PATCH 11/18] 9.41 event fix --- Project Reboot 3.0/events.h | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/events.h b/Project Reboot 3.0/events.h index 0068514..5ae2cff 100644 --- a/Project Reboot 3.0/events.h +++ b/Project Reboot 3.0/events.h @@ -185,6 +185,34 @@ static inline std::vector Events = false ), Event + ( + "The Showdown", + "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C", + "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C.LoadCattusLevel", + 1, + { + { + true, + "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C.OnReady_C11CA7624A74FBAEC54753A3C2BD4506" + } + }, + { + { + { + true, + "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C.startevent" + }, + + 0 + } + }, + + "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C", + "/Game/Athena/Playlists/Music/Playlist_Music_High.Playlist_Music_High", + 9.41, // also 9.41 + false + ), + Event ( "The Unvaulting", "/Game/Athena/Prototype/Blueprints/White/BP_SnowScripting.BP_SnowScripting_C", @@ -456,6 +484,7 @@ static inline UFortPlaylistAthena* GetEventPlaylist() { if (CurrentEvent.Version == Fortnite_Version) return FindObject(CurrentEvent.PlaylistName, nullptr, ANY_PACKAGE); + } return nullptr; @@ -824,4 +853,4 @@ static inline bool DoesEventRequireLoading() } return false; -} \ No newline at end of file +} From 7fcb1fb623c568a83b0ecaebaa69b18af0971b04 Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:06:43 +0100 Subject: [PATCH 12/18] start volcano 9.10 fix --- Project Reboot 3.0/FortGameModeAthena.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project Reboot 3.0/FortGameModeAthena.cpp b/Project Reboot 3.0/FortGameModeAthena.cpp index 36b64c7..f21fe18 100644 --- a/Project Reboot 3.0/FortGameModeAthena.cpp +++ b/Project Reboot 3.0/FortGameModeAthena.cpp @@ -369,7 +369,7 @@ bool AFortGameModeAthena::Athena_ReadyToStartMatchHook(AFortGameModeAthena* Game ShowFoundation(FindObject("/Game/Athena/Maps/Athena_POI_Foundations.Athena_POI_Foundations.PersistentLevel.ShopsNew")); // Tilted Tower Shops, is this 7.40 specific? } - else if (Fortnite_Season == 8) + else if (Fortnite_Season == 8 || Fortnite_Version == 9.10) { auto Volcano = FindObject(("/Game/Athena/Maps/Athena_POI_Foundations.Athena_POI_Foundations.PersistentLevel.LF_Athena_POI_50x53_Volcano")); ShowFoundation(Volcano); From be2f5eb0c9d897726a8c6d0eda386a0d0e53f73a Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:08:36 +0100 Subject: [PATCH 13/18] fix spawn loc for pickups (testing) --- Project Reboot 3.0/BuildingContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project Reboot 3.0/BuildingContainer.cpp b/Project Reboot 3.0/BuildingContainer.cpp index 2b1c47a..a5d7b0c 100644 --- a/Project Reboot 3.0/BuildingContainer.cpp +++ b/Project Reboot 3.0/BuildingContainer.cpp @@ -13,7 +13,7 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn) auto GameMode = Cast(GetWorld()->GetGameMode()); - FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorForwardVector() * this->GetLootSpawnLocation_Athena().X + this->GetActorRightVector() * this->GetLootSpawnLocation_Athena().Y + this->GetActorUpVector() * this->GetLootSpawnLocation_Athena().Z; + FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorRightVector() * 70.0f + FVector{ 0,0,50 } ; auto RedirectedLootTier = GameMode->RedirectLootTier(GetSearchLootTierGroup()); @@ -46,4 +46,4 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn) } return true; -} \ No newline at end of file +} From 8b10fff72e11f7d64d503e53e6dd66a69d53e32b Mon Sep 17 00:00:00 2001 From: Project-Z1K <149071205+Project-Z1K@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:13:43 +0100 Subject: [PATCH 14/18] fix cant build worst error plz see lmao --- Project Reboot 3.0/GameModeBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project Reboot 3.0/GameModeBase.cpp b/Project Reboot 3.0/GameModeBase.cpp index 0647e06..a0e7c9e 100644 --- a/Project Reboot 3.0/GameModeBase.cpp +++ b/Project Reboot 3.0/GameModeBase.cpp @@ -8,7 +8,7 @@ #include "DataTableFunctionLibrary.h" #include "FortAthenaMutator_GG.h" #include "FortAthenaMutator_InventoryOverride.h" -#include "calendar.h +#include "calendar.h" void AGameModeBase::RestartPlayerAtTransform(AController* NewPlayer, FTransform SpawnTransform) { From 6f60f56ceaf957dda963faae9eda1d6d6ebed18a Mon Sep 17 00:00:00 2001 From: Gray <84999745+Milxnor@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:05:06 -0500 Subject: [PATCH 15/18] fix resadmem --- README.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f15e01d..28a7eeb 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,11 @@ # Project Reboot 3.0 -# what i add alr? -- snow map 11.31 -- snow map 7.30 -- snow map 15.10 -- comand to fly -- comand to go more fast speed up -- fix s9 event -- fix 9.10 volcano not work +I have quit the community and the project is discontinued 😢. +S3-S15 (S16-S19 is slightly supported) -I just wana add some cool shits to this reboot +## TODO -discord https://discord.gg/VeptRzDkDu +- Rewrite picking up code. +- Rewrite dllmain +- Move hooking to each class (for example, AFortGameModeAthena::InitHooks). From 894526946b41779e69d79dacf54e5bd3cfeb7c63 Mon Sep 17 00:00:00 2001 From: Twin1 Date: Thu, 7 Dec 2023 00:01:23 -0600 Subject: [PATCH 16/18] add snow map back --- Project Reboot 3.0/GameModeBase.cpp | 9 +++++++++ Project Reboot 3.0/calendar.h | 18 ++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Project Reboot 3.0/GameModeBase.cpp b/Project Reboot 3.0/GameModeBase.cpp index 8c2c8a4..aaf3129 100644 --- a/Project Reboot 3.0/GameModeBase.cpp +++ b/Project Reboot 3.0/GameModeBase.cpp @@ -8,6 +8,7 @@ #include "DataTableFunctionLibrary.h" #include "FortAthenaMutator_GG.h" #include "FortAthenaMutator_InventoryOverride.h" +#include "calendar.h" void AGameModeBase::RestartPlayerAtTransform(AController* NewPlayer, FTransform SpawnTransform) { @@ -260,6 +261,14 @@ APawn* AGameModeBase::SpawnDefaultPawnForHook(AGameModeBase* GameMode, AControll // NewPlayerAsAthena->RespawnPlayerAfterDeath(true); } + static bool bFirst = true; + + if (bFirst) + { + bFirst = false; + Calendar::SetSnow(100); + } + // LOG_INFO(LogDev, "Finish SpawnDefaultPawnFor!"); return NewPawn; diff --git a/Project Reboot 3.0/calendar.h b/Project Reboot 3.0/calendar.h index c5d9065..8faea33 100644 --- a/Project Reboot 3.0/calendar.h +++ b/Project Reboot 3.0/calendar.h @@ -8,7 +8,7 @@ namespace Calendar { static inline bool HasSnowModification() { - return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 19.10; + return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 15.10 || Fortnite_Version == 19.10; } static inline UObject* GetSnowSetup() @@ -42,7 +42,7 @@ namespace Calendar static inline void SetSnow(float NewValue) { - static auto SetSnowFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") ? FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") : + static auto SetSnowFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") ? FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") : FindObject(L"/Game/Athena/Environments/Landscape/Blueprints/BP_SnowSetup.BP_SnowSetup_C.SetSnow"); auto SnowSetup = GetSnowSetup(); @@ -53,6 +53,8 @@ namespace Calendar auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState(); GET_PLAYLIST(GameState) + + /* struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()}; UFunction* OnReadyFunc = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8"); @@ -64,8 +66,14 @@ namespace Calendar SnowSetup->ProcessEvent(OnReadyFunc, &OnReadyParams); } + */ + LOG_INFO(LogDev, "Called OnReady!"); + SnowSetup->ProcessEvent(SetSnowFn, &NewValue); + + LOG_INFO(LogDev, "Called SetSnow!"); + return; if (NewValue != -1) @@ -85,6 +93,12 @@ namespace Calendar static auto ada = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetFullSnowEd"); SnowSetup->ProcessEvent(ada); + + + } + else + { + LOG_INFO(LogDev, "Failed TO FIND!"); } } } \ No newline at end of file From ef54815efc35c68342a69888d9240d8fd98de7c3 Mon Sep 17 00:00:00 2001 From: Twin1 <64933300+Twin1dev@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:07:02 -0600 Subject: [PATCH 17/18] Update README.md --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87cb74a..28a7eeb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ -# Project Reboot 3.0 Revived +# Project Reboot 3.0 -My plan is to add things that reboot v3 never had. +I have quit the community and the project is discontinued 😢. + +S3-S15 (S16-S19 is slightly supported) + +## TODO + +- Rewrite picking up code. +- Rewrite dllmain +- Move hooking to each class (for example, AFortGameModeAthena::InitHooks). From 5844dc5eaafb29b65b759e50862b5ef29f0b4bdb Mon Sep 17 00:00:00 2001 From: Gray <84999745+Milxnor@users.noreply.github.com> Date: Thu, 7 Dec 2023 18:35:24 -0500 Subject: [PATCH 18/18] Revert "add snow map 11.31 15.10 7.10 and fly speed up comand and more" --- Project Reboot 3.0/BuildingContainer.cpp | 4 +- Project Reboot 3.0/FortGameModeAthena.cpp | 2 +- Project Reboot 3.0/GameModeBase.cpp | 12 +--- Project Reboot 3.0/calendar.h | 53 +---------------- Project Reboot 3.0/commands.cpp | 71 +---------------------- Project Reboot 3.0/events.h | 31 +--------- 6 files changed, 9 insertions(+), 164 deletions(-) diff --git a/Project Reboot 3.0/BuildingContainer.cpp b/Project Reboot 3.0/BuildingContainer.cpp index a5d7b0c..2b1c47a 100644 --- a/Project Reboot 3.0/BuildingContainer.cpp +++ b/Project Reboot 3.0/BuildingContainer.cpp @@ -13,7 +13,7 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn) auto GameMode = Cast(GetWorld()->GetGameMode()); - FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorRightVector() * 70.0f + FVector{ 0,0,50 } ; + FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorForwardVector() * this->GetLootSpawnLocation_Athena().X + this->GetActorRightVector() * this->GetLootSpawnLocation_Athena().Y + this->GetActorUpVector() * this->GetLootSpawnLocation_Athena().Z; auto RedirectedLootTier = GameMode->RedirectLootTier(GetSearchLootTierGroup()); @@ -46,4 +46,4 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn) } return true; -} +} \ No newline at end of file diff --git a/Project Reboot 3.0/FortGameModeAthena.cpp b/Project Reboot 3.0/FortGameModeAthena.cpp index f21fe18..36b64c7 100644 --- a/Project Reboot 3.0/FortGameModeAthena.cpp +++ b/Project Reboot 3.0/FortGameModeAthena.cpp @@ -369,7 +369,7 @@ bool AFortGameModeAthena::Athena_ReadyToStartMatchHook(AFortGameModeAthena* Game ShowFoundation(FindObject("/Game/Athena/Maps/Athena_POI_Foundations.Athena_POI_Foundations.PersistentLevel.ShopsNew")); // Tilted Tower Shops, is this 7.40 specific? } - else if (Fortnite_Season == 8 || Fortnite_Version == 9.10) + else if (Fortnite_Season == 8) { auto Volcano = FindObject(("/Game/Athena/Maps/Athena_POI_Foundations.Athena_POI_Foundations.PersistentLevel.LF_Athena_POI_50x53_Volcano")); ShowFoundation(Volcano); diff --git a/Project Reboot 3.0/GameModeBase.cpp b/Project Reboot 3.0/GameModeBase.cpp index a0e7c9e..8c2c8a4 100644 --- a/Project Reboot 3.0/GameModeBase.cpp +++ b/Project Reboot 3.0/GameModeBase.cpp @@ -8,7 +8,6 @@ #include "DataTableFunctionLibrary.h" #include "FortAthenaMutator_GG.h" #include "FortAthenaMutator_InventoryOverride.h" -#include "calendar.h" void AGameModeBase::RestartPlayerAtTransform(AController* NewPlayer, FTransform SpawnTransform) { @@ -263,14 +262,5 @@ APawn* AGameModeBase::SpawnDefaultPawnForHook(AGameModeBase* GameMode, AControll // LOG_INFO(LogDev, "Finish SpawnDefaultPawnFor!"); - static bool bFirst = Fortnite_Version == 11.31 || Fortnite_Version == 15.10; - - if (bFirst) - { - bFirst = false; - // Calendar::EnableFog(); - Calendar::SetSnow(100); - // Calendar::EnableFog(); - } return NewPawn; -} +} \ No newline at end of file diff --git a/Project Reboot 3.0/calendar.h b/Project Reboot 3.0/calendar.h index 980f2ee..c5d9065 100644 --- a/Project Reboot 3.0/calendar.h +++ b/Project Reboot 3.0/calendar.h @@ -8,7 +8,7 @@ namespace Calendar { static inline bool HasSnowModification() { - return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 15.10 || Fortnite_Version == 19.10; + return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 19.10; } static inline UObject* GetSnowSetup() @@ -40,42 +40,9 @@ namespace Calendar return -1; } - static inline void EnableFog() - { - auto SnowSetup = GetSnowSetup(); - - if (SnowSetup) - { - static auto Onready1 = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_E426AA7F4F2319EA06FBA2B9905F0B24"); - static auto Onready2 = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8"); - static auto refrehsdmap = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C:RefreshMapLocations"); - - auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState(); - - GET_PLAYLIST(GameState) - - struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()}; - - SnowSetup->ProcessEvent(Onready1, &OnReadyParams); - SnowSetup->ProcessEvent(Onready2, &OnReadyParams); - SnowSetup->ProcessEvent(refrehsdmap); // needed? - } - } - - static inline void SetSnowfall(float NewValue) // idk bruh i think setsnow also does this math things who knows - { - static auto SetSnowfallFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnowFall"); - auto SnowSetup = GetSnowSetup(); - - if (SetSnowfallFn && SnowSetup) - { - SnowSetup->ProcessEvent(SetSnowfallFn, &NewValue); - } - } - static inline void SetSnow(float NewValue) { - static auto SetSnowFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") ? FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") : + static auto SetSnowFn = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") ? FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") : FindObject(L"/Game/Athena/Environments/Landscape/Blueprints/BP_SnowSetup.BP_SnowSetup_C.SetSnow"); auto SnowSetup = GetSnowSetup(); @@ -86,8 +53,6 @@ namespace Calendar auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState(); GET_PLAYLIST(GameState) - - /* struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()}; UFunction* OnReadyFunc = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8"); @@ -99,14 +64,8 @@ namespace Calendar SnowSetup->ProcessEvent(OnReadyFunc, &OnReadyParams); } - */ - LOG_INFO(LogDev, "Called OnReady!"); - SnowSetup->ProcessEvent(SetSnowFn, &NewValue); - - LOG_INFO(LogDev, "Called SetSnow!"); - return; if (NewValue != -1) @@ -126,12 +85,6 @@ namespace Calendar static auto ada = FindObject(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetFullSnowEd"); SnowSetup->ProcessEvent(ada); - - - } - else - { - LOG_INFO(LogDev, "Failed TO FIND!"); } } -} +} \ No newline at end of file diff --git a/Project Reboot 3.0/commands.cpp b/Project Reboot 3.0/commands.cpp index 5297506..89f6fed 100644 --- a/Project Reboot 3.0/commands.cpp +++ b/Project Reboot 3.0/commands.cpp @@ -919,75 +919,6 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg) Pawn->TeleportTo(FVector(X, Y, Z), Pawn->GetActorRotation()); SendMessageToConsole(PlayerController, L"Teleported!"); } - else if (Command == "fly") - { - auto Pawn = Cast(ReceivingController->GetPawn()); - - if (!Pawn) - { - SendMessageToConsole(PlayerController, L"No pawn found!"); - return; - } - - static auto CharMovementOffset = Pawn->GetOffset("CharacterMovement"); - if (CharMovementOffset != -1) - { - auto CharMovement = Pawn->Get(CharMovementOffset); - - static auto MovementOffset = CharMovement->GetOffset("MovementMode", false); - if (MovementOffset != -1) - { - uint8_t MovementMode = CharMovement->Get(MovementOffset); - static auto SetMovementModeFn = FindObject(L"/Script/Engine.CharacterMovementComponent.SetMovementMode"); - uint8_t NewMode = 1; - if (MovementMode != 5) - { - NewMode = 5; - } - if (SetMovementModeFn) - { - CharMovement->ProcessEvent(SetMovementModeFn, &NewMode); - } - } - else - { - SendMessageToConsole(PlayerController, L"Movement mode not found!"); - return; - } - } - else - { - SendMessageToConsole(PlayerController, L"Character movement not found!"); - return; - } - } - else if (Command == "setspeed") - { - float Speed = 1.0f; - - if (Arguments.size() > 1 && Arguments[1] != " ") - { - try { Speed = std::stof(Arguments[1]); } - catch (...) {} - } - - auto Pawn = Cast(ReceivingController->GetPawn()); - - if (!Pawn) - { - SendMessageToConsole(PlayerController, L"No pawn to set speed!"); - return; - } - - static auto SetMovementSpeedFn = FindObject(L"/Script/FortniteGame.FortPawn.SetMovementSpeed"); - SetMovementSpeedFn = SetMovementSpeedFn ? SetMovementSpeedFn : FindObject(L"/Script/FortniteGame.FortPawn.SetMovementSpeedMultiplier"); // extremely clean code that totally works - if (!SetMovementSpeedFn) - { - SendMessageToConsole(PlayerController, L"Function not found!"); - return; - } - Pawn->ProcessEvent(SetMovementSpeedFn, &Speed); - } else { bSendHelpMessage = true; }; } else { bSendHelpMessage = true; }; @@ -1018,4 +949,4 @@ If you want to execute a command on a certain player, surround their name (case SendMessageToConsole(PlayerController, HelpMessage); } -} +} \ No newline at end of file diff --git a/Project Reboot 3.0/events.h b/Project Reboot 3.0/events.h index 5ae2cff..0068514 100644 --- a/Project Reboot 3.0/events.h +++ b/Project Reboot 3.0/events.h @@ -185,34 +185,6 @@ static inline std::vector Events = false ), Event - ( - "The Showdown", - "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C", - "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C.LoadCattusLevel", - 1, - { - { - true, - "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C.OnReady_C11CA7624A74FBAEC54753A3C2BD4506" - } - }, - { - { - { - true, - "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C.startevent" - }, - - 0 - } - }, - - "/Game/Athena/Prototype/Blueprints/Cattus/BP_CattusDoggus_Scripting.BP_CattusDoggus_Scripting_C", - "/Game/Athena/Playlists/Music/Playlist_Music_High.Playlist_Music_High", - 9.41, // also 9.41 - false - ), - Event ( "The Unvaulting", "/Game/Athena/Prototype/Blueprints/White/BP_SnowScripting.BP_SnowScripting_C", @@ -484,7 +456,6 @@ static inline UFortPlaylistAthena* GetEventPlaylist() { if (CurrentEvent.Version == Fortnite_Version) return FindObject(CurrentEvent.PlaylistName, nullptr, ANY_PACKAGE); - } return nullptr; @@ -853,4 +824,4 @@ static inline bool DoesEventRequireLoading() } return false; -} +} \ No newline at end of file