mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
33 lines
717 B
C++
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;
|
|
}
|
|
}; |