Remove unused flamer code from Space Invasion
authorWuzzy <almikes@aol.com>
Thu, 24 Nov 2016 04:24:56 +0100
changeset 12058 1ebda99fd34a
parent 12057 1ee28630d424
child 12059 e8458438dcee
Remove unused flamer code from Space Invasion
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 04:21:34 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 04:24:56 2016 +0100
@@ -1006,54 +1006,6 @@
 -- action keys
 -----------------------
 
-function HandleFlameThrower()
-
-	--
-	--flamer
-
-	fireTimer = fireTimer + 1
-	if fireTimer == 6 then	-- 6
-		fireTimer = 0
-
-		if (wep[wepIndex] == loc("Flamer") ) and (preciseOn == true) and (wepAmmo[wepIndex] > 0) and (stopMovement == false) and (tumbleStarted == true) then
-
-			wepAmmo[wepIndex] = wepAmmo[wepIndex] - 1
-			AddCaption(
-			loc("Flamer") .. ": " ..
-			(wepAmmo[wepIndex]/800*100) - (wepAmmo[wepIndex]/800*100)%2 .. "%",
-			wepCol[2],
-			capgrpMessage2
-			)
-			DrawTag(3)
-
-			dx, dy = GetGearVelocity(CurrentHedgehog)
-			shell = AddGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), gtFlame, 0, 0, 0, 0)
-
-			xdev = 1 + GetRandom(35)
-			xdev = xdev / 100
-
-			r = GetRandom(2)
-			if r == 1 then
-				xdev = xdev*-1
-			end
-
-			ydev = 1 + GetRandom(35)
-			ydev = ydev / 100
-
-			r = GetRandom(2)
-			if r == 1 then
-				ydev = ydev*-1
-			end
-
-			SetGearVelocity(shell, (dx*4.5)+(xdev*fMod), (dy*4.5)+(ydev*fMod))
-
-		end
-
-	end
-
-
-end
-
 function ChangeWeapon()
 
 	wepIndex = wepIndex + 1
@@ -1511,7 +1463,7 @@
 				boosterOn = false
 				beam = false
 				upOn = false
-				down = false
+				downOn = false
 				leftOn = false
 				rightOn = false
 				SetMyCircles(false)
@@ -1645,9 +1597,6 @@
 			end
 
 
-			HandleFlameThrower()
-
-
 		end -- new end I put here to check if he's still alive or not
 
 	end