mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
great
pickup combining, almost finish shadow stones, fix some bugs with gadgets, clean up some code.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user