Added Gates

FIXUP: account for full gate footprint when updating neighbours.

FIXUP: gate-wall connection adjacency yaml.
This commit is contained in:
teees
2015-11-16 14:33:05 +01:00
parent 3d597c7880
commit 65e1e301f4
12 changed files with 464 additions and 4 deletions

View File

@@ -240,6 +240,11 @@ namespace OpenRA.Mods.Common.Traits
IsMovingInMyDirection(self, otherActor))
return false;
// If there is a temporary blocker in our path, but we can remove it, we are not blocked.
var temporaryBlocker = otherActor.TraitOrDefault<ITemporaryBlocker>();
if (temporaryBlocker != null && temporaryBlocker.CanRemoveBlockage(otherActor, self))
return false;
// If we cannot crush the other actor in our way, we are blocked.
if (self == null || Crushes == null || Crushes.Count == 0)
return true;