Turn invaders white in Space Invasion when round is over
authorWuzzy <almikes@aol.com>
Thu, 24 Nov 2016 05:35:21 +0100
changeset 12066 5beaf30c1cef
parent 12065 3ffb261af4e8
child 12067 3d03e9294633
Turn invaders white in Space Invasion when round is over
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 05:08:04 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 05:35:21 2016 +0100
@@ -1476,6 +1476,7 @@
 				rightOn = false
 				SetMyCircles(false)
 				rAlpha = 255
+				FailGraphics()
 				--nw WriteLnToConsole("Player is out of luck")
 
 				if shieldMiser == true then
@@ -2043,12 +2044,20 @@
 
 	playerIsFine = false
 	AddCaption(loc("GOTCHA!"))
+	FailGraphics()
 	PlaySound(sndHellish)
 
 	targetHit = true
 
 end
 
+-- Turn all circles white to indicate they can't be hit anymore
+function FailGraphics()
+	for i = 0,(vCCount-1) do
+		vCircCol[i] = 0xffffffff
+	end
+end
+
 --- collision detection for weapons fire
 function CheckVarious(gear)