mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
alright im not so happy
This commit is contained in:
@@ -174,7 +174,7 @@ static void SetZoneToIndexHook(AFortGameModeAthena* GameModeAthena, int Override
|
||||
SafeZoneIndicator->Get<float>(SafeZoneFinishShrinkTimeOffset) = SafeZoneIndicator->Get<float>(SafeZoneStartShrinkTimeOffset) + ZoneDuration;
|
||||
}
|
||||
|
||||
void ProcessEventHook(UObject* Object, UFunction* Function, void* Parameters)
|
||||
static inline void ProcessEventHook(UObject* Object, UFunction* Function, void* Parameters)
|
||||
{
|
||||
if (!Object || !Function)
|
||||
return;
|
||||
@@ -330,4 +330,23 @@ void ProcessEventHook(UObject* Object, UFunction* Function, void* Parameters)
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user