sniper can go into pillbox and garrision church
This commit is contained in:
committed by
Chris Forbes
parent
02f28f54c7
commit
45fbecbcd0
@@ -29,10 +29,12 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner)
|
||||
{
|
||||
self.QueueActivity(new Transform(self, Info.IntoActor) {
|
||||
ForceHealthPercentage = Info.ForceHealthPercentage,
|
||||
Facing = self.Trait<IFacing>().Facing
|
||||
});
|
||||
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;
|
||||
self.CancelActivity();
|
||||
self.QueueActivity(transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user