mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
@@ -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());
|
||||
|
||||
|
||||
@@ -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<uint8_t>(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);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<ABuildingFoundation>(L"/Script/FortniteGame.Default__BuildingFoundation"),
|
||||
FindObject<UFunction>(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationTransform"),
|
||||
ABuildingFoundation::SetDynamicFoundationTransformHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationTransformOriginal, false, true);
|
||||
|
||||
Hooking::MinHook::Hook(FindObject<ABuildingFoundation>(L"/Script/FortniteGame.Default__BuildingFoundation"),
|
||||
FindObject<UFunction>(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationTransform"),
|
||||
ABuildingFoundation::SetDynamicFoundationTransformHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationTransformOriginal, false, true);
|
||||
Hooking::MinHook::Hook(FindObject<ABuildingFoundation>(L"/Script/FortniteGame.Default__BuildingFoundation"),
|
||||
FindObject<UFunction>(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationEnabled"),
|
||||
ABuildingFoundation::SetDynamicFoundationEnabledHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationEnabledOriginal, false, true);
|
||||
}
|
||||
|
||||
Hooking::MinHook::Hook(FindObject<ABuildingFoundation>(L"/Script/FortniteGame.Default__BuildingFoundation"),
|
||||
FindObject<UFunction>(L"/Script/FortniteGame.BuildingFoundation.SetDynamicFoundationEnabled"),
|
||||
ABuildingFoundation::SetDynamicFoundationEnabledHook, (PVOID*)&ABuildingFoundation::SetDynamicFoundationEnabledOriginal, false, true);
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
if (Fortnite_Version == 6.21) // ur trolling
|
||||
|
||||
@@ -185,34 +185,6 @@ static inline std::vector<Event> 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<UFortPlaylistAthena>(CurrentEvent.PlaylistName, nullptr, ANY_PACKAGE);
|
||||
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
12
README.md
12
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).
|
||||
|
||||
Reference in New Issue
Block a user