cheat spawnpickup, teams on >s4, bga spawning, gameplayeffects apply from abilityset
This commit is contained in:
Milxnor
2023-04-08 00:35:54 -04:00
parent 636a084bcb
commit 5f5d7fb649
27 changed files with 712 additions and 125 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include "reboot.h"
#include "BuildingGameplayActor.h"
#include "GameplayStatics.h"
using ABuildingItemCollectorActor = ABuildingGameplayActor;
void FillVendingMachine(ABuildingItemCollectorActor* VendingMachine)
{
}
void FillVendingMachines()
{
static auto VendingMachineClass = FindObject<UClass>("/Game/Athena/Items/Gameplay/VendingMachine/B_Athena_VendingMachine.B_Athena_VendingMachine_C");
auto AllVendingMachines = UGameplayStatics::GetAllActorsOfClass(GetWorld(), VendingMachineClass);
for (int i = 0; i < AllVendingMachines.Num(); i++)
{
auto VendingMachine = (ABuildingItemCollectorActor*)AllVendingMachines.at(i);
if (!VendingMachine)
continue;
FillVendingMachine(VendingMachine);
}
AllVendingMachines.Free();
}