setup all Tanya voices

This commit is contained in:
Matthias Mailänder
2014-09-28 15:51:12 +02:00
parent 4b263a438f
commit aab71ccbaf
4 changed files with 13 additions and 3 deletions

View File

@@ -30,6 +30,8 @@ namespace OpenRA.Mods.RA
public readonly int FlashInterval = 4;
[Desc("Duration of each flash")]
public readonly int FlashDuration = 3;
[Desc("Voice string when planting explosive charges.")]
public readonly string Voice = "Attack";
public object Create(ActorInitializer init) { return new C4Demolition(this); }
}
@@ -82,7 +84,7 @@ namespace OpenRA.Mods.RA
public string VoicePhraseForOrder(Actor self, Order order)
{
return order.OrderString == "C4" ? "Attack" : null;
return order.OrderString == "C4" ? info.Voice : null;
}
class C4DemolitionOrderTargeter : UnitOrderTargeter