Files
Project-Reboot-3.0/Project Reboot 3.0/FortPlayerControllerAthena.h
2023-03-04 15:06:07 -05:00

19 lines
503 B
C++

#pragma once
#include "FortPlayerController.h"
#include "FortPlayerStateAthena.h"
class AFortPlayerControllerAthena : public AFortPlayerController
{
public:
static void ServerAcknowledgePossessionHook(APlayerController* Controller, APawn* Pawn)
{
static auto AcknowledgedPawnOffset = Controller->GetOffset("AcknowledgedPawn");
Controller->Get<APawn*>(AcknowledgedPawnOffset) = Pawn;
}
AFortPlayerStateAthena* GetPlayerStateAthena()
{
return (AFortPlayerStateAthena*)GetPlayerState();
}
};