Introduce INotifyAttack.PreparingAttack
And use it to allow triggering attack animations/overlays at a different point than the actual weapon firing.
This commit is contained in:
@@ -92,7 +92,10 @@ namespace OpenRA.Mods.D2k.Activities
|
||||
});
|
||||
|
||||
foreach (var notify in self.TraitsImplementing<INotifyAttack>())
|
||||
{
|
||||
notify.PreparingAttack(self, target, null, null);
|
||||
notify.Attacking(self, target, null, null);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user