Step in the direction of RA2 paratroopers.

This commit is contained in:
Matija Hustić
2015-06-18 00:51:33 +01:00
parent f7327418e4
commit 72e8e08f48
12 changed files with 419 additions and 158 deletions

View File

@@ -64,6 +64,10 @@ namespace OpenRA.Mods.Common.Traits
public bool CrushableBy(string[] crushClasses, Player crushOwner)
{
// Only make actor crushable if it is on the ground
if (self.CenterPosition.Z != 0)
return false;
if (!info.CrushedByFriendlies && crushOwner.IsAlliedWith(self.Owner))
return false;