This commit is contained in:
Gray
2024-03-08 18:16:32 -05:00
parent 99477f15e0
commit be2fc81942
9 changed files with 43 additions and 38 deletions

View File

@@ -16,6 +16,13 @@ void APlayerController::SetPlayerIsWaiting(bool NewValue)
this->SetBitfieldValue(bPlayerIsWaitingOffset, bPlayerIsWaitingFieldMask, NewValue);
}
bool APlayerController::IsPlayerWaiting()
{
static auto bPlayerIsWaitingOffset = GetOffset("bPlayerIsWaiting");
static auto bPlayerIsWaitingFieldMask = GetFieldMask(this->GetProperty("bPlayerIsWaiting"));
return this->ReadBitfieldValue(bPlayerIsWaitingOffset, bPlayerIsWaitingFieldMask);
}
UCheatManager*& APlayerController::SpawnCheatManager(UClass* CheatManagerClass)
{
GetCheatManager() = UGameplayStatics::SpawnObject<UCheatManager>(CheatManagerClass, this, true);