Files
Project-Reboot-3.0/Project Reboot 3.0/FortPlayerStateAthena.h
2023-03-12 16:00:26 -04:00

33 lines
717 B
C++

#pragma once
#include "FortPlayerState.h"
class AFortPlayerStateAthena : public AFortPlayerState
{
public:
uint8& GetSquadId()
{
static auto SquadIdOffset = GetOffset("SquadId");
return Get<uint8>(SquadIdOffset);
}
uint8& GetTeamIndex()
{
static auto TeamIndexOffset = GetOffset("TeamIndex");
return Get<uint8>(TeamIndexOffset);
}
FString GetPlayerName()
{
static auto GetPlayerNameFn = FindObject<UFunction>("/Script/Engine.PlayerState.GetPlayerName");
FString PlayerName;
this->ProcessEvent(GetPlayerNameFn, &PlayerName);
return PlayerName;
}
static UClass* StaticClass()
{
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortPlayerStateAthena");
return Class;
}
};