it kinda work

This commit is contained in:
Milxnor
2023-04-05 07:55:28 -04:00
parent bd4a8da94f
commit 0aa6c49580
25 changed files with 1247 additions and 219 deletions

View File

@@ -4,6 +4,25 @@
#include "reboot.h"
bool AActor::IsTearOff()
{
static auto bTearOffOffset = GetOffset("bTearOff");
static auto bTearOffFieldMask = GetFieldMask(GetProperty("bTearOff"));
return ReadBitfieldValue(bTearOffOffset, bTearOffFieldMask);
}
/* FORCEINLINE */ ENetDormancy& AActor::GetNetDormancy()
{
static auto NetDormancyOffset = GetOffset("NetDormancy");
return Get<ENetDormancy>(NetDormancyOffset);
}
int32& AActor::GetNetTag()
{
static auto NetTagOffset = GetOffset("NetTag");
return Get<int32>(NetTagOffset);
}
FTransform AActor::GetTransform()
{
FTransform Ret;
@@ -148,6 +167,13 @@ float& AActor::GetMinNetUpdateFrequency()
return Get<float>(MinNetUpdateFrequencyOffset);
}
const AActor* AActor::GetNetOwner() const
{
static int GetNetOwnerOffset = 0x448; // 1.11
const AActor* (*GetNetOwnerOriginal)(const AActor*) = decltype(GetNetOwnerOriginal)(this->VFTable[GetNetOwnerOffset / 8]);
return GetNetOwnerOriginal(this);
}
bool AActor::IsAlwaysRelevant()
{
static auto bAlwaysRelevantOffset = GetOffset("bAlwaysRelevant");