mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a bit
fix some levels not streaming in, add unvaulting & showdown event (unvaulting levels after event don't really work), fixed some crashes.
This commit is contained in:
21
Project Reboot 3.0/BuildingFoundation.cpp
Normal file
21
Project Reboot 3.0/BuildingFoundation.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user