CTF: Remove tardis and resurrector
authorWuzzy <Wuzzy2@mail.ru>
Thu, 08 Mar 2018 01:22:00 +0100
changeset 13108 cf2a58dccc4a
parent 13107 a4872ca7f17c
child 13109 e0ec37c8104d
CTF: Remove tardis and resurrector
ChangeLog.txt
share/hedgewars/Data/Maps/Control/map.lua
share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
--- a/ChangeLog.txt	Thu Mar 08 01:12:35 2018 +0100
+++ b/ChangeLog.txt	Thu Mar 08 01:22:00 2018 +0100
@@ -49,7 +49,7 @@
  + Battalion (King Mode): If the king dies, the hogs die normally instead of disappearing
  + Space Invasion: Add a default Space Invasion game scheme
  + HedgeEditor: Show cursor coordinates in top left corner
- + Control: Remove TimeBox and Resurrector from ammo menu
+ + Control, Capture the Flag: Always remove TimeBox and Resurrector
  * Battalion: Some texts in the mission panel were wrong and misleading
  * Construction Mode: Remove drill strike if added by weapon scheme (it's broken)
 
--- a/share/hedgewars/Data/Maps/Control/map.lua	Thu Mar 08 01:12:35 2018 +0100
+++ b/share/hedgewars/Data/Maps/Control/map.lua	Thu Mar 08 01:22:00 2018 +0100
@@ -319,7 +319,7 @@
 	-- Things we don't modify here will use their default values.
 	
 	EnableGameFlags(gfInfAttack, gfSolidLand)
-	DisableGameFlags(gfKing, gfForts)
+	DisableGameFlags(gfKing, gfForts, gfAISurvival)
 	WaterRise = 0
 	HealthDecrease = 0
 
--- a/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Thu Mar 08 01:12:35 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Thu Mar 08 01:22:00 2018 +0100
@@ -461,7 +461,7 @@
 
 function onGameInit()
 
-	DisableGameFlags(gfKing)
+	DisableGameFlags(gfKing, gfAISurvival)
 	EnableGameFlags(gfDivideTeams)
 
 	-- Disable Sudden Death
@@ -523,6 +523,13 @@
 
 	--SetVisualGearValues(zxc, 1000,1000, 20, 255, 1,    10,                     0,         200,        1,      GetClanColor(0))
 					--minO,max0 -glowyornot	--pulsate timer	 -- fuckall      -- radius -- width  -- colour
+	for h=1, numhhs do
+		-- Tardis causes too many unexpected situations, so we forbid it
+		AddAmmo(hhs[h], amTardis, 0)
+		-- Hogs are resurrected for free, so this is pointless
+		AddAmmo(hhs[h], amResurrector, 0)
+	end
+
 end
 
 
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Mar 08 01:12:35 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Mar 08 01:22:00 2018 +0100
@@ -849,6 +849,8 @@
         end
 
         AddAmmo(CurrentHedgehog, amTardis, 0)
+        AddAmmo(CurrentHedgehog, amResurrector, 0)
+        AddAmmo(CurrentHedgehog, amInvulnerable, 0)
         AddAmmo(CurrentHedgehog, amDrillStrike, 0)
         AddAmmo(CurrentHedgehog, amMineStrike, 0)
         AddAmmo(CurrentHedgehog, amNapalm, 0)