Add BeaconDelay to SupportPower

This commit is contained in:
reaperrr
2016-11-05 23:05:30 +01:00
parent 871576b300
commit aa53553cdf
3 changed files with 7 additions and 2 deletions

View File

@@ -176,7 +176,8 @@ namespace OpenRA.Mods.Common.Traits
Info.ArrowSequence,
Info.CircleSequence,
Info.ClockSequence,
() => 1 - ((distanceTestActor.CenterPosition - target).HorizontalLength - info.BeaconDistanceOffset.Length) * 1f / distance);
() => 1 - ((distanceTestActor.CenterPosition - target).HorizontalLength - info.BeaconDistanceOffset.Length) * 1f / distance,
Info.BeaconDelay);
w.Add(beacon);
}

View File

@@ -64,6 +64,9 @@ namespace OpenRA.Mods.Common.Traits
[SequenceReference("BeaconImage")] public readonly string ArrowSequence = "arrow";
[SequenceReference("BeaconImage")] public readonly string CircleSequence = "circles";
[Desc("Delay after launch, measured in ticks.")]
public readonly int BeaconDelay = 0;
public readonly bool DisplayRadarPing = false;
[Desc("Measured in ticks.")]