mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
Fixed MCP on 1.8, Fixed some buildings not showing up on 1.7.2 and 1.8, fixed listplayers crashing on some versions
42 lines
1.0 KiB
C++
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;
|
|
}
|
|
}; |