mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
Merge pull request #6 from PRO100KatYT/master
Rotated 90° chest loot stuck in wall fix
This commit is contained in:
@@ -114,6 +114,15 @@ FVector AActor::GetActorRightVector()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FVector AActor::GetActorUpVector()
|
||||||
|
{
|
||||||
|
static auto GetActorUpVectorFn = FindObject<UFunction>("/Script/Engine.Actor.GetActorUpVector");
|
||||||
|
FVector ret;
|
||||||
|
this->ProcessEvent(GetActorUpVectorFn, &ret);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
FRotator AActor::GetActorRotation()
|
FRotator AActor::GetActorRotation()
|
||||||
{
|
{
|
||||||
static auto K2_GetActorRotationFn = FindObject<UFunction>(L"/Script/Engine.Actor.K2_GetActorRotation");
|
static auto K2_GetActorRotationFn = FindObject<UFunction>(L"/Script/Engine.Actor.K2_GetActorRotation");
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public:
|
|||||||
struct FVector GetActorScale3D();
|
struct FVector GetActorScale3D();
|
||||||
struct FVector GetActorLocation();
|
struct FVector GetActorLocation();
|
||||||
struct FVector GetActorRightVector();
|
struct FVector GetActorRightVector();
|
||||||
|
struct FVector GetActorUpVector();
|
||||||
void K2_DestroyActor();
|
void K2_DestroyActor();
|
||||||
class UActorComponent* GetComponentByClass(class UClass* ComponentClass);
|
class UActorComponent* GetComponentByClass(class UClass* ComponentClass);
|
||||||
float GetDistanceTo(AActor* OtherActor);
|
float GetDistanceTo(AActor* OtherActor);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn)
|
bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn)
|
||||||
{
|
{
|
||||||
auto GameMode = Cast<AFortGameModeAthena>(GetWorld()->GetGameMode());
|
auto GameMode = Cast<AFortGameModeAthena>(GetWorld()->GetGameMode());
|
||||||
FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorRightVector() * 70.f + FVector{ 0, 0, 50 };
|
FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorRightVector() * 70.f + this->GetActorUpVector() * 50.f;
|
||||||
|
|
||||||
static auto SearchLootTierGroupOffset = this->GetOffset("SearchLootTierGroup");
|
static auto SearchLootTierGroupOffset = this->GetOffset("SearchLootTierGroup");
|
||||||
auto RedirectedLootTier = GameMode->RedirectLootTier(this->Get<FName>(SearchLootTierGroupOffset));
|
auto RedirectedLootTier = GameMode->RedirectLootTier(this->Get<FName>(SearchLootTierGroupOffset));
|
||||||
|
|||||||
Reference in New Issue
Block a user