Support indefinite beacon duration for support powers that remove the beacon on completion.
This commit is contained in:
@@ -44,7 +44,8 @@ namespace OpenRA.Mods.RA.Effects
|
|||||||
poster.Play(posterType);
|
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)
|
public void Tick(World world)
|
||||||
|
|||||||
@@ -386,6 +386,7 @@ HQ:
|
|||||||
IncomingSound: enemya.aud
|
IncomingSound: enemya.aud
|
||||||
UnitType: a10
|
UnitType: a10
|
||||||
DisplayBeacon: True
|
DisplayBeacon: True
|
||||||
|
BeaconDuration: -1
|
||||||
BeaconPoster: airstrike
|
BeaconPoster: airstrike
|
||||||
DisplayRadarPing: True
|
DisplayRadarPing: True
|
||||||
CameraActor: camera
|
CameraActor: camera
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ PALACEA:
|
|||||||
UnitType: orni.bomber
|
UnitType: orni.bomber
|
||||||
SelectTargetSound:
|
SelectTargetSound:
|
||||||
DisplayBeacon: True
|
DisplayBeacon: True
|
||||||
|
BeaconDuration: -1
|
||||||
CameraActor: camera
|
CameraActor: camera
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ PALACEO:
|
|||||||
UnitType: orni.bomber
|
UnitType: orni.bomber
|
||||||
SelectTargetSound:
|
SelectTargetSound:
|
||||||
DisplayBeacon: True
|
DisplayBeacon: True
|
||||||
|
BeaconDuration: -1
|
||||||
CameraActor: camera
|
CameraActor: camera
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
|
|||||||
Reference in New Issue
Block a user