51 TurnTimeLeft = TurnTime |
51 TurnTimeLeft = TurnTime |
52 ShowMission(loc("United We Stand"), loc("Invasion"), goal .. chiefgoal, 1, 6000) |
52 ShowMission(loc("United We Stand"), loc("Invasion"), goal .. chiefgoal, 1, 6000) |
53 end |
53 end |
54 |
54 |
55 function SkipStartAnim() |
55 function SkipStartAnim() |
56 SetGearPosition(water, 2467, 754) |
56 AnimSetGearPosition(water, 2467, 754) |
57 if cratesSpawned[1] ~= true then |
57 if cratesSpawned[1] ~= true then |
58 SpawnCrates(1) |
58 SpawnCrates(1) |
59 end |
59 end |
60 if healthCratesSpawned[1] ~= true then |
60 if healthCratesSpawned[1] ~= true then |
61 SpawnHealthCrates(1) |
61 SpawnHealthCrates(1) |
317 end |
317 end |
318 |
318 |
319 AddTeam(loc("011101001"), 14483456, "ring", "UFO", "Robot", "cm_star") |
319 AddTeam(loc("011101001"), 14483456, "ring", "UFO", "Robot", "cm_star") |
320 cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
320 cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
321 |
321 |
322 SetGearPosition(leaks, unpack(leaksPos)) |
322 AnimSetGearPosition(leaks, unpack(leaksPos)) |
323 SetGearPosition(dense, unpack(densePos)) |
323 AnimSetGearPosition(dense, unpack(densePos)) |
324 SetGearPosition(water, unpack(waterPos)) |
324 AnimSetGearPosition(water, unpack(waterPos)) |
325 HogTurnLeft(water, true) |
325 HogTurnLeft(water, true) |
326 SetGearPosition(buffalo, unpack(buffaloPos)) |
326 AnimSetGearPosition(buffalo, unpack(buffaloPos)) |
327 HogTurnLeft(buffalo, true) |
327 HogTurnLeft(buffalo, true) |
328 SetGearPosition(chief, unpack(chiefPos)) |
328 AnimSetGearPosition(chief, unpack(chiefPos)) |
329 HogTurnLeft(chief, true) |
329 HogTurnLeft(chief, true) |
330 SetGearPosition(cyborg, 0, 0) |
330 AnimSetGearPosition(cyborg, 0, 0) |
331 for i = 1, 8 do |
331 for i = 1, 8 do |
332 SetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
332 AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
333 end |
333 end |
334 end |
334 end |
335 |
335 |
336 function CondNeedToTurn(hog1, hog2) |
336 function CondNeedToTurn(hog1, hog2) |
337 xl, xd = GetX(hog1), GetX(hog2) |
337 xl, xd = GetX(hog1), GetX(hog2) |