added support for nuke launch sound to confirm strike
separated into IncomingSound = "nuke approaching/detected" and changed LaunchSound into "nuke lauched" also nuke with small L .aud in cnc rules looks like a typo
This commit is contained in:
@@ -41,9 +41,10 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public override void Activate(Actor self, Order order)
|
public override void Activate(Actor self, Order order)
|
||||||
{
|
{
|
||||||
// Play to everyone but the current player
|
if (self.Owner == self.World.LocalPlayer)
|
||||||
if (self.Owner != self.World.LocalPlayer)
|
|
||||||
Sound.Play(Info.LaunchSound);
|
Sound.Play(Info.LaunchSound);
|
||||||
|
else
|
||||||
|
Sound.Play(Info.IncomingSound);
|
||||||
|
|
||||||
var npi = Info as NukePowerInfo;
|
var npi = Info as NukePowerInfo;
|
||||||
var rb = self.Trait<RenderSimple>();
|
var rb = self.Trait<RenderSimple>();
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ namespace OpenRA.Mods.RA
|
|||||||
public readonly string EndChargeSound = null;
|
public readonly string EndChargeSound = null;
|
||||||
public readonly string SelectTargetSound = null;
|
public readonly string SelectTargetSound = null;
|
||||||
public readonly string LaunchSound = null;
|
public readonly string LaunchSound = null;
|
||||||
|
public readonly string IncomingSound = null;
|
||||||
|
|
||||||
public readonly bool DisplayTimer = false;
|
public readonly bool DisplayTimer = false;
|
||||||
|
|
||||||
|
|||||||
@@ -476,7 +476,8 @@ TMPL:
|
|||||||
BeginChargeSound:
|
BeginChargeSound:
|
||||||
EndChargeSound: nukavail.aud
|
EndChargeSound: nukavail.aud
|
||||||
SelectTargetSound: select1.aud
|
SelectTargetSound: select1.aud
|
||||||
LaunchSound: nukel.aud
|
LaunchSound: nuklnch1.aud
|
||||||
|
IncomingSound: nuke1.aud
|
||||||
MissileWeapon: atomic
|
MissileWeapon: atomic
|
||||||
SupportPowerChargeBar:
|
SupportPowerChargeBar:
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ PALACEH:
|
|||||||
EndChargeSound: HI_DHRDY.AUD
|
EndChargeSound: HI_DHRDY.AUD
|
||||||
SelectTargetSound:
|
SelectTargetSound:
|
||||||
LaunchSound:
|
LaunchSound:
|
||||||
|
IncomingSound:
|
||||||
MissileWeapon: atomic
|
MissileWeapon: atomic
|
||||||
SpawnOffset:-512,1c171,0
|
SpawnOffset:-512,1c171,0
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ MSLO:
|
|||||||
BeginChargeSound: aprep1.aud
|
BeginChargeSound: aprep1.aud
|
||||||
EndChargeSound: aready1.aud
|
EndChargeSound: aready1.aud
|
||||||
SelectTargetSound: slcttgt1.aud
|
SelectTargetSound: slcttgt1.aud
|
||||||
LaunchSound: alaunch1.aud
|
IncomingSound: alaunch1.aud
|
||||||
|
LaunchSound:
|
||||||
MissileWeapon: atomic
|
MissileWeapon: atomic
|
||||||
SpawnOffset: 0,427,0
|
SpawnOffset: 0,427,0
|
||||||
DisplayTimer: True
|
DisplayTimer: True
|
||||||
|
|||||||
Reference in New Issue
Block a user