mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
big oops
This commit is contained in:
@@ -113,8 +113,19 @@ static inline AFortAthenaMutator_Bots* SpawnBotMutator() //sets up all the class
|
|||||||
static auto BGAClass = FindObject<UClass>(L"/Script/Engine.BlueprintGeneratedClass");
|
static auto BGAClass = FindObject<UClass>(L"/Script/Engine.BlueprintGeneratedClass");
|
||||||
static auto PhoebeMutatorClass = LoadObject<UClass>(L"/Game/Athena/AI/Phoebe/BP_Phoebe_Mutator.BP_Phoebe_Mutator_C", BGAClass);
|
static auto PhoebeMutatorClass = LoadObject<UClass>(L"/Game/Athena/AI/Phoebe/BP_Phoebe_Mutator.BP_Phoebe_Mutator_C", BGAClass);
|
||||||
|
|
||||||
|
if (!PhoebeMutatorClass)
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
auto BotMutator = GetWorld()->SpawnActor<AFortAthenaMutator_Bots>(PhoebeMutatorClass);
|
auto BotMutator = GetWorld()->SpawnActor<AFortAthenaMutator_Bots>(PhoebeMutatorClass);
|
||||||
|
|
||||||
|
if (!BotMutator)
|
||||||
|
{
|
||||||
|
LOG_WARN(LogAI, "Failed to spawn Bot Mutator!");
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
static auto CachedGameModeOffset = BotMutator->GetOffset("CachedGameMode");
|
static auto CachedGameModeOffset = BotMutator->GetOffset("CachedGameMode");
|
||||||
BotMutator->Get(CachedGameModeOffset) = GameMode;
|
BotMutator->Get(CachedGameModeOffset) = GameMode;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user