mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
wow release commit
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "FortPickup.h"
|
||||
#include "FortLootPackage.h"
|
||||
#include "AbilitySystemComponent.h"
|
||||
#include "FortGameModeAthena.h"
|
||||
|
||||
UFortResourceItemDefinition* UFortKismetLibrary::K2_GetResourceItemDefinition(EFortResourceType ResourceType)
|
||||
{
|
||||
@@ -524,6 +525,32 @@ AFortPickup* UFortKismetLibrary::K2_SpawnPickupInWorldWithClassHook(UObject* Con
|
||||
return *Ret;
|
||||
}
|
||||
|
||||
UObject* UFortKismetLibrary::GetAIDirectorHook(UObject* Context, FFrame& Stack, UObject** Ret)
|
||||
{
|
||||
auto GameMode = Cast<AFortGameModeAthena>(GetWorld()->GetGameMode());
|
||||
static auto AIDirectorOffset = GameMode->GetOffset("AIDirector");
|
||||
|
||||
auto AIDirector = GameMode->Get(AIDirectorOffset);
|
||||
|
||||
GetAIDirectorOriginal(Context, Stack, Ret);
|
||||
|
||||
*Ret = AIDirector;
|
||||
return *Ret;
|
||||
}
|
||||
|
||||
UObject* UFortKismetLibrary::GetAIGoalManagerHook(UObject* Context, FFrame& Stack, UObject** Ret)
|
||||
{
|
||||
auto GameMode = Cast<AFortGameModeAthena>(GetWorld()->GetGameMode());
|
||||
static auto AIGoalManagerOffset = GameMode->GetOffset("AIGoalManager");
|
||||
|
||||
auto GoalManager = GameMode->Get(AIGoalManagerOffset);
|
||||
|
||||
GetAIGoalManagerOriginal(Context, Stack, Ret);
|
||||
|
||||
*Ret = GoalManager;
|
||||
return *Ret;
|
||||
}
|
||||
|
||||
AFortPickup* UFortKismetLibrary::K2_SpawnPickupInWorldHook(UObject* Context, FFrame& Stack, AFortPickup** Ret)
|
||||
{
|
||||
UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
|
||||
|
||||
Reference in New Issue
Block a user