diff --git a/mods/ts/rules/civilian-structures.yaml b/mods/ts/rules/civilian-structures.yaml index 94d57f7c86..681c8553e2 100644 --- a/mods/ts/rules/civilian-structures.yaml +++ b/mods/ts/rules/civilian-structures.yaml @@ -1470,6 +1470,7 @@ GALITE: Tooltip: Name: Light Post RenderSprites: + Image: galite Palette: terraindecoration -WithMakeAnimation: -WithDeathAnimation: @@ -1484,10 +1485,12 @@ GALITE: MaxHeightDelta: 3 Power: Amount: 0 - # TODO: should use terrain lighting instead, depends on https://github.com/OpenRA/OpenRA/issues/3605 - WithIdleOverlay@LIGHTING: - Sequence: lighting - Palette: alpha + TerrainLightSource: + Range: 19c544 + Intensity: 0.2 + RedTint: 0.05 + GreenTint: 0.05 + BlueTint: 0.01 -Cloak@EXTERNALCLOAK: -ExternalCondition@CLOAKGENERATOR: -ExternalCondition@CRATE-CLOAK: @@ -1496,11 +1499,179 @@ GALITE: Capturable: -RequiresCondition: +INGALITE: + Interactable: + EditorOnlyTooltip: + Name: (Invisible Light Post) + AlwaysVisible: + Immobile: + OccupiesSpace: false + RenderSpritesEditorOnly: + Image: galite + Palette: terrainalpha + WithSpriteBody: + BodyOrientation: + QuantizedFacings: 1 + MapEditorData: + Categories: System + RequiresSpecificOwners: + ValidOwnerNames: Neutral + TerrainLightSource: + Range: 19c544 + Intensity: 0.2 + RedTint: 0.05 + GreenTint: 0.05 + BlueTint: 0.01 + +NEGLAMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Negative Light Post) + TerrainLightSource: + Range: 13c688 + Intensity: -0.15 + RedTint: 0.03 + GreenTint: 0.04 + BlueTint: 0.04 + +REDLAMP: + Inherits: GALITE + Tooltip: + Name: Red Light Post + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 1.5 + GreenTint: 0.01 + BlueTint: 0.01 + +NEGRED: + Inherits: GALITE + Tooltip: + Name: Negative Red Light Post + TerrainLightSource: + Range: 15c640 + Intensity: -0.05 + RedTint: -1.5 + GreenTint: 0.01 + BlueTint: 0.01 + +GRENLAMP: + Inherits: GALITE + Tooltip: + Name: Green Light Post + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 0.01 + GreenTint: 1.5 + BlueTint: 0.01 + +BLUELAMP: + Inherits: GALITE + Tooltip: + Name: Blue Light Post + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 0.01 + GreenTint: 0.01 + BlueTint: 0.7 + +YELWLAMP: + Inherits: GALITE + Tooltip: + Name: Yellow Light Post + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 1.5 + GreenTint: 1.5 + BlueTint: 0.01 + +INYELWLAMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Yellow Light Post) + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 1.5 + GreenTint: 1.5 + BlueTint: 0.01 + +PURPLAMP: + Inherits: GALITE + Tooltip: + Name: Purple Light Post + TerrainLightSource: + Range: 11c736 + Intensity: 0.01 + RedTint: 2.0 + GreenTint: 0.01 + BlueTint: 2.0 + +INPURPLAMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Purple Light Post) + TerrainLightSource: + Range: 11c736 + Intensity: 0.01 + RedTint: 2.0 + GreenTint: 0.01 + BlueTint: 2.0 + +INORANLAMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Orange Light Post) + TerrainLightSource: + Range: 11c736 + Intensity: 0.01 + RedTint: 2.0 + GreenTint: 1.4 + BlueTint: 0.3 + +INGRNLMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Green Light Post) + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 0.01 + GreenTint: 1.5 + BlueTint: 0.01 + +INREDLMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Red Light Post) + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 1.5 + GreenTint: 0.01 + BlueTint: 0.01 + +INBLULMP: + Inherits: INGALITE + EditorOnlyTooltip: + Name: (Invisible Blue Light Post) + TerrainLightSource: + Range: 15c640 + Intensity: 0.01 + RedTint: 0.01 + GreenTint: 0.01 + BlueTint: 0.7 + TSTLAMP: Inherits: GALITE - RenderSprites: - Image: galite - Tooltip: + -TerrainLightSource: + WithIdleOverlay@LIGHTING: + Sequence: lighting + Palette: alpha GAICBM: Inherits: ^Building diff --git a/mods/ts/rules/world.yaml b/mods/ts/rules/world.yaml index d868ee76c4..f0b04a580d 100644 --- a/mods/ts/rules/world.yaml +++ b/mods/ts/rules/world.yaml @@ -8,6 +8,7 @@ VictoryMusic: score DefeatMusic: maps TerrainRenderer: + TerrainLighting: ShroudRenderer: Index: 255, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 20, 40, 56, 65, 97, 130, 148, 194, 24, 33, 66, 132, 28, 41, 67, 134, 1, 2, 4, 8, 3, 6, 12, 9, 7, 14, 13, 11, 5, 10, 15, 255 UseExtendedIndex: true diff --git a/mods/ts/sequences/civilian.yaml b/mods/ts/sequences/civilian.yaml index edb5fcc929..daa6952210 100644 --- a/mods/ts/sequences/civilian.yaml +++ b/mods/ts/sequences/civilian.yaml @@ -653,9 +653,11 @@ galite: lighting: alphatst BlendMode: DoubleMultiplicative UseTilesetCode: false + IgnoreWorldTint: true -DepthSprite: - Offset: 0, 0, 0.5 + Offset: 0, 0, 240 ZRamp: 1 + ZOffset: 10240 emp-overlay: emp_fx01 Length: * Offset: 0, 0 diff --git a/mods/ts/sequences/misc.yaml b/mods/ts/sequences/misc.yaml index c44189db75..dda2926654 100644 --- a/mods/ts/sequences/misc.yaml +++ b/mods/ts/sequences/misc.yaml @@ -344,6 +344,7 @@ resources: ShadowStart: 12 Offset: 0, -12, 1.5 ZRamp: 1 + IgnoreWorldTint: true tib01: tib01 tib02: tib02 tib03: tib03 @@ -370,6 +371,7 @@ resources: ShadowStart: -1 Tick: 180 Offset: 0, -12, 2.5 + IgnoreWorldTint: false veins: idle: veinatac