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)
|
||||
|
||||
@@ -89,7 +89,6 @@ HARVESTER:
|
||||
LeavesHusk:
|
||||
HuskActor: Harvester.Husk
|
||||
WithHarvestAnimation:
|
||||
ZOffset: 1
|
||||
|
||||
HARVESTER.Husk:
|
||||
Inherits: ^Husk
|
||||
|
||||
@@ -72,6 +72,7 @@ harvester:
|
||||
Length: 6
|
||||
Facings: 8
|
||||
Tick: 80
|
||||
ZOffset: 1
|
||||
dock: unload2
|
||||
Start: 0
|
||||
Length: 10
|
||||
|
||||
Reference in New Issue
Block a user