pickup combining, almost finish shadow stones, fix some bugs with gadgets, clean up some code.
This commit is contained in:
Milxnor
2023-05-02 23:48:05 -04:00
parent 3b0f0ad4e1
commit f49f166c2d
27 changed files with 574 additions and 216 deletions

View File

@@ -2,6 +2,7 @@
#include <memcury.h>
#include "FortPlayerController.h"
#include "FortGadgetItemDefinition.h"
#include "FortPlayerControllerAthena.h"
FFortAthenaLoadout* AFortPlayerPawn::GetCosmeticLoadout()
{
@@ -273,6 +274,11 @@ void AFortPlayerPawn::ServerHandlePickupHook(AFortPlayerPawn* Pawn, AFortPickup*
return;
}
auto PlayerControllerAthena = Cast<AFortPlayerControllerAthena>(Pawn->GetController());
if (PlayerControllerAthena && PlayerControllerAthena->IsInGhostMode())
return;
static auto IncomingPickupsOffset = Pawn->GetOffset("IncomingPickups");
Pawn->Get<TArray<AFortPickup*>>(IncomingPickupsOffset).Add(Pickup);