kismet function implemnetaitonm

This commit is contained in:
Milxnor
2023-03-12 22:11:16 -04:00
parent 32bcc705af
commit 2fd7f3b23f
16 changed files with 375 additions and 62 deletions

View File

@@ -3,6 +3,7 @@
#include "FortKismetLibrary.h"
#include "SoftObjectPtr.h"
#include "globals.h"
void ApplyCID(AFortPlayerPawn* Pawn, UObject* CID)
{
@@ -55,6 +56,9 @@ void AFortPlayerControllerAthena::ServerAcknowledgePossessionHook(APlayerControl
static auto AcknowledgedPawnOffset = Controller->GetOffset("AcknowledgedPawn");
Controller->Get<APawn*>(AcknowledgedPawnOffset) = Pawn;
if (Globals::bNoMCP)
return;
auto ControllerAsFort = Cast<AFortPlayerController>(Controller);
auto PawnAsFort = Cast<AFortPlayerPawn>(Pawn);
auto PlayerStateAsFort = Cast<AFortPlayerState>(Pawn->GetPlayerState());