From 40c72698fc2a5406efc664593c71fecd138a1c0c Mon Sep 17 00:00:00 2001 From: max_the <96658744+max8447@users.noreply.github.com> Date: Sun, 14 Jan 2024 23:14:52 +0100 Subject: [PATCH] fun --- Project Reboot 3.0/FortPlayerController.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/FortPlayerController.cpp b/Project Reboot 3.0/FortPlayerController.cpp index f50f940..b2a3582 100644 --- a/Project Reboot 3.0/FortPlayerController.cpp +++ b/Project Reboot 3.0/FortPlayerController.cpp @@ -429,6 +429,9 @@ void AFortPlayerController::ServerAttemptInteractHook(UObject* Context, FFrame* static auto ReceivingActorOffset = FindOffsetStruct(StructName, "ReceivingActor"); auto ReceivingActor = *(AActor**)(__int64(Params) + ReceivingActorOffset); + static auto InteractionBeingAttemptedOffset = FindOffsetStruct(StructName, "InteractionBeingAttempted"); + auto InteractionBeingAttempted = *(EInteractionBeingAttempted*)(__int64(Params) + InteractionBeingAttemptedOffset); + // LOG_INFO(LogInteraction, "ReceivingActor: {}", __int64(ReceivingActor)); if (!ReceivingActor) @@ -549,7 +552,7 @@ void AFortPlayerController::ServerAttemptInteractHook(UObject* Context, FFrame* } else if (ReceivingActor->IsA(BuildingItemCollectorActorClass)) { - if (Engine_Version >= 424 && /*Fortnite_Version < 15 && */ReceivingActor->GetFullName().contains("Wumba")) + if (Engine_Version >= 424 && Fortnite_Version < 15 && ReceivingActor->GetFullName().contains("Wumba")) { bool bIsSidegrading = InteractionBeingAttempted == EInteractionBeingAttempted::SecondInteraction ? true : false;