mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
fixed s6, added pickup notifications
This commit is contained in:
@@ -637,7 +637,12 @@ AActor* AFortPlayerController::SpawnToyInstanceHook(UObject* Context, FFrame* St
|
||||
auto NewToy = GetWorld()->SpawnActor<AActor>(ToyClass, SpawnPosition, SpawnParameters);
|
||||
|
||||
static auto ActiveToyInstancesOffset = PlayerController->GetOffset("ActiveToyInstances");
|
||||
auto& ActiveToyInstances = PlayerController->Get<TArray<AActor*>>(ActiveToyInstancesOffset);
|
||||
|
||||
static auto ToySummonCountsOffset = PlayerController->GetOffset("ToySummonCounts");
|
||||
auto& ToySummonCounts = PlayerController->Get<TMap<UClass*, int>>(ToySummonCountsOffset);
|
||||
|
||||
// ActiveToyInstances.Add(NewToy);
|
||||
|
||||
*Ret = NewToy;
|
||||
return *Ret;
|
||||
|
||||
Reference in New Issue
Block a user