Allow skipping 'sell'/undeploy anim for actors that TransformOnCapture
This commit is contained in:
@@ -67,7 +67,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
nt.BeforeTransform(self);
|
nt.BeforeTransform(self);
|
||||||
|
|
||||||
var makeAnimation = self.TraitOrDefault<WithMakeAnimation>();
|
var makeAnimation = self.TraitOrDefault<WithMakeAnimation>();
|
||||||
if (makeAnimation != null)
|
if (!SkipMakeAnims && makeAnimation != null)
|
||||||
{
|
{
|
||||||
// Once the make animation starts the activity must not be stopped anymore.
|
// Once the make animation starts the activity must not be stopped anymore.
|
||||||
IsInterruptible = false;
|
IsInterruptible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user