share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 10946 c6cf08ee999e
parent 10945 2570fcfddf2a
child 10950 356c8fb7fb56
equal deleted inserted replaced
10945:2570fcfddf2a 10946:c6cf08ee999e
     1 ------------------------------------------
     1 ------------------------------------------
     2 -- TECH RACER v0.5
     2 -- TECH RACER v0.6
     3 -----------------------------------------
     3 -----------------------------------------
     4 
     4 
     5 --------------
     5 --------------
     6 -- TO DO
     6 -- TO DO
     7 --------------
     7 --------------
    39 
    39 
    40 --------------
    40 --------------
    41 --0.5
    41 --0.5
    42 --------------
    42 --------------
    43 -- migrated maps to an external script
    43 -- migrated maps to an external script
       
    44 
       
    45 --------------
       
    46 --0.6
       
    47 --------------
       
    48 -- move 1 line of code :D (allows loading of HWMAP points to actually work)
    44 
    49 
    45 -----------------------------
    50 -----------------------------
    46 -- SCRIPT BEGINS
    51 -- SCRIPT BEGINS
    47 -----------------------------
    52 -----------------------------
    48 
    53 
   580 		activationStage = activationStage + 1
   585 		activationStage = activationStage + 1
   581 
   586 
   582 	-- the creation stage, place girders and needed gears, grant ammo
   587 	-- the creation stage, place girders and needed gears, grant ammo
   583 	elseif activationStage == 2 then
   588 	elseif activationStage == 2 then
   584 
   589 
       
   590 		InterpretPoints()
       
   591 
   585 		-- these are from onParameters()
   592 		-- these are from onParameters()
   586 		if (mapID == nil) or (mapID == 0) then
   593 		if (mapID == nil) or (mapID == 0) then
   587 			LoadMap(2000)
   594 			LoadMap(2000)
   588 		else
   595 		else
   589 			LoadMap(mapID)
   596 			LoadMap(mapID)
   838 
   845 
   839 		roundN = 0
   846 		roundN = 0
   840         lastRound = TotalRounds
   847         lastRound = TotalRounds
   841         RoundHasChanged = false -- true
   848         RoundHasChanged = false -- true
   842 
   849 
   843         InterpretPoints()
   850 	    RebuildTeamInfo()
   844 
       
   845         RebuildTeamInfo()
       
   846 
   851 
   847 		for i=0 , TeamsCount - 1 do
   852 		for i=0 , TeamsCount - 1 do
   848 			cnthhs = 0
   853 			cnthhs = 0
   849 			runOnHogsInTeam(limitHogs, teamNameArr[i])
   854 			runOnHogsInTeam(limitHogs, teamNameArr[i])
   850 		end
   855 		end