mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
22
dependencies/reboot/Project Reboot 3.0/FortSafeZoneIndicator.cpp
vendored
Normal file
22
dependencies/reboot/Project Reboot 3.0/FortSafeZoneIndicator.cpp
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user