326 AddAnim(dialog02) |
326 AddAnim(dialog02) |
327 end |
327 end |
328 end |
328 end |
329 |
329 |
330 function heroDeath(gear) |
330 function heroDeath(gear) |
331 SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1 |
331 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
332 SendStat('siCustomAchievement', loc("You have to get the weapons and rescue the PAotH researchers")) --11 |
332 SendStat(siCustomAchievement, loc("You have to get the weapons and rescue the PAotH researchers")) |
333 SendStat('siPlayerKills','1',teamC.name) |
333 SendStat(siPlayerKills,'1',teamC.name) |
334 SendStat('siPlayerKills','0',teamD.name) |
334 SendStat(siPlayerKills,'0',teamD.name) |
335 EndGame() |
335 EndGame() |
336 end |
336 end |
337 |
337 |
338 function battleZone(gear) |
338 function battleZone(gear) |
339 TurnTimeLeft = 0 |
339 TurnTimeLeft = 0 |
362 ParseCommand("teamgone " .. teamB.name) |
362 ParseCommand("teamgone " .. teamB.name) |
363 AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000) |
363 AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000) |
364 AnimWait(hero.gear,5000) |
364 AnimWait(hero.gear,5000) |
365 |
365 |
366 saveCompletedStatus(1) |
366 saveCompletedStatus(1) |
367 SendStat('siGameResult', loc("Hog Solo win, conrgatulations!")) --1 |
367 SendStat(siGameResult, loc("Hog Solo win, conrgatulations!")) |
368 SendStat('siCustomAchievement', loc("Eliminated the professor Hogevil")) --11 |
368 SendStat(siCustomAchievement, loc("Eliminated the professor Hogevil")) |
369 SendStat('siCustomAchievement', loc("Drove the minions away")) --11 |
369 SendStat(siCustomAchievement, loc("Drove the minions away")) |
370 SendStat('siPlayerKills','1',teamD.name) |
370 SendStat(siPlayerKills,'1',teamD.name) |
371 SendStat('siPlayerKills','0',teamC.name) |
371 SendStat(siPlayerKills,'0',teamC.name) |
372 SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels |
372 SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels |
373 EndGame() |
373 EndGame() |
374 end |
374 end |
375 |
375 |
376 function minionsDeath(gear) |
376 function minionsDeath(gear) |
379 ParseCommand("teamgone " .. teamC.name) |
379 ParseCommand("teamgone " .. teamC.name) |
380 AnimCaption(hero.gear, loc("Congrats! You won!"), 6000) |
380 AnimCaption(hero.gear, loc("Congrats! You won!"), 6000) |
381 AnimWait(hero.gear,5000) |
381 AnimWait(hero.gear,5000) |
382 |
382 |
383 saveCompletedStatus(1) |
383 saveCompletedStatus(1) |
384 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
384 SendStat(siGameResult, loc("Congratulations, you won!")) |
385 SendStat('siCustomAchievement', loc("Eliminated the evil minions")) --11 |
385 SendStat(siCustomAchievement, loc("Eliminated the evil minions")) |
386 SendStat('siCustomAchievement', loc("Drove the professor away")) --11 |
386 SendStat(siCustomAchievement, loc("Drove the professor away")) |
387 SendStat('siPlayerKills','1',teamD.name) |
387 SendStat(siPlayerKills,'1',teamD.name) |
388 SendStat('siPlayerKills','0',teamC.name) |
388 SendStat(siPlayerKills,'0',teamC.name) |
389 SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels |
389 SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels |
390 EndGame() |
390 EndGame() |
391 end |
391 end |
392 |
392 |
393 -------------- ANIMATIONS ------------------ |
393 -------------- ANIMATIONS ------------------ |