mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user