180 SpawnUtilityCrate(3157, 1009, amLowGravity) |
182 SpawnUtilityCrate(3157, 1009, amLowGravity) |
181 sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle) |
183 sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle) |
182 end |
184 end |
183 |
185 |
184 function PlaceMinesDuo() |
186 function PlaceMinesDuo() |
185 SetTimer(AddGear(2920, 1448, gtMine, 0, 0, 0, 0), 5000) |
187 AddGear(2920, 1448, gtMine, 0, 0, 0, 0) |
186 SetTimer(AddGear(2985, 1338, gtMine, 0, 0, 0, 0), 5000) |
188 AddGear(2985, 1338, gtMine, 0, 0, 0, 0) |
187 SetTimer(AddGear(3005, 1302, gtMine, 0, 0, 0, 0), 5000) |
189 AddGear(3005, 1302, gtMine, 0, 0, 0, 0) |
188 SetTimer(AddGear(3030, 1270, gtMine, 0, 0, 0, 0), 5000) |
190 AddGear(3030, 1270, gtMine, 0, 0, 0, 0) |
189 SetTimer(AddGear(3046, 1257, gtMine, 0, 0, 0, 0), 5000) |
191 AddGear(3046, 1257, gtMine, 0, 0, 0, 0) |
190 SetTimer(AddGear(2954, 1400, gtMine, 0, 0, 0, 0), 5000) |
192 AddGear(2954, 1400, gtMine, 0, 0, 0, 0) |
191 SetTimer(AddGear(2967, 1385, gtMine, 0, 0, 0, 0), 5000) |
193 AddGear(2967, 1385, gtMine, 0, 0, 0, 0) |
192 SetTimer(AddGear(2849, 1449, gtMine, 0, 0, 0, 0), 5000) |
194 AddGear(2849, 1449, gtMine, 0, 0, 0, 0) |
193 SetTimer(AddGear(2811, 1436, gtMine, 0, 0, 0, 0), 5000) |
195 AddGear(2811, 1436, gtMine, 0, 0, 0, 0) |
194 SetTimer(AddGear(2773, 1411, gtMine, 0, 0, 0, 0), 5000) |
196 AddGear(2773, 1411, gtMine, 0, 0, 0, 0) |
195 SetTimer(AddGear(2732, 1390, gtMine, 0, 0, 0, 0), 5000) |
197 AddGear(2732, 1390, gtMine, 0, 0, 0, 0) |
196 SetTimer(AddGear(2700, 1362, gtMine, 0, 0, 0, 0), 5000) |
198 AddGear(2700, 1362, gtMine, 0, 0, 0, 0) |
197 SetTimer(AddGear(2642, 1321, gtMine, 0, 0, 0, 0), 5000) |
199 AddGear(2642, 1321, gtMine, 0, 0, 0, 0) |
198 SetTimer(AddGear(2172, 1417, gtMine, 0, 0, 0, 0), 5000) |
200 AddGear(2172, 1417, gtMine, 0, 0, 0, 0) |
199 SetTimer(AddGear(2190, 1363, gtMine, 0, 0, 0, 0), 5000) |
201 AddGear(2190, 1363, gtMine, 0, 0, 0, 0) |
200 SetTimer(AddGear(2219, 1332, gtMine, 0, 0, 0, 0), 5000) |
202 AddGear(2219, 1332, gtMine, 0, 0, 0, 0) |
201 SetTimer(AddGear(1201, 1207, gtMine, 0, 0, 0, 0), 5000) |
203 AddGear(1201, 1207, gtMine, 0, 0, 0, 0) |
202 SetTimer(AddGear(1247, 1205, gtMine, 0, 0, 0, 0), 5000) |
204 AddGear(1247, 1205, gtMine, 0, 0, 0, 0) |
203 SetTimer(AddGear(1295, 1212, gtMine, 0, 0, 0, 0), 5000) |
205 AddGear(1295, 1212, gtMine, 0, 0, 0, 0) |
204 SetTimer(AddGear(1356, 1209, gtMine, 0, 0, 0, 0), 5000) |
206 AddGear(1356, 1209, gtMine, 0, 0, 0, 0) |
205 SetTimer(AddGear(1416, 1201, gtMine, 0, 0, 0, 0), 5000) |
207 AddGear(1416, 1201, gtMine, 0, 0, 0, 0) |
206 SetTimer(AddGear(1466, 1201, gtMine, 0, 0, 0, 0), 5000) |
208 AddGear(1466, 1201, gtMine, 0, 0, 0, 0) |
207 SetTimer(AddGear(1678, 1198, gtMine, 0, 0, 0, 0), 5000) |
209 AddGear(1678, 1198, gtMine, 0, 0, 0, 0) |
208 SetTimer(AddGear(1738, 1198, gtMine, 0, 0, 0, 0), 5000) |
210 AddGear(1738, 1198, gtMine, 0, 0, 0, 0) |
209 SetTimer(AddGear(1796, 1198, gtMine, 0, 0, 0, 0), 5000) |
211 AddGear(1796, 1198, gtMine, 0, 0, 0, 0) |
210 SetTimer(AddGear(1637, 1217, gtMine, 0, 0, 0, 0), 5000) |
212 AddGear(1637, 1217, gtMine, 0, 0, 0, 0) |
211 SetTimer(AddGear(1519, 1213, gtMine, 0, 0, 0, 0), 5000) |
213 AddGear(1519, 1213, gtMine, 0, 0, 0, 0) |
212 end |
214 end |
213 |
215 |
214 function AfterPastFlowerAnim() |
216 function AfterPastFlowerAnim() |
215 PlaceMinesDuo() |
217 PlaceMinesDuo() |
216 AddEvent(CheckDensePit, {}, DoDensePit, {}, 0) |
218 AddEvent(CheckDensePit, {}, DoDensePit, {}, 0) |
217 AddEvent(CheckTookGirder1, {}, DoTookGirder1, {}, 0) |
219 AddEvent(CheckTookGirder1, {}, DoTookGirder1, {}, 0) |
218 AddEvent(CheckTookGirder2, {}, DoTookGirder2, {}, 0) |
220 AddEvent(CheckTookGirder2, {}, DoTookGirder2, {}, 0) |
219 SetGearMessage(leaks, 0) |
221 SetGearMessage(leaks, 0) |
220 SetGearMessage(dense, 0) |
222 SetGearMessage(dense, 0) |
221 EndTurn(0) |
223 EndTurn(0) |
222 ShowMission(loc("The Journey Back"), loc("The Savior"), loc("Get Dense Cloud out of the pit!"), 1, 5000) |
224 ShowMission(loc("The Journey Back"), loc("The Savior"), |
|
225 loc("Get Dense Cloud out of the pit!") .. "|" .. |
|
226 loc("Beware of mines: They explode after 5 seconds."), 1, 5000) |
223 end |
227 end |
224 |
228 |
225 function SkipPastFlowerAnim() |
229 function SkipPastFlowerAnim() |
226 AnimSetGearPosition(dense, 2656, 1842) |
230 AnimSetGearPosition(dense, 2656, 1842) |
227 AnimSwitchHog(dense) |
231 AnimSwitchHog(dense) |
308 SpawnUtilityCrate(994, 825, amRope) |
314 SpawnUtilityCrate(994, 825, amRope) |
309 SpawnUtilityCrate(570, 1357, amLowGravity) |
315 SpawnUtilityCrate(570, 1357, amLowGravity) |
310 end |
316 end |
311 |
317 |
312 function DumpMines() |
318 function DumpMines() |
313 SetTimer(AddGear(2261, 1835, gtMine, 0, 0, 0, 0), 5000) |
319 AddGear(2261, 1835, gtMine, 0, 0, 0, 0) |
314 SetTimer(AddGear(2280, 1831, gtMine, 0, 0, 0, 0), 5000) |
320 AddGear(2280, 1831, gtMine, 0, 0, 0, 0) |
315 SetTimer(AddGear(2272, 1809, gtMine, 0, 0, 0, 0), 5000) |
321 AddGear(2272, 1809, gtMine, 0, 0, 0, 0) |
316 SetTimer(AddGear(2290, 1815, gtMine, 0, 0, 0, 0), 5000) |
322 AddGear(2290, 1815, gtMine, 0, 0, 0, 0) |
317 SetTimer(AddGear(2278, 1815, gtMine, 0, 0, 0, 0), 5000) |
323 AddGear(2278, 1815, gtMine, 0, 0, 0, 0) |
318 SetTimer(AddGear(2307, 1811, gtMine, 0, 0, 0, 0), 5000) |
324 AddGear(2307, 1811, gtMine, 0, 0, 0, 0) |
319 SetTimer(AddGear(2286, 1820, gtMine, 0, 0, 0, 0), 5000) |
325 AddGear(2286, 1820, gtMine, 0, 0, 0, 0) |
320 SetTimer(AddGear(2309, 1813, gtMine, 0, 0, 0, 0), 5000) |
326 AddGear(2309, 1813, gtMine, 0, 0, 0, 0) |
321 SetTimer(AddGear(2303, 1822, gtMine, 0, 0, 0, 0), 5000) |
327 AddGear(2303, 1822, gtMine, 0, 0, 0, 0) |
322 SetTimer(AddGear(2317, 1827, gtMine, 0, 0, 0, 0), 5000) |
328 AddGear(2317, 1827, gtMine, 0, 0, 0, 0) |
323 SetTimer(AddGear(2312, 1816, gtMine, 0, 0, 0, 0), 5000) |
329 AddGear(2312, 1816, gtMine, 0, 0, 0, 0) |
324 SetTimer(AddGear(2316, 1812, gtMine, 0, 0, 0, 0), 5000) |
330 AddGear(2316, 1812, gtMine, 0, 0, 0, 0) |
325 SetTimer(AddGear(2307, 1802, gtMine, 0, 0, 0, 0), 5000) |
331 AddGear(2307, 1802, gtMine, 0, 0, 0, 0) |
326 SetTimer(AddGear(2276, 1818, gtMine, 0, 0, 0, 0), 5000) |
332 AddGear(2276, 1818, gtMine, 0, 0, 0, 0) |
327 SetTimer(AddGear(2284, 1816, gtMine, 0, 0, 0, 0), 5000) |
333 AddGear(2284, 1816, gtMine, 0, 0, 0, 0) |
328 SetTimer(AddGear(2292, 1811, gtMine, 0, 0, 0, 0), 5000) |
334 AddGear(2292, 1811, gtMine, 0, 0, 0, 0) |
329 SetTimer(AddGear(2295, 1814, gtMine, 0, 0, 0, 0), 5000) |
335 AddGear(2295, 1814, gtMine, 0, 0, 0, 0) |
330 SetTimer(AddGear(2306, 1811, gtMine, 0, 0, 0, 0), 5000) |
336 AddGear(2306, 1811, gtMine, 0, 0, 0, 0) |
331 SetTimer(AddGear(2292, 1815, gtMine, 0, 0, 0, 0), 5000) |
337 AddGear(2292, 1815, gtMine, 0, 0, 0, 0) |
332 SetTimer(AddGear(2314, 1815, gtMine, 0, 0, 0, 0), 5000) |
338 AddGear(2314, 1815, gtMine, 0, 0, 0, 0) |
333 SetTimer(AddGear(2286, 1813, gtMine, 0, 0, 0, 0), 5000) |
339 AddGear(2286, 1813, gtMine, 0, 0, 0, 0) |
334 SetTimer(AddGear(2275, 1813, gtMine, 0, 0, 0, 0), 5000) |
340 AddGear(2275, 1813, gtMine, 0, 0, 0, 0) |
335 SetTimer(AddGear(2269, 1814, gtMine, 0, 0, 0, 0), 5000) |
341 AddGear(2269, 1814, gtMine, 0, 0, 0, 0) |
336 SetTimer(AddGear(2273, 1812, gtMine, 0, 0, 0, 0), 5000) |
342 AddGear(2273, 1812, gtMine, 0, 0, 0, 0) |
337 SetTimer(AddGear(2300, 1808, gtMine, 0, 0, 0, 0), 5000) |
343 AddGear(2300, 1808, gtMine, 0, 0, 0, 0) |
338 SetTimer(AddGear(2322, 1812, gtMine, 0, 0, 0, 0), 5000) |
344 AddGear(2322, 1812, gtMine, 0, 0, 0, 0) |
339 SetTimer(AddGear(2323, 1813, gtMine, 0, 0, 0, 0), 5000) |
345 AddGear(2323, 1813, gtMine, 0, 0, 0, 0) |
340 SetTimer(AddGear(2311, 1811, gtMine, 0, 0, 0, 0), 5000) |
346 AddGear(2311, 1811, gtMine, 0, 0, 0, 0) |
341 SetTimer(AddGear(2303, 1809, gtMine, 0, 0, 0, 0), 5000) |
347 AddGear(2303, 1809, gtMine, 0, 0, 0, 0) |
342 SetTimer(AddGear(2287, 1808, gtMine, 0, 0, 0, 0), 5000) |
348 AddGear(2287, 1808, gtMine, 0, 0, 0, 0) |
343 SetTimer(AddGear(2282, 1808, gtMine, 0, 0, 0, 0), 5000) |
349 AddGear(2282, 1808, gtMine, 0, 0, 0, 0) |
344 SetTimer(AddGear(2277, 1809, gtMine, 0, 0, 0, 0), 5000) |
350 AddGear(2277, 1809, gtMine, 0, 0, 0, 0) |
345 SetTimer(AddGear(2296, 1809, gtMine, 0, 0, 0, 0), 5000) |
351 AddGear(2296, 1809, gtMine, 0, 0, 0, 0) |
346 SetTimer(AddGear(2314, 1818, gtMine, 0, 0, 0, 0), 5000) |
352 AddGear(2314, 1818, gtMine, 0, 0, 0, 0) |
347 end |
353 end |
348 |
354 |
349 function SetupAnimRefusedDied() |
355 function SetupAnimRefusedDied() |
350 SetupAnimAcceptedDied() |
356 SetupAnimAcceptedDied() |
351 table.insert(startAnim, {func = AnimSay, args = {leaks, loc("I just wonder where Ramon and Spiky disappeared..."), SAY_THINK, 6000}}) |
357 table.insert(startAnim, {func = AnimSay, args = {leaks, loc("I just wonder where Ramon and Spiky disappeared..."), SAY_THINK, 6000}}) |
603 gravityCrate = SpawnUtilityCrate(3448, 1349, amLowGravity) |
609 gravityCrate = SpawnUtilityCrate(3448, 1349, amLowGravity) |
604 SpawnUtilityCrate(3212, 1256, amGirder) |
610 SpawnUtilityCrate(3212, 1256, amGirder) |
605 SpawnUtilityCrate(3113, 911, amParachute) |
611 SpawnUtilityCrate(3113, 911, amParachute) |
606 sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle) |
612 sniperCrate = SpawnAmmoCrate(784, 1715, amSniperRifle) |
607 ------ MINE LIST ------ |
613 ------ MINE LIST ------ |
608 SetTimer(AddGear(3328, 1399, gtMine, 0, 0, 0, 0), 3000) |
614 AddGear(3328, 1399, gtMine, 0, 0, 0, 0) |
609 SetTimer(AddGear(3028, 1262, gtMine, 0, 0, 0, 0), 3000) |
615 AddGear(3028, 1262, gtMine, 0, 0, 0, 0) |
610 SetTimer(AddGear(2994, 1274, gtMine, 0, 0, 0, 0), 3000) |
616 AddGear(2994, 1274, gtMine, 0, 0, 0, 0) |
611 SetTimer(AddGear(2956, 1277, gtMine, 0, 0, 0, 0), 3000) |
617 AddGear(2956, 1277, gtMine, 0, 0, 0, 0) |
612 SetTimer(AddGear(2925, 1282, gtMine, 0, 0, 0, 0), 3000) |
618 AddGear(2925, 1282, gtMine, 0, 0, 0, 0) |
613 SetTimer(AddGear(2838, 1276, gtMine, 0, 0, 0, 0), 3000) |
619 AddGear(2838, 1276, gtMine, 0, 0, 0, 0) |
614 SetTimer(AddGear(2822, 1278, gtMine, 0, 0, 0, 0), 3000) |
620 AddGear(2822, 1278, gtMine, 0, 0, 0, 0) |
615 SetTimer(AddGear(2786, 1283, gtMine, 0, 0, 0, 0), 3000) |
621 AddGear(2786, 1283, gtMine, 0, 0, 0, 0) |
616 SetTimer(AddGear(2766, 1270, gtMine, 0, 0, 0, 0), 3000) |
622 AddGear(2766, 1270, gtMine, 0, 0, 0, 0) |
617 SetTimer(AddGear(2749, 1231, gtMine, 0, 0, 0, 0), 3000) |
623 AddGear(2749, 1231, gtMine, 0, 0, 0, 0) |
618 SetTimer(AddGear(2717, 1354, gtMine, 0, 0, 0, 0), 3000) |
624 AddGear(2717, 1354, gtMine, 0, 0, 0, 0) |
619 SetTimer(AddGear(2167, 1330, gtMine, 0, 0, 0, 0), 3000) |
625 AddGear(2167, 1330, gtMine, 0, 0, 0, 0) |
620 SetTimer(AddGear(2201, 1321, gtMine, 0, 0, 0, 0), 3000) |
626 AddGear(2201, 1321, gtMine, 0, 0, 0, 0) |
621 SetTimer(AddGear(2239, 1295, gtMine, 0, 0, 0, 0), 3000) |
627 AddGear(2239, 1295, gtMine, 0, 0, 0, 0) |
622 |
628 |
623 AnimSetGearPosition(leaks, 3781, 1583) |
629 AnimSetGearPosition(leaks, 3781, 1583) |
624 AddAmmo(cannibals[1], amShotgun, 100) |
630 AddAmmo(cannibals[1], amShotgun, 100) |
625 AddAmmo(leaks, amSwitch, 0) |
631 AddAmmo(leaks, amSwitch, 0) |
626 end |
632 end |
722 SetHealth(AddGear(1148, 736, gtExplosives, 0, 0, 0, 0), 20) |
728 SetHealth(AddGear(1148, 736, gtExplosives, 0, 0, 0, 0), 20) |
723 |
729 |
724 end |
730 end |
725 |
731 |
726 function PlaceCourseMines() |
732 function PlaceCourseMines() |
727 SetTimer(AddGear(1215, 1193, gtMine, 0, 0, 0, 0), 5000) |
733 AddGear(1215, 1193, gtMine, 0, 0, 0, 0) |
728 SetTimer(AddGear(1259, 1199, gtMine, 0, 0, 0, 0), 5000) |
734 AddGear(1259, 1199, gtMine, 0, 0, 0, 0) |
729 SetTimer(AddGear(1310, 1198, gtMine, 0, 0, 0, 0), 5000) |
735 AddGear(1310, 1198, gtMine, 0, 0, 0, 0) |
730 SetTimer(AddGear(1346, 1196, gtMine, 0, 0, 0, 0), 5000) |
736 AddGear(1346, 1196, gtMine, 0, 0, 0, 0) |
731 SetTimer(AddGear(1383, 1192, gtMine, 0, 0, 0, 0), 5000) |
737 AddGear(1383, 1192, gtMine, 0, 0, 0, 0) |
732 SetTimer(AddGear(1436, 1196, gtMine, 0, 0, 0, 0), 5000) |
738 AddGear(1436, 1196, gtMine, 0, 0, 0, 0) |
733 SetTimer(AddGear(1487, 1199, gtMine, 0, 0, 0, 0), 5000) |
739 AddGear(1487, 1199, gtMine, 0, 0, 0, 0) |
734 SetTimer(AddGear(1651, 1209, gtMine, 0, 0, 0, 0), 5000) |
740 AddGear(1651, 1209, gtMine, 0, 0, 0, 0) |
735 SetTimer(AddGear(1708, 1209, gtMine, 0, 0, 0, 0), 5000) |
741 AddGear(1708, 1209, gtMine, 0, 0, 0, 0) |
736 SetTimer(AddGear(1759, 1190, gtMine, 0, 0, 0, 0), 5000) |
742 AddGear(1759, 1190, gtMine, 0, 0, 0, 0) |
737 SetTimer(AddGear(1815, 1184, gtMine, 0, 0, 0, 0), 5000) |
743 AddGear(1815, 1184, gtMine, 0, 0, 0, 0) |
738 end |
744 end |
739 |
745 |
740 |
746 |
741 --////////////////////////////Event Functions//////////////////////// |
747 --////////////////////////////Event Functions//////////////////////// |
742 function CheckTookFire() |
748 function CheckTookFire() |