202 function AfterAcceptedAnim() |
202 function AfterAcceptedAnim() |
203 stage = acceptedReturnStage |
203 stage = acceptedReturnStage |
204 SpawnUtilityCrate(1370, 810, amGirder) |
204 SpawnUtilityCrate(1370, 810, amGirder) |
205 SpawnUtilityCrate(1300, 810, amParachute) |
205 SpawnUtilityCrate(1300, 810, amParachute) |
206 ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot!"), 1, 6000) |
206 ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot!"), 1, 6000) |
207 AddEvent(CheckTookWeapons, {}, DoTookWeapons, {}, 0) |
207 AddEvent(CheckReadyForStronglings, {}, DoReadyForStronglings, {}, 0) |
208 AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0) |
208 AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0) |
209 AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0) |
209 AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0) |
210 RemoveEventFunc(CheckDenseDead) |
210 RemoveEventFunc(CheckDenseDead) |
211 SwitchHog(dense) |
211 SwitchHog(dense) |
212 AnimWait(dense, 1) |
212 AnimWait(dense, 1) |
703 grenadeCrate = SpawnAmmoCrate(2550, 800, amGrenade) |
703 grenadeCrate = SpawnAmmoCrate(2550, 800, amGrenade) |
704 shotgunCrate = SpawnAmmoCrate(2610, 850, amShotgun) |
704 shotgunCrate = SpawnAmmoCrate(2610, 850, amShotgun) |
705 AddCaption(loc("A little gift from the cyborgs")) |
705 AddCaption(loc("A little gift from the cyborgs")) |
706 end |
706 end |
707 |
707 |
708 function CheckTookWeapons() |
708 function CheckReadyForStronglings() |
709 return shotgunTaken and grenadeTaken |
709 return (shotgunTaken and grenadeTaken) or GetX(dense) > 2700 |
710 end |
710 end |
711 |
711 |
712 function DoTookWeapons() |
712 function DoReadyForStronglings() |
713 ShowMission(loc("The Shadow Falls"), loc("The guardian"), loc("Protect yourselves!|Grenade hint: set the timer with [1-5], aim with [Up]/[Down] and hold [Space] to set power"), 1, 8000) |
713 ShowMission(loc("The Shadow Falls"), loc("The guardian"), loc("Protect yourselves!|Grenade hint: set the timer with [1-5], aim with [Up]/[Down] and hold [Space] to set power"), 1, 8000) |
714 AddAmmo(dense, amSkip, 100) |
714 AddAmmo(dense, amSkip, 100) |
715 AddAmmo(dense, amSwitch, 100) |
715 AddAmmo(dense, amSwitch, 100) |
716 AddAmmo(leaks, amSkip, 100) |
716 AddAmmo(leaks, amSkip, 100) |
717 AddAmmo(leaks, amSwitch, 100) |
717 AddAmmo(leaks, amSwitch, 100) |