Merge pull request #6772 from reaperrr/wake-fix

Fixed RenderGunboat wake animation
This commit is contained in:
obrakmann
2014-10-17 23:13:49 +02:00
4 changed files with 6 additions and 4 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

@@ -17,10 +17,10 @@ BOAT:
Range: 7c0 Range: 7c0
Turreted: Turreted:
ROT: 7 ROT: 7
Offset: 640,0,171 Offset: 0,896,171
Armament: Armament:
Weapon: BoatMissile Weapon: BoatMissile
LocalOffset: 213,-180,0, 213,128,0, 213,0,0 LocalOffset: 85,-85,0, 85,85,0
AttackTurreted: AttackTurreted:
RenderGunboat: RenderGunboat:
Selectable: Selectable:

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