260 |
260 |
261 end |
261 end |
262 |
262 |
263 function countBodies() |
263 function countBodies() |
264 if killsCounter == 2 then |
264 if killsCounter == 2 then |
265 AddCaption(loc("Double kill!"), 0xFFFFFFFF, capgrpGameState ) |
265 AddCaption(loc("Double kill!"), capcolDefault, capgrpGameState ) |
266 elseif killsCounter == 3 then |
266 elseif killsCounter == 3 then |
267 AddCaption(loc("Mega kill!"), 0xFFFFFFFF, capgrpGameState ) |
267 AddCaption(loc("Mega kill!"), capcolDefault, capgrpGameState ) |
268 PlaySound(sndRegret) |
268 PlaySound(sndRegret) |
269 elseif killsCounter == 4 then |
269 elseif killsCounter == 4 then |
270 AddCaption(loc("Ultra kill!"), 0xFFFFFFFF, capgrpGameState ) |
270 AddCaption(loc("Ultra kill!"), capcolDefault, capgrpGameState ) |
271 elseif killsCounter == 5 then |
271 elseif killsCounter == 5 then |
272 AddCaption(loc("Monster kill!"), 0xFFFFFFFF, capgrpGameState ) |
272 AddCaption(loc("Monster kill!"), capcolDefault, capgrpGameState ) |
273 PlaySound(sndIllGetYou) |
273 PlaySound(sndIllGetYou) |
274 elseif killsCounter == 6 then |
274 elseif killsCounter == 6 then |
275 AddCaption(loc("Ludicrous kill!"), 0xFFFFFFFF, capgrpGameState ) |
275 AddCaption(loc("Ludicrous kill!"), capcolDefault, capgrpGameState ) |
276 PlaySound(sndNutter) |
276 PlaySound(sndNutter) |
277 elseif killsCounter == 7 then |
277 elseif killsCounter == 7 then |
278 AddCaption(loc("Holy shit!"), 0xFFFFFFFF, capgrpGameState ) |
278 AddCaption(loc("Holy shit!"), capcolDefault, capgrpGameState ) |
279 PlaySound(sndLaugh) |
279 PlaySound(sndLaugh) |
280 elseif killsCounter > 8 then |
280 elseif killsCounter > 8 then |
281 AddCaption(loc("Insanity!"), 0xFFFFFFFF, capgrpGameState ) |
281 AddCaption(loc("Insanity!"), capcolDefault, capgrpGameState ) |
282 end |
282 end |
283 |
283 |
284 if killsCounter > recordKills then |
284 if killsCounter > recordKills then |
285 recordKills = killsCounter |
285 recordKills = killsCounter |
286 recordKillsHogName = getGearValue(CurrentHedgehog, "Name") |
286 recordKillsHogName = getGearValue(CurrentHedgehog, "Name") |
722 elseif GetGearType(gear) == gtATFinishGame then |
722 elseif GetGearType(gear) == gtATFinishGame then |
723 if not gameOver then |
723 if not gameOver then |
724 local winner = createEndGameStats() |
724 local winner = createEndGameStats() |
725 if winner then |
725 if winner then |
726 SendStat(siGameResult, string.format(loc("%s wins!"), winner)) |
726 SendStat(siGameResult, string.format(loc("%s wins!"), winner)) |
727 AddCaption(string.format(loc("%s wins!"), winner), 0xFFFFFFFF, capgrpGameState) |
727 AddCaption(string.format(loc("%s wins!"), winner), capcolDefault, capgrpGameState) |
728 end |
728 end |
729 gameOver = true |
729 gameOver = true |
730 end |
730 end |
731 end |
731 end |
732 end |
732 end |