i broke the whole project but its fine

complete pickup rewrite, idle pawns
This commit is contained in:
Milxnor
2023-05-07 17:34:24 -04:00
parent 5e92f2e90b
commit 3405177d20
51 changed files with 1439 additions and 338 deletions

View File

@@ -28,4 +28,24 @@ int& APlayerState::GetPlayerID()
}
return Get<int>(PlayerIDOffset);
}
bool APlayerState::IsBot()
{
static auto bIsABotOffset = GetOffset("bIsABot");
static auto bIsABotFieldMask = GetFieldMask(GetProperty("bIsABot"));
return ReadBitfieldValue(bIsABotOffset, bIsABotFieldMask);
}
void APlayerState::SetIsBot(bool NewValue)
{
static auto bIsABotOffset = GetOffset("bIsABot");
static auto bIsABotFieldMask = GetFieldMask(GetProperty("bIsABot"));
return SetBitfieldValue(bIsABotOffset, bIsABotFieldMask, NewValue);
}
void APlayerState::OnRep_PlayerName()
{
static auto OnRep_PlayerNameFn = FindObject<UFunction>("/Script/Engine.PlayerState.OnRep_PlayerName");
this->ProcessEvent(OnRep_PlayerNameFn);
}