Skip to content

Commit

Permalink
Fix gate animations.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote authored and obrakmann committed Jan 27, 2019
1 parent d6d1f3a commit a2e3514
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Buildings/Gate.cs
Expand Up @@ -50,7 +50,7 @@ public Gate(ActorInitializer init, GateInfo info)
: base(info)
{
self = init.Self;
OpenPosition = Info.TransitionDelay;
Position = OpenPosition = Info.TransitionDelay;
building = self.Trait<Building>();
blockedPositions = building.Info.Tiles(self.Location);
Footprint = blockedPositions;
Expand Down
8 changes: 4 additions & 4 deletions mods/ts/rules/defaults.yaml
Expand Up @@ -1162,11 +1162,9 @@
-Capturable:
-GivesBuildableArea:
-MustBeDestroyed:
WithMakeAnimation:
Condition: build-incomplete
-WithMakeAnimation:
-WithSpriteBody:
WithGateSpriteBody:
PauseOnCondition: !build-incomplete
OpenSequence: open
Tooltip:
Buildable:
Expand All @@ -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
Expand Down
12 changes: 0 additions & 12 deletions mods/ts/sequences/structures.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a2e3514

Please sign in to comment.