equal
deleted
inserted
replaced
141 AnimInit(true) |
141 AnimInit(true) |
142 AnimationSetup() |
142 AnimationSetup() |
143 end |
143 end |
144 |
144 |
145 function onGameStart() |
145 function onGameStart() |
|
146 ShowMission(unpack(goals[dialog01])) |
|
147 HideMission() |
146 AnimWait(hero.gear, 3000) |
148 AnimWait(hero.gear, 3000) |
147 FollowGear(hero.gear) |
149 FollowGear(hero.gear) |
148 |
150 |
149 AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0) |
151 AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0) |
150 AddEvent(onEnemiesDeath, {hero.gear}, enemiesDeath, {hero.gear}, 0) |
152 AddEvent(onEnemiesDeath, {hero.gear}, enemiesDeath, {hero.gear}, 0) |
271 |
273 |
272 -------------- ACTIONS ------------------ |
274 -------------- ACTIONS ------------------ |
273 |
275 |
274 function heroDeath(gear) |
276 function heroDeath(gear) |
275 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
277 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
276 SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies.")) |
278 SendStat(siCustomAchievement, loc("To win the game you have to eliminate Professor Hogevil.")) |
277 sendSimpleTeamRankings({teamC.name, teamA.name, teamB.name}) |
279 sendSimpleTeamRankings({teamC.name, teamA.name, teamB.name}) |
278 EndGame() |
280 EndGame() |
279 end |
281 end |
280 |
282 |
281 function enemiesDeath(gear) |
283 function enemiesDeath(gear) |