Persist the nuke beacon until detonation.
This commit is contained in:
@@ -32,6 +32,9 @@ namespace OpenRA.Mods.RA
|
||||
[Desc("Descend immediately on the target, with half the FlightDelay")]
|
||||
public readonly bool SkipAscent = false;
|
||||
|
||||
[Desc("Amount of time before detonation to remove the beacon")]
|
||||
public readonly int BeaconRemoveAdvance = 25;
|
||||
|
||||
[ActorReference]
|
||||
[Desc("Actor to spawn before detonation")]
|
||||
public readonly string CameraActor = null;
|
||||
@@ -93,6 +96,17 @@ namespace OpenRA.Mods.RA
|
||||
Action addCamera = () => self.World.AddFrameEndTask(w => w.Add(camera));
|
||||
self.World.AddFrameEndTask(w => w.Add(new DelayedAction(npi.FlightDelay - npi.CameraSpawnAdvance, addCamera)));
|
||||
}
|
||||
|
||||
if (beacon != null)
|
||||
{
|
||||
Action removeBeacon = () => self.World.AddFrameEndTask(w =>
|
||||
{
|
||||
w.Remove(beacon);
|
||||
beacon = null;
|
||||
});
|
||||
|
||||
self.World.AddFrameEndTask(w => w.Add(new DelayedAction(npi.FlightDelay - npi.BeaconRemoveAdvance, removeBeacon)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -498,6 +498,7 @@ TMPL:
|
||||
IncomingSound: nuke1.aud
|
||||
MissileWeapon: atomic
|
||||
DisplayBeacon: True
|
||||
BeaconDuration: -1
|
||||
BeaconPoster: atomic
|
||||
DisplayRadarPing: True
|
||||
CameraActor: camera
|
||||
|
||||
@@ -98,6 +98,7 @@ PALACEH:
|
||||
SpawnOffset: -512,1c171,0
|
||||
DisplayBeacon: True
|
||||
DisplayRadarPing: True
|
||||
BeaconDuration: -1
|
||||
CameraActor: camera
|
||||
CanPowerDown:
|
||||
DisabledOverlay:
|
||||
|
||||
@@ -38,6 +38,7 @@ MSLO:
|
||||
SpawnOffset: 0,427,0
|
||||
DisplayTimer: True
|
||||
DisplayBeacon: True
|
||||
BeaconDuration: -1
|
||||
DisplayRadarPing: True
|
||||
BeaconPoster: atomicon
|
||||
CameraActor: camera
|
||||
|
||||
Reference in New Issue
Block a user