Fixed MCP on 1.8, Fixed some buildings not showing up on 1.7.2 and 1.8, fixed listplayers crashing on some versions
This commit is contained in:
Milxnor
2023-04-29 20:15:24 -04:00
parent e04b3a2054
commit 891f45f469
16 changed files with 104 additions and 19 deletions

View File

@@ -20,12 +20,10 @@ public:
return Get<uint8>(TeamIndexOffset);
}
FString GetPlayerName()
int& GetPlace()
{
static auto GetPlayerNameFn = FindObject<UFunction>("/Script/Engine.PlayerState.GetPlayerName");
FString PlayerName;
this->ProcessEvent(GetPlayerNameFn, &PlayerName);
return PlayerName;
static auto PlaceOffset = GetOffset("Place");
return Get<int>(PlaceOffset);
}
void ClientReportKill(AFortPlayerStateAthena* Player)