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) : base(info)
{ {
self = init.Self; self = init.Self;
OpenPosition = Info.TransitionDelay; Position = OpenPosition = Info.TransitionDelay;
building = self.Trait<Building>(); building = self.Trait<Building>();
blockedPositions = building.Info.Tiles(self.Location); blockedPositions = building.Info.Tiles(self.Location);
Footprint = blockedPositions; Footprint = blockedPositions;

View File

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

View File

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