diff --git a/OpenRA.Mods.Common/Traits/Render/WithDecoration.cs b/OpenRA.Mods.Common/Traits/Render/WithDecoration.cs index b35ec76a46..e6531c008f 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithDecoration.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithDecoration.cs @@ -143,7 +143,10 @@ namespace OpenRA.Mods.Common.Traits } pxPos += info.Offset; + + // HACK: Because WorldRenderer.Position() does not care about terrain height at the location var renderPos = wr.Position(pxPos); + renderPos = new WPos(renderPos.X, renderPos.Y + self.CenterPosition.Z, self.CenterPosition.Z); anim.Tick(); diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml index 62de03774b..5428739cdc 100644 --- a/mods/ts/rules/defaults.yaml +++ b/mods/ts/rules/defaults.yaml @@ -357,6 +357,16 @@ TimedUpgradeBar@EMPDISABLE: Upgrade: empdisable Color: 255,255,255 + WithDecoration@EMPDISABLE: + Image: emp + Sequence: idle + ReferencePoint: HCenter, VCenter + Palette: effect + UpgradeTypes: empdisable + ShowToEnemies: true + ZOffset: 512 + UpgradeMinEnabledLevel: 1 + UpgradeMaxAcceptedLevel: 2 Cloak@CLOAKGENERATOR: UpgradeTypes: cloakgenerator UpgradeMinEnabledLevel: 1 diff --git a/mods/ts/sequences/misc.yaml b/mods/ts/sequences/misc.yaml index cbc7a2f8c1..154544c066 100644 --- a/mods/ts/sequences/misc.yaml +++ b/mods/ts/sequences/misc.yaml @@ -167,6 +167,7 @@ canister: pulsball: idle: Length: * + BlendMode: Additive dragon: idle: @@ -233,6 +234,11 @@ wake: Length: * Tick: 180 +emp: + idle: emp_fx01 + Length: * + BlendMode: Additive + resources: Defaults: UseTilesetExtension: true