mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
fix some levels not streaming in, add unvaulting & showdown event (unvaulting levels after event don't really work), fixed some crashes.
21 lines
583 B
C++
21 lines
583 B
C++
#include "BuildingFoundation.h"
|
|
#include "FortGameModeAthena.h"
|
|
|
|
void ABuildingFoundation::SetDynamicFoundationEnabledHook(UObject* Context, FFrame& Stack, void* Ret)
|
|
{
|
|
bool bEnabled;
|
|
Stack.StepCompiledIn(&bEnabled);
|
|
|
|
// LOG_INFO(LogDev, "{} TELL MILXNOR IF THIS PRINTS: {}", Context->GetFullName(), bEnabled);
|
|
|
|
auto BuildingFoundation = (ABuildingFoundation*)Context;
|
|
|
|
ShowFoundation(BuildingFoundation, bEnabled);
|
|
|
|
// idk lol
|
|
|
|
BuildingFoundation->ForceNetUpdate();
|
|
BuildingFoundation->FlushNetDormancy();
|
|
|
|
return SetDynamicFoundationEnabledOriginal(Context, Stack, Ret);
|
|
} |