Add random defaults 1.7.2, some other internal stuff

This commit is contained in:
Milxnor
2023-04-26 23:22:22 -04:00
parent be0873d5d7
commit 4c19144b0f
10 changed files with 139 additions and 89 deletions

View File

@@ -1,13 +1,13 @@
#pragma once
#include "FortGameModePvPBase.h"
// #include "FortPlayerControllerAthena.h"
#include "FortGameStateAthena.h"
#include "KismetStringLibrary.h"
#include "reboot.h"
#include "BuildingSMActor.h"
#include "FortSafeZoneIndicator.h"
#include "GameplayStatics.h"
#include "FortItemDefinition.h"
struct FAircraftFlightInfo
{
@@ -158,6 +158,11 @@ static void ShowFoundation(AActor* BuildingFoundation, bool bShow = true)
{
UGameplayStatics::UnloadStreamLevel(GetWorld(), LevelToStream, FLatentActionInfo(), false);
} */
// real
BuildingFoundation->FlushNetDormancy();
BuildingFoundation->ForceNetUpdate();
}
static void StreamLevel(const std::string& LevelName, FVector Location = {})
@@ -210,6 +215,12 @@ public:
return (AFortGameStateAthena*)GetGameState();
}
TArray<FItemAndCount>& GetStartingItems() // really in zone
{
static auto StartingItemsOffset = GetOffset("StartingItems");
return Get<TArray<FItemAndCount>>(StartingItemsOffset);
}
FName RedirectLootTier(const FName& LootTier);
UClass* GetVehicleClassOverride(UClass* DefaultClass);