revert CaptureActor.Range, PascalCase conventions, compatibilty
the hardcoded Range=3 was crap for smaller/bigger buildings try not to break TransformOnCapture as it is used for cnc husks
This commit is contained in:
committed by
Chris Forbes
parent
3a1c4d1e6f
commit
affa9ca336
@@ -17,6 +17,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
[ActorReference] public readonly string IntoActor = null;
|
||||
public readonly int ForceHealthPercentage = 0;
|
||||
public readonly bool SkipMakeAnims = true;
|
||||
|
||||
public virtual object Create(ActorInitializer init) { return new TransformOnCapture(this); }
|
||||
}
|
||||
@@ -32,7 +33,7 @@ namespace OpenRA.Mods.RA
|
||||
var facing = self.TraitOrDefault<IFacing>();
|
||||
var transform = new Transform(self, Info.IntoActor) { ForceHealthPercentage = Info.ForceHealthPercentage };
|
||||
if (facing != null) transform.Facing = facing.Facing;
|
||||
transform.SkipMakeAnims = true;
|
||||
transform.SkipMakeAnims = Info.SkipMakeAnims;
|
||||
self.CancelActivity();
|
||||
self.QueueActivity(transform);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user