diff --git a/OpenRA.Mods.RA/Effects/Bullet.cs b/OpenRA.Mods.RA/Effects/Bullet.cs index 81ce03572c..a0c00f5a80 100755 --- a/OpenRA.Mods.RA/Effects/Bullet.cs +++ b/OpenRA.Mods.RA/Effects/Bullet.cs @@ -32,6 +32,7 @@ namespace OpenRA.Mods.RA.Effects public readonly float Angle = 0; public readonly int TrailInterval = 2; public readonly int ContrailLength = 0; + public readonly Color ContrailColor = Color.White; public readonly bool ContrailUsePlayerColor = false; public readonly int ContrailDelay = 1; @@ -69,7 +70,7 @@ namespace OpenRA.Mods.RA.Effects if (Info.ContrailLength > 0) { Trail = new ContrailHistory(Info.ContrailLength, - Info.ContrailUsePlayerColor ? ContrailHistory.ChooseColor(args.firedBy) : Color.White, + Info.ContrailUsePlayerColor ? ContrailHistory.ChooseColor(args.firedBy) : Info.ContrailColor, Info.ContrailDelay); } } diff --git a/OpenRA.Mods.RA/Effects/Contrail.cs b/OpenRA.Mods.RA/Effects/Contrail.cs index 5e420ab7b5..93f0e01db6 100755 --- a/OpenRA.Mods.RA/Effects/Contrail.cs +++ b/OpenRA.Mods.RA/Effects/Contrail.cs @@ -21,6 +21,7 @@ namespace OpenRA.Mods.RA public readonly int[] ContrailOffset = {0, 0}; public readonly int TrailLength = 20; + public readonly Color Color = Color.White; public readonly bool UsePlayerColor = true; public object Create(ActorInitializer init) { return new Contrail(init.self, this); } @@ -38,7 +39,7 @@ namespace OpenRA.Mods.RA { Info = info; ContrailTurret = new Turret(Info.ContrailOffset); - history = new ContrailHistory(Info.TrailLength, Info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : Color.White); + history = new ContrailHistory(Info.TrailLength, Info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : Info.Color); } public void Tick(Actor self) diff --git a/OpenRA.Mods.RA/Effects/Missile.cs b/OpenRA.Mods.RA/Effects/Missile.cs index 656c37bb1b..1e14ab5af4 100755 --- a/OpenRA.Mods.RA/Effects/Missile.cs +++ b/OpenRA.Mods.RA/Effects/Missile.cs @@ -34,6 +34,7 @@ namespace OpenRA.Mods.RA.Effects public readonly bool TurboBoost = false; public readonly int TrailInterval = 2; public readonly int ContrailLength = 0; + public readonly Color ContrailColor = Color.White; public readonly bool ContrailUsePlayerColor = false; public readonly int ContrailDelay = 1; @@ -76,7 +77,7 @@ namespace OpenRA.Mods.RA.Effects if (Info.ContrailLength > 0) { Trail = new ContrailHistory(Info.ContrailLength, - Info.ContrailUsePlayerColor ? ContrailHistory.ChooseColor(args.firedBy) : Color.White, + Info.ContrailUsePlayerColor ? ContrailHistory.ChooseColor(args.firedBy) : Info.ContrailColor, Info.ContrailDelay); } }