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.")]
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.")]
[SequenceReference("MissileWeapon")] public readonly string MissileUp = "up";
@@ -110,7 +113,7 @@ namespace OpenRA.Mods.Common.Traits
info.FlightVelocity, info.FlightDelay, info.SkipAscent,
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)
{

View File

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

View File

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