wow release commit

This commit is contained in:
Milxnor
2023-05-18 16:34:17 -04:00
parent 1523c5b065
commit e54f00e9da
15 changed files with 270 additions and 33 deletions

View File

@@ -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)