From d8f45714a775c672d7b9652cb55dc4fae1a07766 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Wed, 24 Aug 2022 16:22:34 +0300 Subject: [PATCH] Add contrail property descriptions to Bullet and Missile --- OpenRA.Mods.Common/Projectiles/Bullet.cs | 9 ++++++++- OpenRA.Mods.Common/Projectiles/Missile.cs | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Projectiles/Bullet.cs b/OpenRA.Mods.Common/Projectiles/Bullet.cs index 2abb050521..8b1b3e7689 100644 --- a/OpenRA.Mods.Common/Projectiles/Bullet.cs +++ b/OpenRA.Mods.Common/Projectiles/Bullet.cs @@ -101,11 +101,18 @@ namespace OpenRA.Mods.Common.Projectiles [Desc("Altitude above terrain below which to explode. Zero effectively deactivates airburst.")] public readonly WDist AirburstAltitude = WDist.Zero; + [Desc("When set, display a line behind the actor. Length is measured in ticks after appearing.")] public readonly int ContrailLength = 0; - public readonly int ContrailZOffset = 2047; public readonly Color ContrailColor = Color.White; public readonly bool ContrailUsePlayerColor = false; + + [Desc("Time (in ticks) after which the line should appear. Controls the distance to the actor.")] public readonly int ContrailDelay = 1; + + [Desc("Equivalent to sequence ZOffset. Controls Z sorting.")] + public readonly int ContrailZOffset = 2047; + + [Desc("Thickness of the emitted line.")] public readonly WDist ContrailWidth = new WDist(64); public IProjectile Create(ProjectileArgs args) { return new Bullet(this, args); } diff --git a/OpenRA.Mods.Common/Projectiles/Missile.cs b/OpenRA.Mods.Common/Projectiles/Missile.cs index a2821a0ba2..4472744138 100644 --- a/OpenRA.Mods.Common/Projectiles/Missile.cs +++ b/OpenRA.Mods.Common/Projectiles/Missile.cs @@ -130,17 +130,22 @@ namespace OpenRA.Mods.Common.Projectiles [Desc("Should trail animation be spawned when the propulsion is not activated.")] public readonly bool TrailWhenDeactivated = false; + [Desc("When set, display a line behind the actor. Length is measured in ticks after appearing.")] public readonly int ContrailLength = 0; + [Desc("Time (in ticks) after which the line should appear. Controls the distance to the actor.")] + public readonly int ContrailDelay = 1; + + [Desc("Equivalent to sequence ZOffset. Controls Z sorting.")] public readonly int ContrailZOffset = 2047; + [Desc("Thickness of the emitted line.")] public readonly WDist ContrailWidth = new WDist(64); public readonly Color ContrailColor = Color.White; public readonly bool ContrailUsePlayerColor = false; - public readonly int ContrailDelay = 1; [Desc("Should missile targeting be thrown off by nearby actors with JamsMissiles.")] public readonly bool Jammable = true;