Rift tour

This commit is contained in:
Gray
2024-03-14 19:29:58 -04:00
parent 215d7b81d0
commit c19f67c675
7 changed files with 367 additions and 114 deletions

View File

@@ -132,6 +132,27 @@ void AFortPlayerControllerAthena::EndGhostModeHook(AFortPlayerControllerAthena*
return EndGhostModeOriginal(PlayerController);
}
void AFortPlayerControllerAthena::ServerCreativeSetFlightSpeedIndexHook(UObject* Context, FFrame* Stack)
{
int Index;
Stack->StepCompiledIn(&Index);
// LOG_INFO(LogDev, "Player {} wanting to change creative flight speed at index {}", Context->GetName(), Index);
static auto WantedFlightSpeedChangedFn = FindObject<UFunction>("/Script/FortniteGame.FortPlayerControllerGameplay:OnRep_FlyingModifierIndex");
if (!WantedFlightSpeedChangedFn)
{
return;
}
static auto FlyingModifierIndexOffset = Context->GetOffset("FlyingModifierIndex");
Context->Get<int>(FlyingModifierIndexOffset) = Index;
return Context->ProcessEvent(WantedFlightSpeedChangedFn);
}
void AFortPlayerControllerAthena::EnterAircraftHook(UObject* PC, AActor* Aircraft)
{
auto PlayerController = Cast<AFortPlayerController>(Engine_Version < 424 ? PC : ((UActorComponent*)PC)->GetOwner());