share/hedgewars/Data/Maps/Control/map.lua
changeset 13102 a4872ca7f17c
parent 13019 880662cf41ee
child 13103 cf2a58dccc4a
equal deleted inserted replaced
13101:b500d07a50a1 13102:a4872ca7f17c
   315 end
   315 end
   316 
   316 
   317 function onGameInit()
   317 function onGameInit()
   318 
   318 
   319 	-- Things we don't modify here will use their default values.
   319 	-- Things we don't modify here will use their default values.
   320 	--GameFlags = gfInfAttack + gfSolidLand -- Game settings and rules
       
   321 	
   320 	
   322 	GameFlags = band(bor(GameFlags, gfInfAttack + gfSolidLand), bnot(gfKing + gfForts))
   321 	EnableGameFlags(gfInfAttack, gfSolidLand)
       
   322 	DisableGameFlags(gfKing, gfForts)
   323 	WaterRise = 0
   323 	WaterRise = 0
   324 	HealthDecrease = 0
   324 	HealthDecrease = 0
   325 
   325 
   326 end
   326 end
   327 
   327 
   381 			--SetGearPosition(hhs[0], 631, 82) -- put this in here to thwart attempts at repositioning and test sanity limit	
   381 			--SetGearPosition(hhs[0], 631, 82) -- put this in here to thwart attempts at repositioning and test sanity limit	
   382 		else
   382 		else
   383 			reN = 15		
   383 			reN = 15		
   384 		end
   384 		end
   385 		--AddCaption(zz) -- number of times it took to work
   385 		--AddCaption(zz) -- number of times it took to work
       
   386 	end
       
   387 
       
   388 	for h=1, numhhs do
       
   389 		-- Tardis screws up the game too much, teams might not get killed correctly after victory
       
   390 		-- if a hog is still in time-travel.
       
   391 		-- This could be fixed, removing the Tardis is just a simple and lazy fix.
       
   392 		AddAmmo(hhs[h], amTardis, 0)
       
   393 		-- Resurrector is pointless, all hogs are already automatically resurrected.
       
   394 		AddAmmo(hhs[h], amResurrector, 0)
   386 	end
   395 	end
   387 
   396 
   388 	ShowMission(missionName, missionCaption, missionHelp, 0, 0)
   397 	ShowMission(missionName, missionCaption, missionHelp, 0, 0)
   389 
   398 
   390 end
   399 end