equal
deleted
inserted
replaced
249 SetAmmo(amJetpack, 0, 0, 0, 1) |
249 SetAmmo(amJetpack, 0, 0, 0, 1) |
250 end |
250 end |
251 |
251 |
252 function onNewTurn() |
252 function onNewTurn() |
253 if CurrentHedgehog == director.gear or CurrentHedgehog == doctor.gear then |
253 if CurrentHedgehog == director.gear or CurrentHedgehog == doctor.gear then |
254 TurnTimeLeft = 0 |
254 EndTurn(true) |
255 end |
255 end |
256 if guard1.keepTurning then |
256 if guard1.keepTurning then |
257 AnimSwitchHog(hero.gear) |
257 AnimSwitchHog(hero.gear) |
258 TurnTimeLeft = -1 |
258 TurnTimeLeft = -1 |
259 end |
259 end |
348 AnimSay(gear,loc("Now I have to climb these trees"), SAY_SAY, 4000) |
348 AnimSay(gear,loc("Now I have to climb these trees"), SAY_SAY, 4000) |
349 AnimCaption(hero.gear, loc("Use the rope to get to the crate"), 4000) |
349 AnimCaption(hero.gear, loc("Use the rope to get to the crate"), 4000) |
350 end |
350 end |
351 |
351 |
352 function heroAtSaucerPosition(gear) |
352 function heroAtSaucerPosition(gear) |
353 TurnTimeLeft = 0 |
353 EndTurn(true) |
354 -- save check point |
354 -- save check point |
355 SaveCampaignVar("CosmosCheckPoint", "2") |
355 SaveCampaignVar("CosmosCheckPoint", "2") |
356 checkPointReached = 2 |
356 checkPointReached = 2 |
357 AddAnim(dialog02) |
357 AddAnim(dialog02) |
358 -- check if he was spotted by the guard |
358 -- check if he was spotted by the guard |
604 ------------------- custom "animation" functions -------------------------- |
604 ------------------- custom "animation" functions -------------------------- |
605 |
605 |
606 function startCombat() |
606 function startCombat() |
607 -- use this so guard2 will gain control |
607 -- use this so guard2 will gain control |
608 AnimSwitchHog(hero.gear) |
608 AnimSwitchHog(hero.gear) |
609 TurnTimeLeft = 0 |
609 EndTurn(true) |
610 end |
610 end |
611 |
611 |
612 function sendStats(planetMsg) |
612 function sendStats(planetMsg) |
613 SendStat(siGameResult, planetMsg) |
613 SendStat(siGameResult, planetMsg) |
614 SendStat(siCustomAchievement, loc("Return to the mission menu by pressing the \"Go back\" button.")) |
614 SendStat(siCustomAchievement, loc("Return to the mission menu by pressing the \"Go back\" button.")) |