From e4491a79570f528c5aae3a073c3a2d47289c9ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 28 Aug 2016 12:22:45 +0200 Subject: [PATCH 1/3] Remove hard-coded LaserZap transparency. --- OpenRA.Mods.Common/Projectiles/LaserZap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Projectiles/LaserZap.cs b/OpenRA.Mods.Common/Projectiles/LaserZap.cs index 2819396213..b9ccd3ca79 100644 --- a/OpenRA.Mods.Common/Projectiles/LaserZap.cs +++ b/OpenRA.Mods.Common/Projectiles/LaserZap.cs @@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.Projectiles if (ticks < info.BeamDuration) { - var rc = Color.FromArgb((info.BeamDuration - ticks) * 255 / info.BeamDuration, color); + var rc = Color.FromArgb((info.BeamDuration - ticks) * color.A / info.BeamDuration, color); yield return new BeamRenderable(args.Source, info.ZOffset, target - args.Source, info.Shape, info.Width, rc); } From fc7e1494014944c90d88ca68d243fa5135d31b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 28 Aug 2016 12:23:40 +0200 Subject: [PATCH 2/3] The color definition changed to hex notation. --- OpenRA.Mods.Common/Projectiles/LaserZap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Projectiles/LaserZap.cs b/OpenRA.Mods.Common/Projectiles/LaserZap.cs index b9ccd3ca79..fbef53af42 100644 --- a/OpenRA.Mods.Common/Projectiles/LaserZap.cs +++ b/OpenRA.Mods.Common/Projectiles/LaserZap.cs @@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Projectiles public readonly bool UsePlayerColor = false; - [Desc("Laser color in (A,)R,G,B.")] + [Desc("Laser color.")] public readonly Color Color = Color.Red; [Desc("Impact animation.")] From e9eefcbc1b3a3ac881e7c61f64ee31eaff2e8ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 28 Aug 2016 12:38:34 +0200 Subject: [PATCH 3/3] Add transparency to the Nod laser turret beam. --- mods/ts/weapons/energyweapons.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ts/weapons/energyweapons.yaml b/mods/ts/weapons/energyweapons.yaml index 60bd6cd74f..8f0b71be88 100644 --- a/mods/ts/weapons/energyweapons.yaml +++ b/mods/ts/weapons/energyweapons.yaml @@ -195,6 +195,7 @@ TurretLaserFire: Width: 50 BeamDuration: 5 ZOffset: 2047 + Color: FF000045 Warhead@1Dam: SpreadDamage Spread: 42 Damage: 30