zone fixed

This commit is contained in:
Milxnor
2023-03-20 18:33:36 -04:00
parent dccaca63d6
commit 6d14b42a4f
14 changed files with 306 additions and 77 deletions

View File

@@ -0,0 +1,17 @@
#include "GameState.h"
#include "GameplayStatics.h"
#include "reboot.h"
float AGameState::GetServerWorldTimeSeconds()
{
UWorld* World = GetWorld();
if (World)
{
static auto ServerWorldTimeSecondsDeltaOffset = this->GetOffset("ServerWorldTimeSecondsDelta");
return UGameplayStatics::GetTimeSeconds(World) + Get<float>(ServerWorldTimeSecondsDeltaOffset);
}
return 0.f;
}