pickup combining, almost finish shadow stones, fix some bugs with gadgets, clean up some code.
This commit is contained in:
Milxnor
2023-05-02 23:48:05 -04:00
parent 3b0f0ad4e1
commit f49f166c2d
27 changed files with 574 additions and 216 deletions

View File

@@ -19,6 +19,17 @@ public:
return ReadBitfieldValue(bDropAllOnEquipOffset, bDropAllOnEquipFieldMask);
}
bool ShouldDestroyGadgetWhenTrackedAttributesIsZero()
{
static auto bDestroyGadgetWhenTrackedAttributesIsZeroOffset = GetOffset("bDestroyGadgetWhenTrackedAttributesIsZero", false);
if (bDestroyGadgetWhenTrackedAttributesIsZeroOffset == -1)
return false;
static auto bDestroyGadgetWhenTrackedAttributesIsZeroFieldMask = GetFieldMask(GetProperty("bDestroyGadgetWhenTrackedAttributesIsZero"));
return ReadBitfieldValue(bDestroyGadgetWhenTrackedAttributesIsZeroOffset, bDestroyGadgetWhenTrackedAttributesIsZeroFieldMask);
}
UAttributeSet* GetAttributeSet()
{
static auto AttributeSetOffset = this->GetOffset("AttributeSet", false);
@@ -34,6 +45,8 @@ public:
void UnequipGadgetData(AFortPlayerController* PlayerController, UFortItem* Item);
static void UpdateTrackedAttributesHook(UFortGadgetItemDefinition* GadgetItemDefinition);
static UClass* StaticClass()
{
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortGadgetItemDefinition");