Revert "alright im not so happy"

This reverts commit bd87832147.
This commit is contained in:
Milxnor
2023-05-12 17:51:29 -04:00
parent bd87832147
commit 9be64d79ca
21 changed files with 38 additions and 394 deletions

View File

@@ -174,7 +174,7 @@ static void SetZoneToIndexHook(AFortGameModeAthena* GameModeAthena, int Override
SafeZoneIndicator->Get<float>(SafeZoneFinishShrinkTimeOffset) = SafeZoneIndicator->Get<float>(SafeZoneStartShrinkTimeOffset) + ZoneDuration;
}
static inline void ProcessEventHook(UObject* Object, UFunction* Function, void* Parameters)
void ProcessEventHook(UObject* Object, UFunction* Function, void* Parameters)
{
if (!Object || !Function)
return;
@@ -330,23 +330,4 @@ static inline void ProcessEventHook(UObject* Object, UFunction* Function, void*
}
return Object->ProcessEvent(Function, Parameters);
}
static inline void FixBuildingContainers()
{
if (Fortnite_Version > 2)
return;
auto AllBuildingContainers = UGameplayStatics::GetAllActorsOfClass(GetWorld(), ABuildingContainer::StaticClass());
for (int i = 0; i < AllBuildingContainers.size(); i++)
{
auto BuildingContainer = (ABuildingContainer*)AllBuildingContainers.at(i);
// TODO Figure it out proper (i think its something like this)
// BuildingContainer->GetAltMeshIdx() = BuildingContainer->GetAlternateMeshes().Num() > 0 ? BuildingContainer->GetAlternateMeshes().Num() - 1 : 0;
}
AllBuildingContainers.Free();
}