share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 13711 d5f12b1d180d
parent 13710 0da36902e5b6
child 13769 e874bfe563c7
equal deleted inserted replaced
13710:0da36902e5b6 13711:d5f12b1d180d
   722 		-- Kill off all the losers
   722 		-- Kill off all the losers
   723 		for i = 0, (SI.numhhs-1) do
   723 		for i = 0, (SI.numhhs-1) do
   724 			if GetHogClan(SI.hhs[i]) ~= bestClan then
   724 			if GetHogClan(SI.hhs[i]) ~= bestClan then
   725 				SetEffect(SI.hhs[i], heResurrectable, 0)
   725 				SetEffect(SI.hhs[i], heResurrectable, 0)
   726 				SetHealth(SI.hhs[i],0)
   726 				SetHealth(SI.hhs[i],0)
       
   727 				-- hilarious loser face
       
   728 				SetState(SI.hhs[i], bor(GetState(SI.hhs[i]), gstLoser))
   727 			end
   729 			end
   728 		end
   730 		end
   729 
   731 
   730 		-- Game over
   732 		-- Game over
   731 		SI.gameOver = true
   733 		SI.gameOver = true