equal
deleted
inserted
replaced
210 firstTurn = true |
210 firstTurn = true |
211 cyborgsKilledBeforeCrates = false |
211 cyborgsKilledBeforeCrates = false |
212 cratesTaken = false |
212 cratesTaken = false |
213 doneCyborgsDead = false |
213 doneCyborgsDead = false |
214 |
214 |
|
215 timeAfterCratesTaken = nil |
|
216 |
215 annoyingGearsForPortalScene = {} |
217 annoyingGearsForPortalScene = {} |
216 -----------------------------Animations-------------------------------- |
218 -----------------------------Animations-------------------------------- |
217 function EmitDenseClouds(dir) |
219 function EmitDenseClouds(dir) |
218 local dif |
220 local dif |
219 if dir == "Left" then |
221 if dir == "Left" then |
381 end |
383 end |
382 |
384 |
383 function AfterKillAnim() |
385 function AfterKillAnim() |
384 if not cyborgsKilledBeforeCrates then |
386 if not cyborgsKilledBeforeCrates then |
385 PutWeaponCrates() |
387 PutWeaponCrates() |
386 SetTurnTimeLeft(TurnTime) |
388 SetTurnTimeLeft(timeAfterCratesTaken) |
|
389 SetReadyTimeLeft(Ready) |
387 AddEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0) |
390 AddEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0) |
388 ShowMission(loc("Dragon's Lair"), loc("The Slaughter"), loc("Kill the aliens!").."|"..loc("Mines time: 5 seconds"), 1, 2000) |
391 ShowMission(loc("Dragon's Lair"), loc("The Slaughter"), loc("Kill the aliens!").."|"..loc("Mines time: 5 seconds"), 1, 2000) |
389 end |
392 end |
390 end |
393 end |
391 |
394 |
396 end |
399 end |
397 |
400 |
398 function AfterKilledAnim() |
401 function AfterKilledAnim() |
399 -- Final mission segment with the portal gun |
402 -- Final mission segment with the portal gun |
400 HideHedge(cyborg) |
403 HideHedge(cyborg) |
401 SetTurnTimeLeft(TurnTime) |
404 EndTurn(true) |
402 SetGearMessage(native, 0) |
405 SetGearMessage(native, 0) |
403 SpawnSupplyCrate(1184, 399, amPortalGun, 100) |
406 SpawnSupplyCrate(1184, 399, amPortalGun, 100) |
404 SpawnSupplyCrate(2259, 755, amTeleport, 2) |
407 SpawnSupplyCrate(2259, 755, amTeleport, 2) |
405 SpawnHealthCrate(secondPos[1][1] + 50, secondPos[1][2] - 20) |
408 SpawnHealthCrate(secondPos[1][1] + 50, secondPos[1][2] - 20) |
406 ShowMission(loc("Dragon's Lair"), loc("The what?!"), loc("Use the portal gun to get to the next crate, then use the new gun to get to the final destination!|").. |
409 ShowMission(loc("Dragon's Lair"), loc("The what?!"), loc("Use the portal gun to get to the next crate, then use the new gun to get to the final destination!|").. |
458 FollowGear(native) |
461 FollowGear(native) |
459 end |
462 end |
460 |
463 |
461 function DoCratesTaken() |
464 function DoCratesTaken() |
462 cratesTaken = true |
465 cratesTaken = true |
|
466 timeAfterCratesTaken = TurnTimeLeft |
463 SetupKillAnim() |
467 SetupKillAnim() |
464 SetGearMessage(CurrentHedgehog, 0) |
468 SetGearMessage(CurrentHedgehog, 0) |
465 AddAnim(killAnim) |
469 AddAnim(killAnim) |
466 AddFunction({func = AfterKillAnim, args = {}}) |
470 AddFunction({func = AfterKillAnim, args = {}}) |
467 end |
471 end |