mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a medium amount
fix some playlist starter loot, cleanup some code, fix death bugs on 1.8 and 1.7.2, fix reloading not taking items on 1.8 and 1.7.2, fix looting on s9, fix some s15 & s16 builds, fix bug with higher version looting
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "GameplayTagContainer.h"
|
||||
#include "BuildingActor.h"
|
||||
#include "FortPlayerPawnAthena.h"
|
||||
#include "GameplayAbilityTypes.h"
|
||||
|
||||
struct FGameplayTagRequirements
|
||||
{
|
||||
@@ -236,6 +237,41 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct FAthenaScoreData
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
struct FWinConditionScoreData
|
||||
{
|
||||
static UStruct* GetStruct()
|
||||
{
|
||||
static auto Struct = FindObject<UStruct>("/Script/FortniteGame.WinConditionScoreData");
|
||||
return Struct;
|
||||
}
|
||||
|
||||
static int GetStructSize() { return GetStruct()->GetPropertiesSize(); }
|
||||
|
||||
FScalableFloat* GetGoalScore()
|
||||
{
|
||||
static auto GoalScoreOffset = FindOffsetStruct("/Script/FortniteGame.WinConditionScoreData", "GoalScore");
|
||||
return (FScalableFloat*)(__int64(this) + GoalScoreOffset);
|
||||
}
|
||||
|
||||
FScalableFloat* GetBigScoreThreshold()
|
||||
{
|
||||
static auto BigScoreThresholdOffset = FindOffsetStruct("/Script/FortniteGame.WinConditionScoreData", "BigScoreThreshold");
|
||||
return (FScalableFloat*)(__int64(this) + BigScoreThresholdOffset);
|
||||
}
|
||||
|
||||
TArray<FAthenaScoreData>& GetScoreDataList()
|
||||
{
|
||||
static auto ScoreDataListOffset = FindOffsetStruct("/Script/FortniteGame.WinConditionScoreData", "ScoreDataList");
|
||||
return *(TArray<FAthenaScoreData>*)(__int64(this) + ScoreDataListOffset);
|
||||
}
|
||||
};
|
||||
|
||||
class UFortPlaylist : public UObject
|
||||
{
|
||||
public:
|
||||
@@ -245,6 +281,12 @@ public:
|
||||
return this->Get<TArray<TSoftObjectPtr<UFortGameplayModifierItemDefinition>>>(ModifierListOffset);
|
||||
}
|
||||
|
||||
FWinConditionScoreData* GetScoringData()
|
||||
{
|
||||
static auto ScoringDataOffset = GetOffset("ScoringData");
|
||||
return GetPtr<FWinConditionScoreData>(ScoringDataOffset);
|
||||
}
|
||||
|
||||
void ApplyModifiersToActor(AActor* Actor)
|
||||
{
|
||||
if (!Actor)
|
||||
|
||||
Reference in New Issue
Block a user