quite a bit

llamas, fix some ltm specific stuff, add auto bus start for auto restart,  work in progress lategame on 1.11, fix a crash, performance
This commit is contained in:
Milxnor
2023-05-04 20:46:48 -04:00
parent f49f166c2d
commit a4ed589aab
31 changed files with 477 additions and 93 deletions

View File

@@ -9,4 +9,22 @@ void AFortSafeZoneIndicator::SkipShrinkSafeZone()
GetSafeZoneStartShrinkTime() = GameState->GetServerWorldTimeSeconds();
GetSafeZoneFinishShrinkTime() = GameState->GetServerWorldTimeSeconds() + 0.2;
}
void AFortSafeZoneIndicator::OnSafeZoneStateChangeHook(AFortSafeZoneIndicator* SafeZoneIndicator, EFortSafeZoneState NewState, bool bInitial)
{
auto GameState = Cast<AFortGameStateAthena>(GetWorld()->GetGameState());
LOG_INFO(LogDev, "OnSafeZoneStateChangeHook!");
if (NewState == EFortSafeZoneState::Shrinking)
{
GameState->SetGamePhaseStep(EAthenaGamePhaseStep::StormShrinking);
}
else if (NewState == EFortSafeZoneState::Holding)
{
GameState->SetGamePhaseStep(EAthenaGamePhaseStep::StormHolding);
}
return OnSafeZoneStateChangeOriginal(SafeZoneIndicator, NewState, bInitial);
}