Remove unused leftovers from GDI08a
Those became redundant due to using global MoveAndHunt in SendWaves.
This commit is contained in:
committed by
Matthias Mailänder
parent
89f270b67c
commit
771932354b
@@ -63,28 +63,6 @@ SendWaves = function(counter, Waves)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
SendAttackWave = function(team)
|
|
||||||
for type, amount in pairs(team.units) do
|
|
||||||
count = 0
|
|
||||||
local actors = Nod.GetActorsByType(type)
|
|
||||||
Utils.Do(actors, function(actor)
|
|
||||||
if actor.IsIdle and count < amount then
|
|
||||||
SetAttackWaypoints(actor, team.waypoints)
|
|
||||||
IdleHunt(actor)
|
|
||||||
count = count + 1
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
SetAttackWaypoints = function(actor, waypoints)
|
|
||||||
if not actor.IsDead then
|
|
||||||
Utils.Do(waypoints, function(waypoint)
|
|
||||||
actor.AttackMove(waypoint.Location)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
CheckRepairGDIAssetsObjective = function()
|
CheckRepairGDIAssetsObjective = function()
|
||||||
local failed = false
|
local failed = false
|
||||||
local repaired = true
|
local repaired = true
|
||||||
|
|||||||
Reference in New Issue
Block a user