204 AddAmmo(bandit3.gear, amMine, 2) |
204 AddAmmo(bandit3.gear, amMine, 2) |
205 AddAmmo(bandit3.gear, amGrenade, 3) |
205 AddAmmo(bandit3.gear, amGrenade, 3) |
206 AddAmmo(bandit4.gear, amBazooka, 5) |
206 AddAmmo(bandit4.gear, amBazooka, 5) |
207 AddAmmo(bandit5.gear, amBazooka, 5) |
207 AddAmmo(bandit5.gear, amBazooka, 5) |
208 |
208 |
|
209 goToThantaString = loc("Go to Thanta and get the device part!") |
|
210 |
209 if checkPointReached == 1 then |
211 if checkPointReached == 1 then |
210 AddAmmo(hero.gear, amBazooka, 1) |
212 AddAmmo(hero.gear, amBazooka, 1) |
211 SpawnAmmoCrate(icegunX, icegunY, amIceGun) |
213 SpawnAmmoCrate(icegunX, icegunY, amIceGun) |
212 AddEvent(onColumnCheckPoint, {hero.gear}, columnCheckPoint, {hero.gear}, 0) |
214 AddEvent(onColumnCheckPoint, {hero.gear}, columnCheckPoint, {hero.gear}, 0) |
213 AddEvent(onHeroAtIceGun, {hero.gear}, heroAtIceGun, {hero.gear}, 0) |
215 AddEvent(onHeroAtIceGun, {hero.gear}, heroAtIceGun, {hero.gear}, 0) |
214 AddAnim(dialog01) |
216 AddAnim(dialog01) |
215 elseif checkPointReached == 2 then |
217 elseif checkPointReached == 2 then |
216 AddAmmo(hero.gear, amIceGun, 8) |
218 AddAmmo(hero.gear, amIceGun, 8) |
217 AnimCaption(hero.gear, loc("Go to Thanta and get the device part!"), 5000) |
219 AnimCaption(hero.gear, goToThantaString, 5000) |
218 elseif checkPointReached == 3 then |
220 elseif checkPointReached == 3 then |
219 AddAmmo(hero.gear, amIceGun, 6) |
221 AddAmmo(hero.gear, amIceGun, 6) |
220 AnimCaption(hero.gear, loc("Go to Thanta and get the device part!"), 5000) |
222 AnimCaption(hero.gear, goToThantaString, 5000) |
221 end |
223 end |
222 |
224 |
223 SendHealthStatsOff() |
225 SendHealthStatsOff() |
224 end |
226 end |
225 |
227 |
413 AddAmmo(hero.gear, amJetpack, 0) |
415 AddAmmo(hero.gear, amJetpack, 0) |
414 heroVisitedAntiFlyArea = true |
416 heroVisitedAntiFlyArea = true |
415 end |
417 end |
416 |
418 |
417 function antiFlyAreaVelocity(gear) |
419 function antiFlyAreaVelocity(gear) |
418 SetGearVelocity(hero.gear, 0, 0) |
420 dx, dy = GetGearVelocity(hero.gear) |
|
421 SetGearVelocity(hero.gear, dx, math.max(dy, 0)) |
419 end |
422 end |
420 |
423 |
421 function nonAntiFlyArea(gear) |
424 function nonAntiFlyArea(gear) |
422 heroAtAntiFlyArea = false |
425 heroAtAntiFlyArea = false |
423 AddAmmo(hero.gear, amJetpack, 99) |
426 AddAmmo(hero.gear, amJetpack, 99) |