Add support for disabling IIssueDeployOrders.
This commit is contained in:
@@ -129,6 +129,8 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
return new Order("Detonate", self, false);
|
||||
}
|
||||
|
||||
bool IIssueDeployOrder.CanIssueDeployOrder(Actor self) { return true; }
|
||||
|
||||
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
|
||||
{
|
||||
return info.Voice;
|
||||
|
||||
@@ -86,6 +86,8 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
return new Order("PlaceMine", self, Target.FromCell(self.World, self.Location), false);
|
||||
}
|
||||
|
||||
bool IIssueDeployOrder.CanIssueDeployOrder(Actor self) { return true; }
|
||||
|
||||
void IResolveOrder.ResolveOrder(Actor self, Order order)
|
||||
{
|
||||
if (order.OrderString == "BeginMinefield")
|
||||
|
||||
Reference in New Issue
Block a user