mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
22 lines
784 B
C++
22 lines
784 B
C++
#include "FortSafeZoneIndicator.h"
|
|
|
|
#include "FortGameModeAthena.h"
|
|
#include "reboot.h"
|
|
#include "KismetSystemLibrary.h"
|
|
|
|
void AFortSafeZoneIndicator::SkipShrinkSafeZone()
|
|
{
|
|
auto GameState = Cast<AFortGameStateAthena>(((AFortGameMode*)GetWorld()->GetGameMode())->GetGameState());
|
|
|
|
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!");
|
|
|
|
return OnSafeZoneStateChangeOriginal(SafeZoneIndicator, NewState, bInitial);
|
|
} |