share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
changeset 13643 690cc84e9fd6
parent 13220 1c390781f72f
child 13685 09ea1faf97ca
equal deleted inserted replaced
13642:3d14950641a4 13643:690cc84e9fd6
   233 
   233 
   234     trackTeams()
   234     trackTeams()
   235     killsCounter = 0
   235     killsCounter = 0
   236 
   236 
   237     if mutant == nil then
   237     if mutant == nil then
   238         AddCaption( loc("First killer will mutate"), 0xFFFFFFFF, capgrpGameState )
   238         AddCaption( loc("First killer will mutate"), capcolDefault, capgrpGameState )
   239     end
   239     end
   240 
   240 
   241     checkScore()
   241     checkScore()
   242 
   242 
   243     for i=0, TeamsCount-1 do
   243     for i=0, TeamsCount-1 do
   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