201 end |
201 end |
202 |
202 |
203 |
203 |
204 function AfterAcceptedAnim() |
204 function AfterAcceptedAnim() |
205 stage = acceptedReturnStage |
205 stage = acceptedReturnStage |
206 SpawnAmmoCrate(1300, 810, amGirder) |
206 SpawnAmmoCrate(1370, 810, amGirder) |
207 SpawnAmmoCrate(1300, 810 - 60, amParachute) |
207 SpawnAmmoCrate(1300, 810, amParachute) |
208 ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot! If you get stuck, press [Precise] to try again!"), 1, 6000) |
208 ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot! If you get stuck, press [Precise] to try again!"), 1, 6000) |
209 HideHog(cyborg) |
209 HideHog(cyborg) |
210 AddEvent(CheckTookWeapons, {}, DoTookWeapons, {}, 0) |
210 AddEvent(CheckTookWeapons, {}, DoTookWeapons, {}, 0) |
211 AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0) |
211 AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0) |
212 AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0) |
212 AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0) |
685 function CheckNeedWeapons() |
685 function CheckNeedWeapons() |
686 return GetX(dense) > 2522 and StoppedGear(dense) |
686 return GetX(dense) > 2522 and StoppedGear(dense) |
687 end |
687 end |
688 |
688 |
689 function DoNeedWeapons() |
689 function DoNeedWeapons() |
690 grenadeCrate = SpawnAmmoCrate(2550, 600, amGrenade) |
690 grenadeCrate = SpawnAmmoCrate(2550, 800, amGrenade) |
691 shotgunCrate = SpawnAmmoCrate(2550, 550, amShotgun) |
691 shotgunCrate = SpawnAmmoCrate(2610, 850, amShotgun) |
692 AddCaption(loc("A little gift from the cyborgs")) |
692 AddCaption(loc("A little gift from the cyborgs")) |
693 end |
693 end |
694 |
694 |
695 function CheckTookWeapons() |
695 function CheckTookWeapons() |
696 return shotgunTaken and grenadeTaken |
696 return shotgunTaken and grenadeTaken |