fix spawn loc for pickups

not sure if this is even correct, its what i usually do
This commit is contained in:
Twin1
2023-10-10 22:17:07 -05:00
parent 1e85ce380c
commit 15647635f1

View File

@@ -12,8 +12,10 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn)
this->ForceNetUpdate(); this->ForceNetUpdate();
auto GameMode = Cast<AFortGameModeAthena>(GetWorld()->GetGameMode()); auto GameMode = Cast<AFortGameModeAthena>(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()); auto RedirectedLootTier = GameMode->RedirectLootTier(GetSearchLootTierGroup());