Dude 💀

This commit is contained in:
Gray
2024-03-20 21:45:38 -04:00
parent 138d3cc668
commit b3d9ab9e8b
46 changed files with 2846 additions and 1608 deletions

View File

@@ -4,6 +4,7 @@
#include "reboot.h"
#include "GameplayStatics.h"
#include "Level.h"
bool AActor::HasAuthority()
{
@@ -11,6 +12,11 @@ bool AActor::HasAuthority()
return Get<uint8_t>(RoleOffset) == 3;
}
bool AActor::GetNetDormancy(const FVector& ViewPos, const FVector& ViewDir, AActor* Viewer, AActor* ViewTarget, class UActorChannel* InChannel, float Time, bool bLowBandwidth) // T(REP)
{
return false;
}
bool AActor::IsTearOff()
{
static auto bTearOffOffset = GetOffset("bTearOff");
@@ -18,7 +24,12 @@ bool AActor::IsTearOff()
return ReadBitfieldValue(bTearOffOffset, bTearOffFieldMask);
}
/* FORCEINLINE */ ENetDormancy& AActor::GetNetDormancy()
ULevel* AActor::GetLevel() const
{
return GetTypedOuter<ULevel>();
}
/* FORCEINLINE */ ENetDormancy& AActor::NetDormancy()
{
static auto NetDormancyOffset = GetOffset("NetDormancy");
return Get<ENetDormancy>(NetDormancyOffset);
@@ -38,15 +49,6 @@ FTransform AActor::GetTransform()
return Ret;
}
/*
UWorld* AActor::GetWorld()
{
return GetWorld(); // for real
}
*/
void AActor::SetNetDormancy(ENetDormancy Dormancy)
{
static auto SetNetDormancyFn = FindObject<UFunction>(L"/Script/Engine.Actor.SetNetDormancy");
@@ -63,6 +65,18 @@ AActor* AActor::GetOwner()
return Owner;
}
FName& AActor::GetNetDriverName()
{
static auto NetDriverNameOffset = GetOffset("NetDriverName");
return Get<FName>(NetDriverNameOffset);
}
ENetRole& AActor::GetRemoteRole()
{
static auto RemoteRoleOffset = GetOffset("RemoteRole");
return Get<ENetRole>(RemoteRoleOffset);
}
void AActor::K2_DestroyActor()
{
static auto DestroyActorFn = FindObject<UFunction>("/Script/Engine.Actor.K2_DestroyActor");
@@ -195,12 +209,12 @@ void AActor::ForceNetUpdate()
this->ProcessEvent(ForceNetUpdateFn);
}
bool AActor::IsNetStartupActor()
bool AActor::IsNetStartupActor() // T(REP)
{
return IsNetStartup(); // The implementation on this function depends on the version.
}
bool AActor::IsPendingKillPending()
bool AActor::IsPendingKillPending() // T(REP)
{
return IsActorBeingDestroyed() || !IsValidChecked(this);
}
@@ -246,6 +260,11 @@ const AActor* AActor::GetNetOwner() const
return GetNetOwnerOriginal(this);
}
bool AActor::IsActorInitialized() // T(REP)
{
return true;
}
void AActor::GetActorEyesViewPoint(FVector* OutLocation, FRotator* OutRotation) const
{
static auto GetActorEyesViewPointFn = FindObject<UFunction>(L"/Script/Engine.Actor.GetActorEyesViewPoint");