Make Gate more independent from Building and pausable-conditional

Replace Gate IsDisabled checks with IsTraitDisabled/Paused checks
This commit is contained in:
reaperrr
2017-11-19 17:10:29 +01:00
committed by Paul Chote
parent 383840135f
commit c1cba4ecc1
6 changed files with 93 additions and 37 deletions

View File

@@ -707,22 +707,22 @@
Type: Heavy
LineBuildNode:
Types: concrete, gate
-Building:
-WithSpriteBody:
WithGateSpriteBody:
Tooltip:
Name: Gate
Gate:
BlocksProjectilesHeight: 0
Building:
BuildSounds: place2.aud
OpeningSound: cashturn.aud
ClosingSound: cashturn.aud
TerrainTypes: Clear, Road
RequiresBuildableArea:
AreaTypes: building
Adjacent: 4
EditorTilesetFilter:
Categories: Wall
Gate:
OpeningSound: cashturn.aud
ClosingSound: cashturn.aud
BlocksProjectilesHeight: 0
^TechBuilding:
Inherits: ^BasicBuilding

View File

@@ -1912,7 +1912,7 @@ VGATE:
Type: Rectangle
TopLeft: -512, -1536
BottomRight: 512, 1536
Gate:
Building:
Footprint: x x x
Dimensions: 1,3
WithGateSpriteBody:
@@ -1929,7 +1929,7 @@ HGATE:
Type: Rectangle
TopLeft: -1536, -512
BottomRight: 1536, 512
Gate:
Building:
Footprint: xxx
Dimensions: 3,1
WithGateSpriteBody:

View File

@@ -307,7 +307,7 @@
Dimensions: 1,1
Footprint: x
BuildSounds: place2.aud
TerrainTypes: Clear, Road, DirtRoad, Rough
TerrainTypes: Clear, Rough, Road, DirtRoad, Green, Sand, Pavement
RequiresBuildableArea:
AreaTypes: building
Adjacent: 4
@@ -1128,6 +1128,7 @@
^Gate:
Inherits: ^Building
Inherits@EMPDISABLE: ^EmpDisable
Huntable:
Valued:
Cost: 250
@@ -1137,7 +1138,6 @@
Type: Heavy
LineBuildNode:
Types: wall, gate
-Building:
-Capturable:
-GivesBuildableArea:
-MustBeDestroyed:
@@ -1145,12 +1145,6 @@
WithGateSpriteBody:
OpenSequence: open
Tooltip:
Gate:
BuildSounds: place2.aud
OpeningSound: gateup1.aud
ClosingSound: gatedwn1.aud
TerrainTypes: Clear, Rough, Road, DirtRoad, Green, Sand, Pavement
BlocksProjectilesHeight: 768
Buildable:
Description: Automated barrier that opens for allied units.
HitShape:
@@ -1161,12 +1155,17 @@
VerticalTopOffset: 768
EditorTilesetFilter:
Categories: Wall
Gate:
OpeningSound: gateup1.aud
ClosingSound: gatedwn1.aud
BlocksProjectilesHeight: 768
PauseOnCondition: empdisable
^Gate_A:
Inherits: ^Gate
Inherits@shape: ^3x1Shape
Health:
Gate:
Building:
Dimensions: 3,1
Footprint: xxx
WithGateSpriteBody:
@@ -1178,7 +1177,7 @@
Inherits: ^Gate
Inherits@shape: ^1x3Shape
Health:
Gate:
Building:
Dimensions: 1,3
Footprint: x x x
WithGateSpriteBody: