share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
changeset 11907 ce9e0f8e43f4
parent 11906 0e943402b94f
child 12079 8f222872d432
equal deleted inserted replaced
11906:0e943402b94f 11907:ce9e0f8e43f4
   183 		fIsMissing[bbq] = false
   183 		fIsMissing[bbq] = false
   184 		fNeedsRespawn[bbq] = true
   184 		fNeedsRespawn[bbq] = true
   185 		fCaptures[wtf] = fCaptures[wtf] +1
   185 		fCaptures[wtf] = fCaptures[wtf] +1
   186 		AddCaption(string.format(loc("%s has scored!"), GetHogName(CurrentHedgehog)))
   186 		AddCaption(string.format(loc("%s has scored!"), GetHogName(CurrentHedgehog)))
   187 		showMissionAndScorebar()
   187 		showMissionAndScorebar()
   188 		PlaySound(sndVictory)
   188 		PlaySound(sndHomerun)
   189 		fThief[bbq] = nil -- player no longer has the enemy flag
   189 		fThief[bbq] = nil -- player no longer has the enemy flag
   190 		CheckScore(wtf)
   190 		CheckScore(wtf)
   191 
   191 
   192 	--if the player is returning the flag
   192 	--if the player is returning the flag
   193 	elseif (GetHogClan(CurrentHedgehog) == wtf) and (fIsMissing[wtf] == true) then
   193 	elseif (GetHogClan(CurrentHedgehog) == wtf) and (fIsMissing[wtf] == true) then