mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
a good update
Added a very useful debugging tool, made looting even more proper
This commit is contained in:
@@ -6,18 +6,49 @@
|
||||
#include "FortWorldItemDefinition.h"
|
||||
#include "FortInventory.h"
|
||||
|
||||
enum class ERespawnRequirements : uint8_t
|
||||
{
|
||||
RespawnOnly = 0,
|
||||
NoRespawnOnly = 1,
|
||||
Both = 2,
|
||||
ERespawnRequirements_MAX = 3
|
||||
};
|
||||
|
||||
struct FItemsToDropOnDeath
|
||||
{
|
||||
UFortWorldItemDefinition* ItemToDrop; // 0x0000(0x0008) (Edit, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
|
||||
FScalableFloat NumberToDrop; // 0x0008(0x0020) (Edit, NativeAccessSpecifierPublic)
|
||||
static UStruct* GetStruct()
|
||||
{
|
||||
static auto Struct = FindObject<UStruct>("/Script/FortniteGame.ItemsToDropOnDeath");
|
||||
return Struct;
|
||||
}
|
||||
|
||||
static int GetStructSize() { return GetStruct()->GetPropertiesSize(); }
|
||||
|
||||
UFortWorldItemDefinition*& GetItemToDrop()
|
||||
{
|
||||
static auto ItemToDropOffset = FindOffsetStruct("/Script/FortniteGame.ItemsToDropOnDeath", "ItemToDrop");
|
||||
return *(UFortWorldItemDefinition**)(__int64(this) + ItemToDropOffset);
|
||||
}
|
||||
|
||||
FScalableFloat* GetNumberToDrop()
|
||||
{
|
||||
static auto NumberToDropOffset = FindOffsetStruct("/Script/FortniteGame.ItemsToDropOnDeath", "NumberToDrop");
|
||||
return (FScalableFloat*)(__int64(this) + NumberToDropOffset);
|
||||
}
|
||||
};
|
||||
|
||||
class AFortAthenaMutator_ItemDropOnDeath : public AFortAthenaMutator
|
||||
{
|
||||
public:
|
||||
ERespawnRequirements/*&*/ GetRespawnRequirements()
|
||||
{
|
||||
static auto RespawnRequirementsOffset = GetOffset("RespawnRequirements");
|
||||
return Get<ERespawnRequirements>(RespawnRequirementsOffset);
|
||||
}
|
||||
|
||||
TArray<FItemsToDropOnDeath>& GetItemsToDrop()
|
||||
{
|
||||
static auto ItemsToDropOffset = GetOffset("ItemsToDrop");
|
||||
return Get<TArray<FItemsToDropOnDeath>>(ItemsToDropoOffset);
|
||||
return Get<TArray<FItemsToDropOnDeath>>(ItemsToDropOffset);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user