This commit is contained in:
Gray
2025-07-18 18:40:13 -04:00
parent 8f0ce8919e
commit 62ffdccd42
15 changed files with 292 additions and 82 deletions

View File

@@ -187,6 +187,15 @@ bool AActor::IsNetStartup()
return ReadBitfieldValue(bNetStartupOffset, bNetStartupFieldMask);
}
bool AActor::DoesReplicate()
{
static auto bReplicatesOffset = GetOffset("bReplicates");
static auto bReplicatesFieldMask = GetFieldMask(GetProperty("bReplicates"));
return ReadBitfieldValue(bReplicatesOffset, bReplicatesFieldMask);
}
void AActor::SetOwner(AActor* Owner)
{
static auto SetOwnerFn = FindObject<UFunction>(L"/Script/Engine.Actor.SetOwner");
@@ -201,7 +210,8 @@ void AActor::ForceNetUpdate()
bool AActor::IsNetStartupActor()
{
return IsNetStartup(); // The implementation on this function depends on the version.
// bNetStartup || (!bActorInitialized && !bActorSeamlessTraveled && bNetLoadOnClient && GetLevel() && !GetLevel()->bAlreadyInitializedNetworkActors);
return IsNetStartup(); // ^^ The implementation on this function depends on the version.
}
bool AActor::IsPendingKillPending()