a bit of stuff

toys, ammo in bottom right kinda, fix lootin speeds, being inaccurate, playlist looting kindof, or some things just not working.
This commit is contained in:
Milxnor
2023-04-01 15:54:47 -04:00
parent a03c1cef2b
commit 701d3ad0d0
23 changed files with 437 additions and 149 deletions

View File

@@ -4,6 +4,7 @@
#include "Class.h"
#include "KismetSystemLibrary.h"
#include "UObjectArray.h"
FName* getFNameOfProp(void* Property)
{
@@ -99,4 +100,36 @@ bool UObject::IsA(UClass* otherClass)
{
static auto Class = FindObject<UClass>("/Script/CoreUObject.Object");
return Class;
} */
} */
void UObject::AddToRoot()
{
auto Item = GetItemByIndex(InternalIndex);
if (!Item)
{
LOG_INFO(LogDev, "Invalid item");
return;
}
Item->SetRootSet();
}
bool UObject::IsValidLowLevel()
{
if (this == nullptr)
{
// UE_LOG(LogUObjectBase, Warning, TEXT("NULL object"));
return false;
}
if (IsBadReadPtr(this, 8)) // needed?
{
return false;
}
if (!ClassPrivate)
{
// UE_LOG(LogUObjectBase, Warning, TEXT("Object is not registered"));
return false;
}
return ChunkedObjects ? ChunkedObjects->IsValid(this) : UnchunkedObjects ? UnchunkedObjects->IsValid(this) : false;
}