mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
i broke the whole project but its fine
complete pickup rewrite, idle pawns
This commit is contained in:
@@ -10,6 +10,26 @@ public:
|
||||
struct FGameplayAttribute
|
||||
{
|
||||
FString AttributeName;
|
||||
void* Attribute;
|
||||
UStruct* AttributeOwner;
|
||||
void* Attribute; // Property
|
||||
UStruct* AttributeOwner;
|
||||
|
||||
std::string GetAttributeName()
|
||||
{
|
||||
return AttributeName.ToString();
|
||||
}
|
||||
|
||||
std::string GetAttributePropertyName()
|
||||
{
|
||||
if (!Attribute)
|
||||
return "INVALIDATTRIBUTE";
|
||||
|
||||
FName* NamePrivate = nullptr;
|
||||
|
||||
if (Engine_Version >= 425)
|
||||
NamePrivate = (FName*)(__int64(Attribute) + 0x28);
|
||||
else
|
||||
NamePrivate = &((UField*)Attribute)->NamePrivate;
|
||||
|
||||
return NamePrivate->ToString();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user