mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
Use LootSpawnLocation_Athena in floorloot too
This commit is contained in:
@@ -1117,8 +1117,6 @@ void AFortGameModeAthena::Athena_HandleStartingNewPlayerHook(AFortGameModeAthena
|
|||||||
auto SpawnIslandTierGroup = UKismetStringLibrary::Conv_StringToName(L"Loot_AthenaFloorLoot_Warmup");
|
auto SpawnIslandTierGroup = UKismetStringLibrary::Conv_StringToName(L"Loot_AthenaFloorLoot_Warmup");
|
||||||
auto BRIslandTierGroup = UKismetStringLibrary::Conv_StringToName(L"Loot_AthenaFloorLoot");
|
auto BRIslandTierGroup = UKismetStringLibrary::Conv_StringToName(L"Loot_AthenaFloorLoot");
|
||||||
|
|
||||||
float UpZ = 50;
|
|
||||||
|
|
||||||
uint8 SpawnFlag = EFortPickupSourceTypeFlag::GetContainerValue();
|
uint8 SpawnFlag = EFortPickupSourceTypeFlag::GetContainerValue();
|
||||||
|
|
||||||
bool bTest = false;
|
bool bTest = false;
|
||||||
@@ -1127,8 +1125,9 @@ void AFortGameModeAthena::Athena_HandleStartingNewPlayerHook(AFortGameModeAthena
|
|||||||
for (int i = 0; i < SpawnIsland_FloorLoot_Actors.Num(); i++)
|
for (int i = 0; i < SpawnIsland_FloorLoot_Actors.Num(); i++)
|
||||||
{
|
{
|
||||||
ABuildingContainer* CurrentActor = (ABuildingContainer*)SpawnIsland_FloorLoot_Actors.at(i);
|
ABuildingContainer* CurrentActor = (ABuildingContainer*)SpawnIsland_FloorLoot_Actors.at(i);
|
||||||
auto Location = CurrentActor->GetActorLocation();
|
static auto LootSpawnLocationOffset = CurrentActor->GetOffset("LootSpawnLocation_Athena");
|
||||||
Location.Z += UpZ;
|
auto LSL = CurrentActor->Get<FVector>(LootSpawnLocationOffset);
|
||||||
|
auto Location = CurrentActor->GetActorLocation() + CurrentActor->GetActorForwardVector() * LSL.X + CurrentActor->GetActorRightVector() * LSL.Y + CurrentActor->GetActorUpVector() * LSL.Z;
|
||||||
|
|
||||||
std::vector<LootDrop> LootDrops = PickLootDrops(SpawnIslandTierGroup, -1, bPrintWarmup);
|
std::vector<LootDrop> LootDrops = PickLootDrops(SpawnIslandTierGroup, -1, bPrintWarmup);
|
||||||
|
|
||||||
@@ -1157,8 +1156,9 @@ void AFortGameModeAthena::Athena_HandleStartingNewPlayerHook(AFortGameModeAthena
|
|||||||
{
|
{
|
||||||
ABuildingContainer* CurrentActor = (ABuildingContainer*)BRIsland_FloorLoot_Actors.at(i);
|
ABuildingContainer* CurrentActor = (ABuildingContainer*)BRIsland_FloorLoot_Actors.at(i);
|
||||||
spawned++;
|
spawned++;
|
||||||
auto Location = CurrentActor->GetActorLocation();
|
static auto LootSpawnLocationOffset = CurrentActor->GetOffset("LootSpawnLocation_Athena");
|
||||||
Location.Z += UpZ;
|
auto LSL = CurrentActor->Get<FVector>(LootSpawnLocationOffset);
|
||||||
|
auto Location = CurrentActor->GetActorLocation() + CurrentActor->GetActorForwardVector() * LSL.X + CurrentActor->GetActorRightVector() * LSL.Y + CurrentActor->GetActorUpVector() * LSL.Z;
|
||||||
|
|
||||||
std::vector<LootDrop> LootDrops = PickLootDrops(BRIslandTierGroup, -1, bPrint);
|
std::vector<LootDrop> LootDrops = PickLootDrops(BRIslandTierGroup, -1, bPrint);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user