Move harvester animation z offset to sequences.
This commit is contained in:
@@ -24,9 +24,6 @@ namespace OpenRA.Mods.RA.Render
|
||||
[Desc("Position relative to body")]
|
||||
public readonly WVec Offset = WVec.Zero;
|
||||
|
||||
[Desc("Additional draw-order offset")]
|
||||
public readonly int ZOffset = 0;
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithHarvestAnimation(init.self, this); }
|
||||
}
|
||||
|
||||
@@ -47,7 +44,7 @@ namespace OpenRA.Mods.RA.Render
|
||||
rs.anims.Add("harvest_{0}".F(info.Sequence), new AnimationWithOffset(anim,
|
||||
() => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
|
||||
() => !visible,
|
||||
p => WithTurret.ZOffsetFromCenter(self, p, info.ZOffset)));
|
||||
p => WithTurret.ZOffsetFromCenter(self, p, 0)));
|
||||
}
|
||||
|
||||
public void Harvested(Actor self, ResourceType resource)
|
||||
|
||||
Reference in New Issue
Block a user