diff --git a/mods/ra/rules/defaults.yaml b/mods/ra/rules/defaults.yaml index ac88f7f23b..3fa6559fa0 100644 --- a/mods/ra/rules/defaults.yaml +++ b/mods/ra/rules/defaults.yaml @@ -511,6 +511,32 @@ TopLeft: -512, -512 BottomRight: 512, 512 +^Gate: + Inherits: ^BasicBuilding + Valued: + Cost: 250 + Health: + HP: 350 + Armor: + Type: Heavy + LineBuildNode: + Types: concrete, gate + -Building: + -WithSpriteBody: + WithGateSpriteBody: + Power: + CanPowerDown: + Tooltip: + Name: Gate + Description: Automated barrier that opens for allied units. + Gate: + Adjacent: 4 + BlocksProjectilesHeight: 0 + BuildSounds: place2.aud + OpeningSound: cashturn.aud + ClosingSound: cashturn.aud + TerrainTypes: Clear, Road + ^TechBuilding: Inherits: ^BasicBuilding Health: diff --git a/mods/ra/rules/structures.yaml b/mods/ra/rules/structures.yaml index 848259086c..26d6353a84 100644 --- a/mods/ra/rules/structures.yaml +++ b/mods/ra/rules/structures.yaml @@ -1666,6 +1666,40 @@ BRIK: WithWallSpriteBody: Type: concrete +VGATE: + Inherits: ^Gate + Gate: + Footprint: x x x + Dimensions: 1,3 + WithGateSpriteBody: + WallConnections: 0,-1, 0,3 + LineBuildNode: + Connections: 0,-1, 0,1 + Tooltip: + Name: Vertical Gate + +HGATE: + Inherits: ^Gate + Gate: + Footprint: xxx + Dimensions: 3,1 + WithGateSpriteBody: + WallConnections: -1,0, 3,0 + LineBuildNode: + Connections: -1,0, 1,0 + Tooltip: + Name: Horizontal Gate + RenderSprites: + Image: agate + FactionImages: + allies: agate + england: agate + france: agate + germany: agate + soviet: sgate + russia: sgate + ukraine: sgate + CYCL: Inherits: ^Wall Tooltip: diff --git a/mods/ra/sequences/structures.yaml b/mods/ra/sequences/structures.yaml index ba7350ac43..1128fb83aa 100644 --- a/mods/ra/sequences/structures.yaml +++ b/mods/ra/sequences/structures.yaml @@ -598,6 +598,33 @@ brik: Length: 16 icon: brikicon +vgate: + make: + Length: 7 + idle: + Frames: 6, 5, 4, 3, 2, 1, 0 + Length: 7 + ZOffset: -1c511 + damaged-idle: + Frames: 13, 12, 11, 10, 9, 8, 7 + Length: 7 + ZOffset: -1c511 + +agate: + make: + Length: 7 + idle: + Frames: 6, 5, 4, 3, 2, 1, 0 + Length: 7 + ZOffset: -1c511 + damaged-idle: + Frames: 13, 12, 11, 10, 9, 8, 7 + Length: 7 + ZOffset: -1c511 + +sgate: + Inherits: agate + sbag: idle: Length: 16