Fix RenderGunboat wake animation

This commit is contained in:
reaperrr
2014-10-17 17:28:05 +02:00
parent 3c702b6f8a
commit 9bca5f5131
3 changed files with 4 additions and 2 deletions

View File

@@ -53,11 +53,11 @@ namespace OpenRA.Mods.RA.Render
Add(info.RightSequence, new AnimationWithOffset(right, null, () => facing.Facing <= 128, 0)); Add(info.RightSequence, new AnimationWithOffset(right, null, () => facing.Facing <= 128, 0));
var leftWake = new Animation(self.World, name); var leftWake = new Animation(self.World, name);
leftWake.Play(info.WakeLeftSequence); leftWake.PlayRepeating(info.WakeLeftSequence);
Add(info.WakeLeftSequence, new AnimationWithOffset(leftWake, null, () => facing.Facing > 128, -87)); Add(info.WakeLeftSequence, new AnimationWithOffset(leftWake, null, () => facing.Facing > 128, -87));
var rightWake = new Animation(self.World, name); var rightWake = new Animation(self.World, name);
rightWake.Play(info.WakeRightSequence); rightWake.PlayRepeating(info.WakeRightSequence);
Add(info.WakeRightSequence, new AnimationWithOffset(rightWake, null, () => facing.Facing <= 128, -87)); Add(info.WakeRightSequence, new AnimationWithOffset(rightWake, null, () => facing.Facing <= 128, -87));
} }

BIN
mods/cnc/bits/wake.shp Normal file

Binary file not shown.

View File

@@ -25,6 +25,7 @@ boat:
Start: 6 Start: 6
Length: 6 Length: 6
Offset: 1,2 Offset: 1,2
Tick: 120
right: right:
Start: 96 Start: 96
Facings: 32 Facings: 32
@@ -38,5 +39,6 @@ boat:
Start: 0 Start: 0
Length: 6 Length: 6
Offset: -1,2 Offset: -1,2
Tick: 120
icon: boaticnh icon: boaticnh
Start: 0 Start: 0