mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
squad comms, ltms now work less (this will return better in a later update), performance, fixed some versions, fixed vulnerabilities
21 lines
751 B
C++
21 lines
751 B
C++
#include "FortSafeZoneIndicator.h"
|
|
|
|
#include "FortGameModeAthena.h"
|
|
#include "reboot.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);
|
|
} |