mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
toys, ammo in bottom right kinda, fix lootin speeds, being inaccurate, playlist looting kindof, or some things just not working.
28 lines
675 B
C++
28 lines
675 B
C++
#pragma once
|
|
|
|
#include "Actor.h"
|
|
#include "GameplayAbilitySpec.h"
|
|
#include "Stack.h"
|
|
|
|
class AFortWeapon : public AActor
|
|
{
|
|
public:
|
|
static inline void (*ServerReleaseWeaponAbilityOriginal)(UObject* Context, FFrame* Stack, void* Ret);
|
|
|
|
template <typename T = class UFortWeaponItemDefinition>
|
|
T* GetWeaponData()
|
|
{
|
|
static auto WeaponDataOffset = GetOffset("WeaponData");
|
|
return Get<T*>(WeaponDataOffset);
|
|
}
|
|
|
|
FGuid& GetItemEntryGuid()
|
|
{
|
|
static auto ItemEntryGuidOffset = GetOffset("ItemEntryGuid");
|
|
return Get<FGuid>(ItemEntryGuidOffset);
|
|
}
|
|
|
|
static void ServerReleaseWeaponAbilityHook(UObject* Context, FFrame* Stack, void* Ret);
|
|
|
|
static UClass* StaticClass();
|
|
}; |