Tweak the time until hatch opening and rocket away.

This commit is contained in:
Matthias Mailänder
2017-08-20 18:10:00 +02:00
committed by Matthias Mailänder
parent 4526344eed
commit 855f1816f4
3 changed files with 6 additions and 1 deletions

View File

@@ -27,6 +27,9 @@ namespace OpenRA.Mods.Common.Traits
"Also image to use for the missile.")] "Also image to use for the missile.")]
public readonly string MissileWeapon = ""; public readonly string MissileWeapon = "";
[Desc("Delay (in ticks) after launch until the missile is spawned.")]
public readonly int MissileDelay = 0;
[Desc("Sprite sequence for the ascending missile.")] [Desc("Sprite sequence for the ascending missile.")]
[SequenceReference("MissileWeapon")] public readonly string MissileUp = "up"; [SequenceReference("MissileWeapon")] public readonly string MissileUp = "up";
@@ -110,7 +113,7 @@ namespace OpenRA.Mods.Common.Traits
info.FlightVelocity, info.FlightDelay, info.SkipAscent, info.FlightVelocity, info.FlightDelay, info.SkipAscent,
info.FlashType); info.FlashType);
self.World.AddFrameEndTask(w => w.Add(missile)); self.World.AddFrameEndTask(w => w.Add(new DelayedAction(info.MissileDelay, () => self.World.Add(missile))));
if (info.CameraRange != WDist.Zero) if (info.CameraRange != WDist.Zero)
{ {

View File

@@ -1068,6 +1068,7 @@ palace:
EndChargeSpeechNotification: DeathHandMissileReady EndChargeSpeechNotification: DeathHandMissileReady
MissileLaunchDetected: MissileLaunchDetected MissileLaunchDetected: MissileLaunchDetected
MissileWeapon: atomic MissileWeapon: atomic
MissileDelay: 19
SpawnOffset: -512,1c171,0 SpawnOffset: -512,1c171,0
DisplayBeacon: True DisplayBeacon: True
DisplayRadarPing: True DisplayRadarPing: True

View File

@@ -42,6 +42,7 @@ MSLO:
InsufficientPowerSpeechNotification: InsufficientPower InsufficientPowerSpeechNotification: InsufficientPower
IncomingSpeechNotification: AbombLaunchDetected IncomingSpeechNotification: AbombLaunchDetected
MissileWeapon: atomic MissileWeapon: atomic
MissileDelay: 3
SpawnOffset: 0,427,0 SpawnOffset: 0,427,0
DisplayTimerStances: Ally, Neutral, Enemy DisplayTimerStances: Ally, Neutral, Enemy
DisplayBeacon: True DisplayBeacon: True