mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
add 2.2
code consistency, added 2.2, added cheat op and deop, proper loot tiers according to playlist, improved performance
This commit is contained in:
51
Project Reboot 3.0/FortVehicleItemDefinition.h
Normal file
51
Project Reboot 3.0/FortVehicleItemDefinition.h
Normal file
@@ -0,0 +1,51 @@
|
||||
#pragma once
|
||||
|
||||
#include "SoftObjectPtr.h"
|
||||
#include "FortWorldItemDefinition.h"
|
||||
#include "GameplayAbilityTypes.h"
|
||||
|
||||
class UFortVehicleItemDefinition : public UFortWorldItemDefinition
|
||||
{
|
||||
public:
|
||||
FScalableFloat* GetMinPercentWithGas()
|
||||
{
|
||||
static auto MinPercentWithGasOffset = GetOffset("MinPercentWithGas");
|
||||
return GetPtr<FScalableFloat>(MinPercentWithGasOffset);
|
||||
}
|
||||
|
||||
FScalableFloat* GetMaxPercentWithGas()
|
||||
{
|
||||
static auto MaxPercentWithGasOffset = GetOffset("MaxPercentWithGas");
|
||||
return GetPtr<FScalableFloat>(MaxPercentWithGasOffset);
|
||||
}
|
||||
|
||||
FScalableFloat* GetVehicleMinSpawnPercent()
|
||||
{
|
||||
static auto VehicleMinSpawnPercentOffset = GetOffset("VehicleMinSpawnPercent");
|
||||
return GetPtr<FScalableFloat>(VehicleMinSpawnPercentOffset);
|
||||
}
|
||||
|
||||
FScalableFloat* GetVehicleMaxSpawnPercent()
|
||||
{
|
||||
static auto VehicleMaxSpawnPercentOffset = GetOffset("VehicleMaxSpawnPercent");
|
||||
return GetPtr<FScalableFloat>(VehicleMaxSpawnPercentOffset);
|
||||
}
|
||||
|
||||
TSoftObjectPtr<UClass>* GetVehicleActorClassSoft()
|
||||
{
|
||||
static auto VehicleActorClassOffset = GetOffset("VehicleActorClass");
|
||||
return GetPtr<TSoftObjectPtr<UClass>>(VehicleActorClassOffset);
|
||||
}
|
||||
|
||||
UClass* GetVehicleActorClass()
|
||||
{
|
||||
static auto BGAClass = FindObject<UClass>(L"/Script/Engine.BlueprintGeneratedClass");
|
||||
return GetVehicleActorClassSoft()->Get(BGAClass, true);
|
||||
}
|
||||
|
||||
static UClass* StaticClass()
|
||||
{
|
||||
static auto Class = FindObject<UClass>(L"/Script/FortniteGame.FortVehicleItemDefinition");
|
||||
return Class;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user