diff --git a/Project Reboot 3.0/BuildingContainer.cpp b/Project Reboot 3.0/BuildingContainer.cpp index e007a6d..e638ce7 100644 --- a/Project Reboot 3.0/BuildingContainer.cpp +++ b/Project Reboot 3.0/BuildingContainer.cpp @@ -15,7 +15,7 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn) // idk /* 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 } ; + 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()); 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 +}; diff --git a/Project Reboot 3.0/GameModeBase.cpp b/Project Reboot 3.0/GameModeBase.cpp index 8c2c8a4..458f030 100644 --- a/Project Reboot 3.0/GameModeBase.cpp +++ b/Project Reboot 3.0/GameModeBase.cpp @@ -260,6 +260,13 @@ 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/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 diff --git a/Project Reboot 3.0/events.h b/Project Reboot 3.0/events.h index 827932e..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; 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).