mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Rift tour
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user