new setting to allow unlucky paratroopers

This commit is contained in:
Matthias Mailänder
2014-06-21 17:35:04 +02:00
parent 2907273ef2
commit a38d43019a
7 changed files with 18 additions and 6 deletions

View File

@@ -24,6 +24,9 @@ namespace OpenRA.Mods.RA
public readonly string ChuteSound = "chute1.aud";
public readonly bool EjectInAir = false;
public readonly bool EjectOnGround = false;
[Desc("Risks stuck units when they don't have the Paratrooper trait.")]
public readonly bool AllowUnsuitableCell = false;
}
public class EjectOnDeath : INotifyKilled
@@ -47,7 +50,7 @@ namespace OpenRA.Mods.RA
new TypeDictionary { new OwnerInit(self.Owner), new LocationInit(self.Location) });
if (IsSuitableCell(self, pilot))
if (info.AllowUnsuitableCell || IsSuitableCell(self, pilot))
{
if (cp.Z > 0)
{