297 AddNewEvent(CheckGearsDead, {{crates[1], crates[2]}}, PutCrates, {2}, 0) |
297 AddNewEvent(CheckGearsDead, {{crates[1], crates[2]}}, PutCrates, {2}, 0) |
298 TurnTimeLeft = TurnTime |
298 TurnTimeLeft = TurnTime |
299 ShowMission(loc("Dragon's Lair"), loc("Obstacle course"), loc("In order to get to the other side, you need to collect the crates first.|") .. |
299 ShowMission(loc("Dragon's Lair"), loc("Obstacle course"), loc("In order to get to the other side, you need to collect the crates first.|") .. |
300 loc("As the ammo is sparse, you might want to reuse ropes while mid-air.|") .. |
300 loc("As the ammo is sparse, you might want to reuse ropes while mid-air.|") .. |
301 loc("The enemy can't move but it might be a good idea to stay out of sight!|") .. |
301 loc("The enemy can't move but it might be a good idea to stay out of sight!|") .. |
302 string.format(loc("You have %d turns until Sudden Death! Better hurry!"), SuddenDeathTurns), 1, 0) |
302 loc("Mines time: 5 seconds"), 1, 0) |
303 end |
303 end |
304 |
304 |
305 function SkipKillAnim() |
305 function SkipKillAnim() |
306 AnimSwitchHog(native) |
306 AnimSwitchHog(native) |
307 AnimWait(native, 1) |
307 AnimWait(native, 1) |
310 |
310 |
311 function AfterKillAnim() |
311 function AfterKillAnim() |
312 PutWeaponCrates() |
312 PutWeaponCrates() |
313 TurnTimeLeft = TurnTime |
313 TurnTimeLeft = TurnTime |
314 AddEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0) |
314 AddEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0) |
315 ShowMission(loc("Dragon's Lair"), loc("The Slaughter"), loc("Kill the aliens!"), 1, 2000) |
315 ShowMission(loc("Dragon's Lair"), loc("The Slaughter"), loc("Kill the aliens!").."|"..loc("Mines time: 5 seconds"), 1, 2000) |
316 end |
316 end |
317 |
317 |
318 function SkipKilledAnim() |
318 function SkipKilledAnim() |
319 AnimSetGearPosition(native, unpack(secondPos[1])) |
319 AnimSetGearPosition(native, unpack(secondPos[1])) |
320 AnimSwitchHog(native) |
320 AnimSwitchHog(native) |
328 AddAmmo(native, amPortalGun, 100) |
328 AddAmmo(native, amPortalGun, 100) |
329 SpawnUtilityCrate(2259, 755, amTeleport, 2) |
329 SpawnUtilityCrate(2259, 755, amTeleport, 2) |
330 SpawnHealthCrate(secondPos[1][1] + 30, secondPos[1][2]) |
330 SpawnHealthCrate(secondPos[1][1] + 30, secondPos[1][2]) |
331 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!|").. |
331 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!|").. |
332 loc("Portal hint: one goes to the destination, and one is the entrance.|").. |
332 loc("Portal hint: one goes to the destination, and one is the entrance.|").. |
333 loc("Teleport hint: just use the mouse to select the destination!"), 1, 0) |
333 loc("Teleport hint: just use the mouse to select the destination!").."|".. |
|
334 loc("Mines time: 5 seconds"), 1, 0) |
334 end |
335 end |
335 -----------------------------Events------------------------------------ |
336 -----------------------------Events------------------------------------ |
336 |
337 |
337 function CheckCyborgsDead() |
338 function CheckCyborgsDead() |
338 return cyborgsLeft == 0 |
339 return cyborgsLeft == 0 |