Add an Unload voice for when a unit is unloading.

This commit is contained in:
ScottNZ
2013-07-22 22:19:37 +12:00
parent 80ebd3aae1
commit dc84acc300
3 changed files with 11 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ namespace OpenRA.Mods.RA
public string VoicePhraseForOrder(Actor self, Order order)
{
if (order.OrderString != "Unload" || IsEmpty(self)) return null;
return "Move";
return self.HasVoice("Unload") ? "Unload" : "Move";
}
public bool HasSpace(int weight) { return totalWeight + weight <= info.MaxWeight; }