Add BeaconDelay to SupportPower
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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.")]
|
||||
|
||||
Reference in New Issue
Block a user