"Repairing" eva notification for ra and cnc.

This commit is contained in:
Paul Chote
2011-01-30 18:04:58 +13:00
parent d595b36cf5
commit 6e1cb23f10
3 changed files with 3 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ namespace OpenRA.Traits
public readonly string EnablePower = "bleep12.aud";
// Eva speech
public readonly string Repairing = "repair1.aud";
public readonly string LowPower = "lopower1.aud";
public readonly string SilosNeeded = "silond1.aud";
public readonly string PrimaryBuildingSelected = "pribldg1.aud";

View File

@@ -40,6 +40,8 @@ namespace OpenRA.Mods.RA.Buildings
if (order.OrderString == "Repair")
{
isRepairing = !isRepairing;
if (isRepairing)
Sound.PlayToPlayer(self.Owner, self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>().Repairing);
}
}

BIN
mods/cnc/bits/repair1.aud Normal file

Binary file not shown.