From bb5f25e0dcb6b6922c4421e9b219ae39cd1f612b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 8 Jan 2017 21:48:50 +0000 Subject: [PATCH] Disable actor sight while inside tunnels. --- mods/ts/rules/civilian-vehicles.yaml | 7 +++++++ mods/ts/rules/defaults.yaml | 5 +++++ mods/ts/rules/gdi-vehicles.yaml | 6 ++++++ mods/ts/rules/nod-vehicles.yaml | 9 +++++++++ mods/ts/rules/shared-vehicles.yaml | 3 +++ 5 files changed, 30 insertions(+) diff --git a/mods/ts/rules/civilian-vehicles.yaml b/mods/ts/rules/civilian-vehicles.yaml index d2e66cec8b..caedcef616 100644 --- a/mods/ts/rules/civilian-vehicles.yaml +++ b/mods/ts/rules/civilian-vehicles.yaml @@ -17,6 +17,7 @@ RevealsShroud: Range: 6c0 MaxHeightDelta: 3 + RequiresCondition: !inside-tunnel Turreted: TurnSpeed: 3 Armament@PRIMARY: @@ -50,6 +51,7 @@ Mobile: Speed: 56 RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 @@ -73,6 +75,7 @@ ICBM: Speed: 85 TurnSpeed: 5 RevealsShroud: + RequiresCondition: !inside-tunnel Range: 7c0 MaxHeightDelta: 3 Transforms: @@ -98,6 +101,7 @@ BUS: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Cargo: @@ -123,6 +127,7 @@ PICK: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Cargo: @@ -148,6 +153,7 @@ CAR: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Cargo: @@ -173,6 +179,7 @@ WINI: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Cargo: diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml index de69cb9412..4fa94512f7 100644 --- a/mods/ts/rules/defaults.yaml +++ b/mods/ts/rules/defaults.yaml @@ -279,6 +279,7 @@ Valued: Cost: 10 RevealsShroud: + RequiresCondition: !inside-tunnel Range: 2c0 MaxHeightDelta: 3 Mobile: @@ -298,6 +299,7 @@ BlueTiberium: 90 PathingCost: 90 Veins: 50 + TunnelCondition: inside-tunnel WithTextControlGroupDecoration: SelectionDecorations: Palette: pips @@ -472,6 +474,7 @@ TurnSpeed: 5 Voice: Move RequiresCondition: !empdisable + TunnelCondition: inside-tunnel Selectable: Bounds: 40,24 WithTextControlGroupDecoration: @@ -773,6 +776,7 @@ Voice: Move Speed: 113 RequiresCondition: !empdisable + TunnelCondition: inside-tunnel Cargo: Types: Infantry UnloadVoice: Unload @@ -783,6 +787,7 @@ RevealsShroud: Range: 5c0 MaxHeightDelta: 3 + RequiresCondition: !inside-tunnel Selectable: Bounds: 40,24 WithTextControlGroupDecoration: diff --git a/mods/ts/rules/gdi-vehicles.yaml b/mods/ts/rules/gdi-vehicles.yaml index 7f18ad89b1..f0faa099dc 100644 --- a/mods/ts/rules/gdi-vehicles.yaml +++ b/mods/ts/rules/gdi-vehicles.yaml @@ -21,6 +21,7 @@ APC: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Turreted: @@ -79,6 +80,7 @@ HVR: Armor: Type: Wood RevealsShroud: + RequiresCondition: !inside-tunnel Range: 7c0 MaxHeightDelta: 3 Armament: @@ -123,6 +125,7 @@ SMECH: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 6c0 MaxHeightDelta: 3 AttackFrontal: @@ -166,6 +169,7 @@ MMCH: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 8c0 MaxHeightDelta: 3 BodyOrientation: @@ -218,6 +222,7 @@ HMEC: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 8c0 MaxHeightDelta: 3 AttackFrontal: @@ -261,6 +266,7 @@ SONIC: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 7c0 MaxHeightDelta: 3 Armament: diff --git a/mods/ts/rules/nod-vehicles.yaml b/mods/ts/rules/nod-vehicles.yaml index 8dbe602b35..04b8f6c39e 100644 --- a/mods/ts/rules/nod-vehicles.yaml +++ b/mods/ts/rules/nod-vehicles.yaml @@ -19,6 +19,7 @@ BGGY: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 6c0 MaxHeightDelta: 3 Armament: @@ -54,6 +55,7 @@ BIKE: Armor: Type: Wood RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Armament@PRIMARY: @@ -107,6 +109,7 @@ TTNK: MuzzleSequence: muzzle WithMuzzleOverlay: RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 RenderSprites: @@ -188,6 +191,7 @@ ART2: Speed: 71 TurnSpeed: 2 RevealsShroud: + RequiresCondition: !inside-tunnel Range: 9c0 MaxHeightDelta: 3 RenderVoxels: @@ -217,6 +221,7 @@ REPAIR: Speed: 85 TurnSpeed: 5 RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Armament: @@ -262,6 +267,7 @@ WEED: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 4c0 MaxHeightDelta: 3 -WithVoxelBody: @@ -290,6 +296,7 @@ SAPC: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Cargo: @@ -322,6 +329,7 @@ SUBTANK: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Armament: @@ -352,6 +360,7 @@ STNK: Armor: Type: Light RevealsShroud: + RequiresCondition: !inside-tunnel Range: 5c0 MaxHeightDelta: 3 Cloak: diff --git a/mods/ts/rules/shared-vehicles.yaml b/mods/ts/rules/shared-vehicles.yaml index 5b1f1d7026..281dd80f39 100644 --- a/mods/ts/rules/shared-vehicles.yaml +++ b/mods/ts/rules/shared-vehicles.yaml @@ -19,6 +19,7 @@ MCV: Mobile: Speed: 85 RevealsShroud: + RequiresCondition: !inside-tunnel Range: 4c0 MaxHeightDelta: 3 MustBeDestroyed: @@ -84,6 +85,7 @@ HARV: Armor: Type: Heavy RevealsShroud: + RequiresCondition: !inside-tunnel Range: 4c0 MaxHeightDelta: 3 -WithVoxelBody: @@ -129,6 +131,7 @@ LPST: TurnSpeed: 5 RequiresCondition: !empdisable && undeployed RevealsShroud: + RequiresCondition: !inside-tunnel Range: 7c0 MaxHeightDelta: 3 GrantCondition@PREVIEWWORKAROUND: