Make decorational visual gears in Space Invasion non-critical
authorWuzzy <Wuzzy2@mail.ru>
Tue, 21 Aug 2018 21:00:01 +0200
changeset 13685 a2f0cb003d7d
parent 13684 be245325891e
child 13686 5662360f6a4a
Make decorational visual gears in Space Invasion non-critical
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Tue Aug 21 19:52:39 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Tue Aug 21 21:00:01 2018 +0200
@@ -1224,7 +1224,7 @@
 		if (TimeLeft <= 0) and (stopMovement == true) and (CurrentHedgehog ~= nil) then
 			local j,k = GetGearVelocity(CurrentHedgehog)
 			if (j ~= 0) and (k ~= 0) then
-				AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtSmoke, 0, true)
+				AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtSmoke, 0, false)
 			end
 		end
 
@@ -1357,7 +1357,7 @@
 				---------------
 				-- the trail lets you know you have 5s left to pilot, akin to birdy feathers
 				if (TimeLeft <= 5) and (TimeLeft > 0) then							--vgtSmoke
-					local tempE = AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtSmoke, 0, true)
+					local tempE = AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtSmoke, 0, false)
 					SetVisualGearValues(tempE, nil, nil, nil, nil, nil, nil, nil, nil, nil, GetClanColor(GetHogClan(CurrentHedgehog)) )
 				end
 				--------------
@@ -1935,7 +1935,7 @@
 		if beam == true then
 
 			if dist < 3000 then
-				local tempE = AddVisualGear(GetX(gear), GetY(gear), vgtSmoke, 0, true)
+				local tempE = AddVisualGear(GetX(gear), GetY(gear), vgtSmoke, 0, false)
 				SetVisualGearValues(tempE, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0xFF00FFFF)
 				PlaySound(sndVaporize)
 				DeleteGear(gear)
@@ -2095,12 +2095,12 @@
 				--vgtSmokeTrace
 				if vType[i] == "ammo" then
 
-					local tempE = AddVisualGear(vCircX[i], vCircY[i], vgtSmoke, 0, true)
+					local tempE = AddVisualGear(vCircX[i], vCircY[i], vgtSmoke, 0, false)
 					SetVisualGearValues(tempE, vCircX[i], vCircY[i], nil, nil, nil, nil, nil, nil, nil, vCircCol[i] )
 
 				elseif vType[i] == "bonus" then
 
-					local tempE = AddVisualGear(vCircX[i], vCircY[i], vgtDust, 0, true)
+					local tempE = AddVisualGear(vCircX[i], vCircY[i], vgtDust, 0, false)
 					SetVisualGearValues(tempE, vCircX[i], vCircY[i], nil, nil, nil, nil, nil, 1, nil, colorShieldParticle)
 
 
@@ -2110,13 +2110,13 @@
 					local g = vgtSteam
 					local trailColour = colorBossParticle
 
-					local tempE = AddVisualGear(vCircX[i], vCircY[i], g, 0, true)
+					local tempE = AddVisualGear(vCircX[i], vCircY[i], g, 0, false)
 					SetVisualGearValues(tempE, vCircX[i], vCircY[i]+k, nil, nil, nil, nil, nil, nil, nil, trailColour-75 )
 
-					tempE = AddVisualGear(vCircX[i], vCircY[i], g, 0, true)
+					tempE = AddVisualGear(vCircX[i], vCircY[i], g, 0, false)
 					SetVisualGearValues(tempE, vCircX[i]+k, vCircY[i]-k, nil, nil, nil, nil, nil, nil, nil, trailColour-75 )
 
-					tempE = AddVisualGear(vCircX[i], vCircY[i], g, 0, true)
+					tempE = AddVisualGear(vCircX[i], vCircY[i], g, 0, false)
 					SetVisualGearValues(tempE, vCircX[i]-k, vCircY[i]-k, nil, nil, nil, nil, nil, nil, nil, trailColour-75 )