Fix gate animations.

This commit is contained in:
Paul Chote
2019-01-26 10:29:46 +00:00
committed by Oliver Brakmann
parent d6d1f3a06d
commit a2e35144a7
3 changed files with 5 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Traits
: base(info)
{
self = init.Self;
OpenPosition = Info.TransitionDelay;
Position = OpenPosition = Info.TransitionDelay;
building = self.Trait<Building>();
blockedPositions = building.Info.Tiles(self.Location);
Footprint = blockedPositions;

View File

@@ -1162,11 +1162,9 @@
-Capturable:
-GivesBuildableArea:
-MustBeDestroyed:
WithMakeAnimation:
Condition: build-incomplete
-WithMakeAnimation:
-WithSpriteBody:
WithGateSpriteBody:
PauseOnCondition: !build-incomplete
OpenSequence: open
Tooltip:
Buildable:
@@ -1180,10 +1178,12 @@
MapEditorData:
Categories: Wall
Gate:
PauseOnCondition: empdisable || build-incomplete
PauseOnCondition: empdisable
OpeningSound: gateup1.aud
ClosingSound: gatedwn1.aud
BlocksProjectilesHeight: 768
Sellable:
RequiresCondition: !being-demolished
^Gate_A:
Inherits: ^Gate

View File

@@ -706,9 +706,6 @@ gagate_a:
Start: 20
Tick: 400
ShadowStart: 41
make:
Frames: 9, 8, 7, 6, 5, 4, 3, 2, 1
Length: 9
emp-overlay: emp_fx01
Length: *
Offset: 0, 0, 25
@@ -750,9 +747,6 @@ gagate_b:
Start: 20
Tick: 400
ShadowStart: 41
make:
Frames: 9, 8, 7, 6, 5, 4, 3, 2, 1
Length: 9
emp-overlay: emp_fx01
Length: *
Offset: 0, 0, 25
@@ -799,9 +793,6 @@ nagate_a:
Start: 14
Tick: 400
ShadowStart: 29
make:
Frames: 6, 5, 4, 3, 2, 1
Length: 6
emp-overlay: emp_fx01
Length: *
Offset: 0, 0, 25
@@ -844,9 +835,6 @@ nagate_b:
Start: 14
Tick: 400
ShadowStart: 29
make:
Frames: 6, 5, 4, 3, 2, 1
Length: 6
emp-overlay: emp_fx01
Length: *
Offset: 0, 0, 25