412 heroAtAntiFlyArea = false |
412 heroAtAntiFlyArea = false |
413 AddAmmo(hero.gear, amJetpack, 99) |
413 AddAmmo(hero.gear, amJetpack, 99) |
414 end |
414 end |
415 |
415 |
416 function heroDeath(gear) |
416 function heroDeath(gear) |
417 SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1 |
417 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
418 SendStat('siCustomAchievement', loc("To win the game you have to go next to Thanta")) --11 |
418 SendStat(siCustomAchievement, loc("To win the game you have to go next to Thanta")) |
419 SendStat('siCustomAchievement', loc("Most of the time you'll be able to use only the icegun")) --11 |
419 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use only the icegun")) |
420 SendStat('siCustomAchievement', loc("Use the bazooka and the flying saucer to get the icegun")) --11 |
420 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the icegun")) |
421 SendStat('siPlayerKills','1',teamB.name) |
421 SendStat(siPlayerKills,'1',teamB.name) |
422 SendStat('siPlayerKills','0',teamC.name) |
422 SendStat(siPlayerKills,'0',teamC.name) |
423 EndGame() |
423 EndGame() |
424 end |
424 end |
425 |
425 |
426 function heroFinalStep(gear) |
426 function heroFinalStep(gear) |
427 heroAtFinalStep = true |
427 heroAtFinalStep = true |
438 function heroAtIceGun(gear) |
438 function heroAtIceGun(gear) |
439 iceGunTaken=true |
439 iceGunTaken=true |
440 end |
440 end |
441 |
441 |
442 function thantaDeath(gear) |
442 function thantaDeath(gear) |
443 SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1 |
443 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
444 SendStat('siCustomAchievement', loc("Noooo, Thanta has to stay alive!")) --11 |
444 SendStat(siCustomAchievement, loc("Noooo, Thanta has to stay alive!")) |
445 SendStat('siCustomAchievement', loc("To win the game you have to go next to Thanta")) --11 |
445 SendStat(siCustomAchievement, loc("To win the game you have to go next to Thanta")) |
446 SendStat('siCustomAchievement', loc("Most of the time you'll be able to use only the icegun")) --11 |
446 SendStat(siCustomAchievement, loc("Most of the time you'll be able to use only the icegun")) |
447 SendStat('siCustomAchievement', loc("Use the bazooka and the flying saucer to get the icegun")) --11 |
447 SendStat(siCustomAchievement, loc("Use the bazooka and the flying saucer to get the icegun")) |
448 SendStat('siPlayerKills','1',teamB.name) |
448 SendStat(siPlayerKills,'1',teamB.name) |
449 SendStat('siPlayerKills','0',teamC.name) |
449 SendStat(siPlayerKills,'0',teamC.name) |
450 EndGame() |
450 EndGame() |
451 end |
451 end |
452 |
452 |
453 function heroWin(gear) |
453 function heroWin(gear) |
454 TurnTimeLeft=0 |
454 TurnTimeLeft=0 |
503 |
503 |
504 -------------- Other Functions ------------------- |
504 -------------- Other Functions ------------------- |
505 |
505 |
506 function actionsOnWin() |
506 function actionsOnWin() |
507 saveCompletedStatus(4) |
507 saveCompletedStatus(4) |
508 SendStat('siGameResult', loc("Congratulations, you got the part!")) --1 |
508 SendStat(siGameResult, loc("Congratulations, you got the part!")) |
509 SendStat('siCustomAchievement', loc("At the end of the game your health was ")..GetHealth(hero.gear)) --11 |
509 SendStat(siCustomAchievement, loc("At the end of the game your health was ")..GetHealth(hero.gear)) |
510 -- maybe add number of tries for each part? |
510 -- maybe add number of tries for each part? |
511 SendStat('siPlayerKills','1',teamC.name) |
511 SendStat(siPlayerKills,'1',teamC.name) |
512 SendStat('siPlayerKills','0',teamB.name) |
512 SendStat(siPlayerKills,'0',teamB.name) |
513 EndGame() |
513 EndGame() |
514 end |
514 end |