Added callback in Passenger during unload from cargo just before the actor is added back to the world

This commit is contained in:
michaeldgg2
2023-09-27 20:55:07 +02:00
committed by Gustas
parent bc37d7169d
commit 12fb091bbc
3 changed files with 16 additions and 3 deletions

View File

@@ -428,8 +428,7 @@ namespace OpenRA.Mods.Common.Traits
foreach (var nbm in nbms)
nbm.OnNotifyBlockingMove(passenger, passenger);
// For show.
passenger.QueueActivity(new Nudge(passenger));
passenger.Trait<Passenger>().OnEjectedFromKilledCargo(passenger);
}
else
passenger.Kill(e.Attacker);