440 function heroDeath(gear) |
440 function heroDeath(gear) |
441 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
441 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
442 SendStat(siCustomAchievement, loc("To win the game you have to stand next to Thanta.")) |
442 SendStat(siCustomAchievement, loc("To win the game you have to stand next to Thanta.")) |
443 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
443 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
444 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
444 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
445 SendStat(siPlayerKills,'1',teamB.name) |
445 sendSimpleTeamRankings({teamB.name, teamC.name}) |
446 SendStat(siPlayerKills,'0',teamC.name) |
|
447 EndGame() |
446 EndGame() |
448 end |
447 end |
449 |
448 |
450 function heroFinalStep(gear) |
449 function heroFinalStep(gear) |
451 heroAtFinalStep = true |
450 heroAtFinalStep = true |
472 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
471 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
473 SendStat(siCustomAchievement, loc("Noo, Thanta has to stay alive!")) |
472 SendStat(siCustomAchievement, loc("Noo, Thanta has to stay alive!")) |
474 SendStat(siCustomAchievement, loc("To win the game you have to go next to Thanta.")) |
473 SendStat(siCustomAchievement, loc("To win the game you have to go next to Thanta.")) |
475 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
474 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use the freezer only.")) |
476 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
475 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the freezer.")) |
477 SendStat(siPlayerKills,'1',teamB.name) |
476 sendSimpleTeamRankings({teamB.name, teamC.name}) |
478 SendStat(siPlayerKills,'0',teamC.name) |
|
479 EndGame() |
477 EndGame() |
480 end |
478 end |
481 |
479 |
482 function heroWin(gear) |
480 function heroWin(gear) |
483 SetGearMessage(gear, 0) |
481 SetGearMessage(gear, 0) |
542 |
540 |
543 saveCompletedStatus(4) |
541 saveCompletedStatus(4) |
544 SendStat(siGameResult, loc("Congratulations, you acquired the device part!")) |
542 SendStat(siGameResult, loc("Congratulations, you acquired the device part!")) |
545 SendStat(siCustomAchievement, string.format(loc("At the end of the game your health was %d."), GetHealth(hero.gear))) |
543 SendStat(siCustomAchievement, string.format(loc("At the end of the game your health was %d."), GetHealth(hero.gear))) |
546 -- maybe add number of tries for each part? |
544 -- maybe add number of tries for each part? |
547 SendStat(siPlayerKills,'1',teamC.name) |
545 sendSimpleTeamRankings({teamC.name, teamB.name}) |
548 SendStat(siPlayerKills,'0',teamB.name) |
|
549 resetCheckpoint() -- reset this mission |
546 resetCheckpoint() -- reset this mission |
550 EndGame() |
547 EndGame() |
551 end |
548 end |