Allow Chronoshifted/paradropped units to pick up crates, etc.
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA.Activities
|
|||||||
|
|
||||||
public override IActivity Tick(Actor self)
|
public override IActivity Tick(Actor self)
|
||||||
{
|
{
|
||||||
self.TraitsImplementing<IMove>().FirstOrDefault().SetPosition(self, destination);
|
self.TraitsImplementing<ITeleportable>().FirstOrDefault().SetPosition(self, destination);
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ namespace OpenRA.Mods.RA.Move
|
|||||||
{
|
{
|
||||||
SetLocation( cell, cell );
|
SetLocation( cell, cell );
|
||||||
PxPosition = Util.CenterOfCell(fromCell);
|
PxPosition = Util.CenterOfCell(fromCell);
|
||||||
|
FinishedMoving(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetPxPosition( Actor self, int2 px )
|
public void SetPxPosition( Actor self, int2 px )
|
||||||
@@ -136,6 +137,7 @@ namespace OpenRA.Mods.RA.Move
|
|||||||
var cell = Util.CellContaining( px );
|
var cell = Util.CellContaining( px );
|
||||||
SetLocation( cell, cell );
|
SetLocation( cell, cell );
|
||||||
PxPosition = px;
|
PxPosition = px;
|
||||||
|
FinishedMoving(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<IOrderTargeter> Orders { get { yield return new MoveOrderTargeter( Info ); } }
|
public IEnumerable<IOrderTargeter> Orders { get { yield return new MoveOrderTargeter( Info ); } }
|
||||||
|
|||||||
Reference in New Issue
Block a user