Fix RenderGunboat wake animation
This commit is contained in:
@@ -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
BIN
mods/cnc/bits/wake.shp
Normal file
Binary file not shown.
@@ -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
|
||||||
Reference in New Issue
Block a user