Remove now redundant Actor.IsDead checks from mission scripts

This commit is contained in:
Oliver Brakmann
2014-06-03 20:04:02 +02:00
parent 3a2bb75e01
commit 89b25c10d6
3 changed files with 11 additions and 23 deletions

View File

@@ -77,12 +77,10 @@ FollowWaypoints = function(team, waypoints)
end
PlaneExitMap = function(actor, exitPoint)
if not Actor.IsDead(actor) then
Actor.Stop(actor)
Actor.Fly(actor, exitPoint.CenterPosition)
Actor.FlyOffMap(actor)
Actor.RemoveSelf(actor)
end
Actor.Stop(actor)
Actor.Fly(actor, exitPoint.CenterPosition)
Actor.FlyOffMap(actor)
Actor.RemoveSelf(actor)
end
BaseRaid = function()
@@ -192,10 +190,8 @@ SetupWorld = function()
Utils.Do(SovietHarvesters, function(harvester)
Actor.OnDamaged(harvester, function(h)
Team.Do(harvesterGuard, function(g)
if not Actor.IsDead(g) then
Actor.Stop(g)
Actor.AttackMove(g, h.Location, 3)
end
Actor.Stop(g)
Actor.AttackMove(g, h.Location, 3)
end)
end)
end)