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