mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
abundant update
complete looting rewrite, improve combining pickups, add debug printing logs, fix some agids, fix cheat summon, fix issue with vehicle spawning.
This commit is contained in:
@@ -5,13 +5,9 @@
|
||||
#include "Array.h"
|
||||
#include "FortWorldItemDefinition.h"
|
||||
#include "SoftObjectPtr.h"
|
||||
#include "FortItem.h"
|
||||
|
||||
struct LootDrop
|
||||
{
|
||||
UFortItemDefinition* ItemDefinition;
|
||||
int Count;
|
||||
int LoadedAmmo;
|
||||
};
|
||||
#define EXPERIMENTAL_LOOTING
|
||||
|
||||
struct FFortLootPackageData
|
||||
{
|
||||
@@ -46,6 +42,12 @@ public:
|
||||
return *(int*)(__int64(this) + CountOffset);
|
||||
}
|
||||
|
||||
int& GetLootPackageCategory()
|
||||
{
|
||||
static auto LootPackageCategoryOffset = FindOffsetStruct("/Script/FortniteGame.FortLootPackageData", "LootPackageCategory");
|
||||
return *(int*)(__int64(this) + LootPackageCategoryOffset);
|
||||
}
|
||||
|
||||
FString& GetAnnotation()
|
||||
{
|
||||
static auto AnnotationOffset = FindOffsetStruct("/Script/FortniteGame.FortLootPackageData", "Annotation");
|
||||
@@ -99,4 +101,18 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
struct LootDrop
|
||||
{
|
||||
FFortItemEntry* ItemEntry;
|
||||
|
||||
FFortItemEntry* operator->() {
|
||||
return ItemEntry;
|
||||
}
|
||||
|
||||
~LootDrop()
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
std::vector<LootDrop> PickLootDrops(FName TierGroupName, bool bPrint = false, int recursive = 0);
|
||||
Reference in New Issue
Block a user