Give bot skins

This commit is contained in:
Gray
2024-03-19 13:11:02 -04:00
parent 54b2383124
commit 5bfe3a6179
19 changed files with 388 additions and 227 deletions

View File

@@ -3,6 +3,7 @@
#include "Object.h"
#include "FortPlayerPawnAthena.h"
#include "FortAthenaAIBotCustomizationData.h"
#include "FortAthenaMutator_Bots.h"
struct FFortAthenaAIBotRunTimeCustomizationData
{
@@ -16,5 +17,11 @@ class UFortServerBotManagerAthena : public UObject
public:
static inline AFortPlayerPawnAthena* (*SpawnBotOriginal)(UFortServerBotManagerAthena* BotManager, FVector InSpawnLocation, FRotator InSpawnRotation, UFortAthenaAIBotCustomizationData* InBotData, FFortAthenaAIBotRunTimeCustomizationData InRuntimeBotData);
AFortAthenaMutator_Bots*& GetCachedBotMutator()
{
static auto CachedBotMutatorOffset = GetOffset("CachedBotMutator");
return Get<AFortAthenaMutator_Bots*>(CachedBotMutatorOffset);
}
static AFortPlayerPawnAthena* SpawnBotHook(UFortServerBotManagerAthena* BotManager, FVector& InSpawnLocation, FRotator& InSpawnRotation, UFortAthenaAIBotCustomizationData* InBotData, FFortAthenaAIBotRunTimeCustomizationData* InRuntimeBotData);
};