From 921c7b4fb1c8c39b4fc74af206f6f39ae4ec0b49 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 15 Apr 2013 05:47:18 +1200 Subject: [PATCH] Add invisible repair zones to bridges. --- mods/cnc-classic/rules/civilian.yaml | 35 +++++++++++++++ mods/cnc-classic/rules/defaults.yaml | 3 -- mods/cnc-classic/rules/infantry.yaml | 1 + mods/cnc/rules/civilian.yaml | 35 +++++++++++++++ mods/cnc/rules/defaults.yaml | 5 +-- mods/cnc/rules/infantry.yaml | 1 + mods/ra-classic/rules/civilian.yaml | 31 ++++++++++++- mods/ra-classic/rules/infantry.yaml | 1 + mods/ra/rules/civilian.yaml | 67 ++++++++++++++++++++++++++++ mods/ra/rules/infantry.yaml | 1 + 10 files changed, 172 insertions(+), 8 deletions(-) diff --git a/mods/cnc-classic/rules/civilian.yaml b/mods/cnc-classic/rules/civilian.yaml index 5eb8bb9d40..6f16f6ac76 100644 --- a/mods/cnc-classic/rules/civilian.yaml +++ b/mods/cnc-classic/rules/civilian.yaml @@ -145,6 +145,12 @@ BRIDGE1: Building: Footprint: ____ ____ ____ ____ Dimensions: 4,4 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 2,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 0,2 BRIDGE2: Inherits: ^Bridge @@ -154,6 +160,12 @@ BRIDGE2: Building: Footprint: _____ _____ _____ _____ _____ Dimensions: 5,5 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 0,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 2,2 BRIDGE3: Inherits: ^Bridge @@ -163,6 +175,12 @@ BRIDGE3: Building: Footprint: ______ ______ ______ ______ ______ Dimensions: 6,5 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 3,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 1,2 BRIDGE4: Inherits: ^Bridge @@ -172,6 +190,23 @@ BRIDGE4: Building: Footprint: ______ ______ ______ ______ Dimensions: 6,4 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 1,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 3,2 + +BRIDGEHUT: + Building: + Footprint: __ __ + Dimensions: 2,2 + Selectable: + Selectable: false + Bounds: 48,48 + BridgeHut: + TargetableBuilding: + TargetTypes: BridgeHut C1: Inherits: ^CivInfantry diff --git a/mods/cnc-classic/rules/defaults.yaml b/mods/cnc-classic/rules/defaults.yaml index 972a72f4ee..0418b2f474 100644 --- a/mods/cnc-classic/rules/defaults.yaml +++ b/mods/cnc-classic/rules/defaults.yaml @@ -399,6 +399,3 @@ SoundOnDamageTransition: DamagedSound: xplos.aud DestroyedSound: xplobig4.aud - Building: - Footprint: ______ ______ ______ ______ - Dimensions: 6,4 diff --git a/mods/cnc-classic/rules/infantry.yaml b/mods/cnc-classic/rules/infantry.yaml index 254ef72d58..fa99a1afae 100644 --- a/mods/cnc-classic/rules/infantry.yaml +++ b/mods/cnc-classic/rules/infantry.yaml @@ -182,6 +182,7 @@ E6: Passenger: PipType: Yellow EngineerRepair: + RepairsBridges: Captures: CaptureTypes: building, husk -AutoTarget: diff --git a/mods/cnc/rules/civilian.yaml b/mods/cnc/rules/civilian.yaml index a9e052898b..17aa688b0c 100644 --- a/mods/cnc/rules/civilian.yaml +++ b/mods/cnc/rules/civilian.yaml @@ -302,6 +302,12 @@ BRIDGE1: Building: Footprint: ____ ____ ____ ____ Dimensions: 4,4 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 2,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 0,2 BRIDGE2: Inherits: ^Bridge @@ -311,6 +317,12 @@ BRIDGE2: Building: Footprint: _____ _____ _____ _____ _____ Dimensions: 5,5 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 0,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 2,2 BRIDGE3: Inherits: ^Bridge @@ -320,6 +332,12 @@ BRIDGE3: Building: Footprint: ______ ______ ______ ______ ______ Dimensions: 6,5 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 3,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 1,2 BRIDGE4: Inherits: ^Bridge @@ -329,6 +347,23 @@ BRIDGE4: Building: Footprint: ______ ______ ______ ______ Dimensions: 6,4 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 1,0 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 3,2 + +BRIDGEHUT: + Building: + Footprint: __ __ + Dimensions: 2,2 + Selectable: + Selectable: false + Bounds: 48,48 + BridgeHut: + TargetableBuilding: + TargetTypes: BridgeHut C1: Inherits: ^CivInfantry diff --git a/mods/cnc/rules/defaults.yaml b/mods/cnc/rules/defaults.yaml index 04c024e67b..0e4b262346 100644 --- a/mods/cnc/rules/defaults.yaml +++ b/mods/cnc/rules/defaults.yaml @@ -417,10 +417,7 @@ TargetTypes: Ground, Water BelowUnits: Health: -# HP: 500 + HP: 500 SoundOnDamageTransition: DamagedSound: xplos.aud DestroyedSound: xplobig4.aud - Building: - Footprint: ______ ______ ______ ______ - Dimensions: 6,4 diff --git a/mods/cnc/rules/infantry.yaml b/mods/cnc/rules/infantry.yaml index fdda163d5f..d25fb54bd9 100644 --- a/mods/cnc/rules/infantry.yaml +++ b/mods/cnc/rules/infantry.yaml @@ -166,6 +166,7 @@ E6: Passenger: PipType: Yellow EngineerRepair: + RepairsBridges: Captures: CaptureTypes: building, husk -AutoTarget: diff --git a/mods/ra-classic/rules/civilian.yaml b/mods/ra-classic/rules/civilian.yaml index 5f6e996055..48caa6cc2e 100644 --- a/mods/ra-classic/rules/civilian.yaml +++ b/mods/ra-classic/rules/civilian.yaml @@ -232,6 +232,9 @@ BR1: DamagedTemplate: 236 DestroyedTemplate: 237 SouthOffset: 0,2 + FreeActor: + Actor: bridgehut + SpawnOffset: 2,0 BR2: Inherits: ^Bridge @@ -240,6 +243,9 @@ BR2: DamagedTemplate: 239 DestroyedTemplate: 240 NorthOffset: 3,0 + FreeActor: + Actor: bridgehut + SpawnOffset: 1,1 BR3: Inherits: ^Bridge @@ -264,6 +270,12 @@ BRIDGE1: Building: Footprint: _____ _____ _____ Dimensions: 5,3 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 2,-1 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 0,1 BRIDGE2: Inherits: ^Bridge @@ -273,4 +285,21 @@ BRIDGE2: DestroyedTemplate: 134 Building: Footprint: _____ _____ - Dimensions: 5,2 \ No newline at end of file + Dimensions: 5,2 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 0,-1 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 2,1 + +BRIDGEHUT: + Building: + Footprint: __ __ + Dimensions: 2,2 + Selectable: + Selectable: false + Bounds: 48,48 + BridgeHut: + TargetableBuilding: + TargetTypes: BridgeHut diff --git a/mods/ra-classic/rules/infantry.yaml b/mods/ra-classic/rules/infantry.yaml index d4c80ef26d..cfe1f3d2a6 100644 --- a/mods/ra-classic/rules/infantry.yaml +++ b/mods/ra-classic/rules/infantry.yaml @@ -162,6 +162,7 @@ E6: Passenger: PipType: Yellow EngineerRepair: + RepairsBridges: Captures: Sabotage: yes TakeCover: diff --git a/mods/ra/rules/civilian.yaml b/mods/ra/rules/civilian.yaml index 34f3d626a3..11499c8093 100644 --- a/mods/ra/rules/civilian.yaml +++ b/mods/ra/rules/civilian.yaml @@ -322,6 +322,9 @@ BR1: DamagedTemplate: 236 DestroyedTemplate: 237 SouthOffset: 0,2 + FreeActor: + Actor: bridgehut + SpawnOffset: 2,0 BR2: Inherits: ^Bridge @@ -330,6 +333,9 @@ BR2: DamagedTemplate: 239 DestroyedTemplate: 240 NorthOffset: 3,0 + FreeActor: + Actor: bridgehut + SpawnOffset: 1,1 BR3: Inherits: ^Bridge @@ -354,6 +360,12 @@ BRIDGE1: Building: Footprint: _____ _____ _____ Dimensions: 5,3 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 2,-1 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 0,1 BRIDGE2: Inherits: ^Bridge @@ -364,6 +376,12 @@ BRIDGE2: Building: Footprint: _____ _____ Dimensions: 5,2 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 0,-1 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 2,1 SBRIDGE1: Inherits: ^SVBridge @@ -374,6 +392,13 @@ SBRIDGE1: Building: Footprint: ___ ___ Dimensions: 3,2 + FreeActor@north: + Actor: bridgehut.small + SpawnOffset: 1,0 + FreeActor@south: + Actor: bridgehut.small + SpawnOffset: 1,1 + SBRIDGE2: Inherits: ^SHBridge Bridge: @@ -383,6 +408,13 @@ SBRIDGE2: Building: Footprint: __ __ __ Dimensions: 2,3 + FreeActor@west: + Actor: bridgehut.small + SpawnOffset: 0,1 + FreeActor@east: + Actor: bridgehut.small + SpawnOffset: 1,1 + SBRIDGE3: Inherits: ^STDBridge Bridge: @@ -392,6 +424,13 @@ SBRIDGE3: Building: Footprint: ____ ____ Dimensions: 4,2 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 2,-1 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 0,1 + SBRIDGE4: Inherits: ^STDBridge Bridge: @@ -401,6 +440,34 @@ SBRIDGE4: Building: Footprint: ____ ____ Dimensions: 4,2 + FreeActor@north: + Actor: bridgehut + SpawnOffset: 0,-1 + FreeActor@south: + Actor: bridgehut + SpawnOffset: 2,1 + +BRIDGEHUT: + Building: + Footprint: __ __ + Dimensions: 2,2 + Selectable: + Selectable: false + Bounds: 48,48 + BridgeHut: + TargetableBuilding: + TargetTypes: BridgeHut + +BRIDGEHUT.small: + Building: + Footprint: _ + Dimensions: 1,1 + Selectable: + Selectable: false + Bounds: 24,24 + BridgeHut: + TargetableBuilding: + TargetTypes: BridgeHut #Desert Terrain Expansion V20: diff --git a/mods/ra/rules/infantry.yaml b/mods/ra/rules/infantry.yaml index 0c0da76fb2..b61d8623bf 100644 --- a/mods/ra/rules/infantry.yaml +++ b/mods/ra/rules/infantry.yaml @@ -167,6 +167,7 @@ E6: Passenger: PipType: Yellow EngineerRepair: + RepairsBridges: Captures: TakeCover: -AutoTarget: