mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
i broke the whole project but its fine
complete pickup rewrite, idle pawns
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user