Ima go get my popeyes

This commit is contained in:
Gray
2024-03-17 11:24:42 -04:00
parent 07a6569f4a
commit 05dfca656a
9 changed files with 112 additions and 68 deletions

View File

@@ -797,6 +797,7 @@ bool AFortGameModeAthena::Athena_ReadyToStartMatchHook(AFortGameModeAthena* Game
LOG_INFO(LogNet, "WorldLevel {}", GameState->GetWorldLevel());
#ifndef ABOVE_S20
if (Globals::AmountOfListens == 1) // we only want to do this one time.
{
if (bEnableRebooting)
@@ -900,18 +901,11 @@ bool AFortGameModeAthena::Athena_ReadyToStartMatchHook(AFortGameModeAthena* Game
AllRebootVans.Free();
if (Engine_Version >= 500)
{
GameState->Get<float>("DefaultParachuteDeployTraceForGroundDistance") = 10000;
}
if (AmountOfBotsToSpawn != 0)
{
Bots::SpawnBotsAtPlayerStarts(AmountOfBotsToSpawn);
}
UptimeWebHook.send_message(std::format("Server up! {} {}", Fortnite_Version, PlaylistName)); // PlaylistName sometimes isn't always what we use!
if (std::floor(Fortnite_Version) == 5)
{
auto NewFn = FindObject<UFunction>(L"/Game/Athena/Prototype/Blueprints/Cube/CUBE.CUBE_C.New");
@@ -979,6 +973,14 @@ bool AFortGameModeAthena::Athena_ReadyToStartMatchHook(AFortGameModeAthena* Game
}
}
#endif
if (Engine_Version >= 500)
{
GameState->Get<float>("DefaultParachuteDeployTraceForGroundDistance") = 10000;
}
UptimeWebHook.send_message(std::format("Server up! {} {}", Fortnite_Version, PlaylistName)); // PlaylistName sometimes isn't always what we use!
static auto ReplicationDriverOffset = GetWorld()->GetNetDriver()->GetOffset("ReplicationDriver", false); // If netdriver is null the world blows up
Globals::bShouldUseReplicationGraph = (!(ReplicationDriverOffset == -1 || Fortnite_Version >= 20))