From ef0aa6c74b754e51f218d1909a4ea10ceecedc17 Mon Sep 17 00:00:00 2001 From: Syphon <144607268+Syphonfr@users.noreply.github.com> Date: Sat, 31 May 2025 12:43:48 -0500 Subject: [PATCH] im gonna kms --- Project Reboot 3.0/FortPlayerPawnAthena.cpp | 22 --------------------- Project Reboot 3.0/dllmain.cpp | 14 +++++++------ 2 files changed, 8 insertions(+), 28 deletions(-) diff --git a/Project Reboot 3.0/FortPlayerPawnAthena.cpp b/Project Reboot 3.0/FortPlayerPawnAthena.cpp index dae73df..8864bd0 100644 --- a/Project Reboot 3.0/FortPlayerPawnAthena.cpp +++ b/Project Reboot 3.0/FortPlayerPawnAthena.cpp @@ -51,27 +51,5 @@ void AFortPlayerPawnAthena::OnCapsuleBeginOverlapHook(UObject* Context, FFrame* } } - if (OtherActor && OtherActor->GetName().contains("Rift") && Fortnite_Version >= 17) - { - Pawn->TeleportTo(Pawn->GetActorLocation() + FVector(0, 0, 20000), Pawn->GetActorRotation()); - - UAbilitySystemComponent* AbilitySystemComponent = ((AFortPlayerStateAthena*)Pawn->GetPlayerState())->GetAbilitySystemComponent(); - if (!AbilitySystemComponent) return; - - UClass* RiftAbility = FindObject(L"/Game/Athena/Items/ForagedItems/Rift/GA_Rift_Athena_Skydive.GA_Rift_Athena_Skydive_C"); - if (!RiftAbility) return; - - FGameplayAbilitySpec* Spec = MakeNewSpec(RiftAbility); - if (!Spec) return; - - static unsigned int* (*GiveAbilityAndActivateOnce)(UAbilitySystemComponent * ASC, int* outHandle, __int64 Spec, FGameplayEventData * TriggerEventData) = decltype(GiveAbilityAndActivateOnce)(Addresses::GiveAbilityAndActivateOnce); - - if (GiveAbilityAndActivateOnce) - { - int outHandle = 0; - GiveAbilityAndActivateOnce(AbilitySystemComponent, &outHandle, __int64(Spec), nullptr); - } - } - // return OnCapsuleBeginOverlapOriginal(Context, Stack, Ret); // we love explicit } \ No newline at end of file diff --git a/Project Reboot 3.0/dllmain.cpp b/Project Reboot 3.0/dllmain.cpp index 6d75286..a845c00 100644 --- a/Project Reboot 3.0/dllmain.cpp +++ b/Project Reboot 3.0/dllmain.cpp @@ -1045,14 +1045,16 @@ DWORD WINAPI Main(LPVOID) } } + if (Fortnite_Version >= 17.30) + { + Hooking::MinHook::Hook(FindObject("/Script/FortniteGame.Default__FortMissionLibrary"), FindObject(L"/Script/FortniteGame.FortMissionLibrary:TeleportPlayerPawn"), TeleportPlayerPawnHook, + (PVOID*)&TeleportPlayerPawnOriginal, false, true); + } + if (Globals::bGoingToPlayEvent) { - if (Fortnite_Version >= 17.30) - { - Hooking::MinHook::Hook(FindObject("/Script/FortniteGame.Default__FortMissionLibrary"), FindObject(L"/Script/FortniteGame.FortMissionLibrary:TeleportPlayerPawn"), TeleportPlayerPawnHook, - (PVOID*)&TeleportPlayerPawnOriginal, false, true); - // Todo hook UBuffetRacePlayerMovementComponent::ServerTeleportPlayer? - } + // Todo hook UBuffetRacePlayerMovementComponent::ServerTeleportPlayer? + if (Fortnite_Version == 17.50) { Hooking::MinHook::Hook(FindObject("/Script/SpecialEventGameplayRuntime.Default__SpecialEventScript"), FindObject(L"/Script/SpecialEventGameplayRuntime.SpecialEventScript:StartEventAtIndex"), StartEventAtIndexHook,