Files
Project-Reboot-3.0/Project Reboot 3.0/FortPlayerStateAthena.h
Milxnor 891f45f469 a bit
Fixed MCP on 1.8, Fixed some buildings not showing up on 1.7.2 and 1.8, fixed listplayers crashing on some versions
2023-04-29 20:15:24 -04:00

42 lines
1.0 KiB
C++

#pragma once
#include "FortPlayerState.h"
#include "Stack.h"
class AFortPlayerStateAthena : public AFortPlayerState
{
public:
static inline void (*ServerSetInAircraftOriginal)(UObject* Context, FFrame& Stack, void* Ret);
uint8& GetSquadId()
{
static auto SquadIdOffset = GetOffset("SquadId");
return Get<uint8>(SquadIdOffset);
}
uint8& GetTeamIndex()
{
static auto TeamIndexOffset = GetOffset("TeamIndex");
return Get<uint8>(TeamIndexOffset);
}
int& GetPlace()
{
static auto PlaceOffset = GetOffset("Place");
return Get<int>(PlaceOffset);
}
void ClientReportKill(AFortPlayerStateAthena* Player)
{
static auto ClientReportKillFn = FindObject<UFunction>("/Script/FortniteGame.FortPlayerStateAthena.ClientReportKill");
this->ProcessEvent(ClientReportKillFn, &Player);
}
static void ServerSetInAircraftHook(UObject* Context, FFrame& Stack, void* Ret);
static UClass* StaticClass()
{
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortPlayerStateAthena");
return Class;
}
};