Add BeaconDelay to SupportPower
This commit is contained in:
@@ -176,7 +176,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
Info.ArrowSequence,
|
Info.ArrowSequence,
|
||||||
Info.CircleSequence,
|
Info.CircleSequence,
|
||||||
Info.ClockSequence,
|
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);
|
w.Add(beacon);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[SequenceReference("BeaconImage")] public readonly string ArrowSequence = "arrow";
|
[SequenceReference("BeaconImage")] public readonly string ArrowSequence = "arrow";
|
||||||
[SequenceReference("BeaconImage")] public readonly string CircleSequence = "circles";
|
[SequenceReference("BeaconImage")] public readonly string CircleSequence = "circles";
|
||||||
|
|
||||||
|
[Desc("Delay after launch, measured in ticks.")]
|
||||||
|
public readonly int BeaconDelay = 0;
|
||||||
|
|
||||||
public readonly bool DisplayRadarPing = false;
|
public readonly bool DisplayRadarPing = false;
|
||||||
|
|
||||||
[Desc("Measured in ticks.")]
|
[Desc("Measured in ticks.")]
|
||||||
|
|||||||
@@ -212,7 +212,8 @@ namespace OpenRA.Mods.RA.Traits
|
|||||||
Info.ArrowSequence,
|
Info.ArrowSequence,
|
||||||
Info.CircleSequence,
|
Info.CircleSequence,
|
||||||
Info.ClockSequence,
|
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);
|
w.Add(beacon);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user