Support indefinite beacon duration for support powers that remove the beacon on completion.

This commit is contained in:
Paul Chote
2014-04-06 20:03:37 +12:00
parent b74a0734c8
commit 3ad35cb803
4 changed files with 5 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ namespace OpenRA.Mods.RA.Effects
poster.Play(posterType);
}
owner.World.Add(new DelayedAction(duration, () => owner.World.Remove(this)));
if (duration > 0)
owner.World.Add(new DelayedAction(duration, () => owner.World.Remove(this)));
}
public void Tick(World world)

View File

@@ -386,6 +386,7 @@ HQ:
IncomingSound: enemya.aud
UnitType: a10
DisplayBeacon: True
BeaconDuration: -1
BeaconPoster: airstrike
DisplayRadarPing: True
CameraActor: camera

View File

@@ -60,6 +60,7 @@ PALACEA:
UnitType: orni.bomber
SelectTargetSound:
DisplayBeacon: True
BeaconDuration: -1
CameraActor: camera
CanPowerDown:
DisabledOverlay:

View File

@@ -89,6 +89,7 @@ PALACEO:
UnitType: orni.bomber
SelectTargetSound:
DisplayBeacon: True
BeaconDuration: -1
CameraActor: camera
CanPowerDown:
DisabledOverlay: