share/hedgewars/Data/Scripts/Multiplayer/Tumbler.lua
changeset 13643 690cc84e9fd6
parent 13581 9c8749bb0d06
child 13685 09ea1faf97ca
equal deleted inserted replaced
13642:3d14950641a4 13643:690cc84e9fd6
   914 
   914 
   915 		if GetHogTeamName(gear) ~= GetHogTeamName(CurrentHedgehog) then
   915 		if GetHogTeamName(gear) ~= GetHogTeamName(CurrentHedgehog) then
   916 
   916 
   917 			roundKills = roundKills + 1
   917 			roundKills = roundKills + 1
   918 			if roundKills == 2 then
   918 			if roundKills == 2 then
   919 				AddCaption(loc("Double Kill!"),0xffffffff,capgrpMessage2)
   919 				AddCaption(loc("Double Kill!"),capcolDefault,capgrpMessage2)
   920 			elseif roundKills == 3 then
   920 			elseif roundKills == 3 then
   921 				AddCaption(loc("Killing spree!"),0xffffffff,capgrpMessage2)
   921 				AddCaption(loc("Killing spree!"),capcolDefault,capgrpMessage2)
   922 			elseif roundKills >= 4 then
   922 			elseif roundKills >= 4 then
   923 				AddCaption(loc("Unstoppable!"),0xffffffff,capgrpMessage2)
   923 				AddCaption(loc("Unstoppable!"),capcolDefault,capgrpMessage2)
   924 			end
   924 			end
   925 
   925 
   926 		elseif gear == CurrentHedgehog then
   926 		elseif gear == CurrentHedgehog then
   927 			DisableTumbler()
   927 			DisableTumbler()
   928 
   928 
   929 		elseif gear ~= CurrentHedgehog then
   929 		elseif gear ~= CurrentHedgehog then
   930 			AddCaption(loc("Friendly Fire!"),0xffffffff,capgrpMessage2)
   930 			AddCaption(loc("Friendly Fire!"),capcolDefault,capgrpMessage2)
   931 		end
   931 		end
   932 
   932 
   933 	end
   933 	end
   934 
   934 
   935 	if CurrentHedgehog ~= nil then
   935 	if CurrentHedgehog ~= nil then