From a2e35144a7e1a805b4da0003a6a31676dce94de7 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 26 Jan 2019 10:29:46 +0000 Subject: [PATCH] Fix gate animations. --- OpenRA.Mods.Common/Traits/Buildings/Gate.cs | 2 +- mods/ts/rules/defaults.yaml | 8 ++++---- mods/ts/sequences/structures.yaml | 12 ------------ 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Buildings/Gate.cs b/OpenRA.Mods.Common/Traits/Buildings/Gate.cs index 396525a490ab..89dc9e43cb1e 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/Gate.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/Gate.cs @@ -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(); blockedPositions = building.Info.Tiles(self.Location); Footprint = blockedPositions; diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml index 253bfae5774a..353ecf5f150e 100644 --- a/mods/ts/rules/defaults.yaml +++ b/mods/ts/rules/defaults.yaml @@ -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 diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index 6caa5335aed3..a201da59960e 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -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