From 15647635f1dcaf3e1baf831083674bb62d6f07e9 Mon Sep 17 00:00:00 2001 From: Twin1 Date: Tue, 10 Oct 2023 22:17:07 -0500 Subject: [PATCH] fix spawn loc for pickups not sure if this is even correct, its what i usually do --- Project Reboot 3.0/BuildingContainer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/BuildingContainer.cpp b/Project Reboot 3.0/BuildingContainer.cpp index 2b1c47a..e007a6d 100644 --- a/Project Reboot 3.0/BuildingContainer.cpp +++ b/Project Reboot 3.0/BuildingContainer.cpp @@ -12,8 +12,10 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn) this->ForceNetUpdate(); auto GameMode = Cast(GetWorld()->GetGameMode()); + // idk + /* this->GetActorForwardVector() * this->GetLootSpawnLocation_Athena().X + this->GetActorRightVector() * this->GetLootSpawnLocation_Athena().Y + this->GetActorUpVector() * this->GetLootSpawnLocation_Athena().Z*/ - FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorForwardVector() * this->GetLootSpawnLocation_Athena().X + this->GetActorRightVector() * this->GetLootSpawnLocation_Athena().Y + this->GetActorUpVector() * this->GetLootSpawnLocation_Athena().Z; + FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorRightVector() * 70.0f + FVector{ 0,0,50 } ; auto RedirectedLootTier = GameMode->RedirectLootTier(GetSearchLootTierGroup());