share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 12962 52c12029c7bd
parent 12424 b9cc405541c1
child 12963 544c4302efe4
equal deleted inserted replaced
12961:1940f662b8c5 12962:52c12029c7bd
   326 
   326 
   327                 if dist < (NR*NR) then
   327                 if dist < (NR*NR) then
   328                 --if dist < (wpRad*wpRad) then
   328                 --if dist < (wpRad*wpRad) then
   329                         --AddCaption("howdy")
   329                         --AddCaption("howdy")
   330                         wpCol[i] = GetClanColor(GetHogClan(CurrentHedgehog)) -- new                             --GetClanColor(1)
   330                         wpCol[i] = GetClanColor(GetHogClan(CurrentHedgehog)) -- new                             --GetClanColor(1)
   331                         SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 20, 100, 1, 10, 0, wpRad, 5, wpCol[i])
   331                         SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 64, 64, 1, 10, 0, wpRad, 5, wpCol[i])
   332 
   332 
   333                         wpRem = 0
   333                         wpRem = 0
   334                         for k = 0, (wpCount-1) do
   334                         for k = 0, (wpCount-1) do
   335                                 if wpActive[k] == false then
   335                                 if wpActive[k] == false then
   336                                         wpRem = wpRem + 1
   336                                         wpRem = wpRem + 1
   657             wpX[wpCount] = x
   657             wpX[wpCount] = x
   658             wpY[wpCount] = y
   658             wpY[wpCount] = y
   659             wpCol[wpCount] = 0xffffffff
   659             wpCol[wpCount] = 0xffffffff
   660             wpCirc[wpCount] = AddVisualGear(wpX[wpCount],wpY[wpCount],vgtCircle,0,true)
   660             wpCirc[wpCount] = AddVisualGear(wpX[wpCount],wpY[wpCount],vgtCircle,0,true)
   661 
   661 
   662             SetVisualGearValues(wpCirc[wpCount], wpX[wpCount], wpY[wpCount], 20, 100, 1, 10, 0, wpRad, 5, wpCol[wpCount])
   662             SetVisualGearValues(wpCirc[wpCount], wpX[wpCount], wpY[wpCount], 164, 224, 1, 10, 0, wpRad, 5, wpCol[wpCount])
   663 
   663 
   664             wpCount = wpCount + 1
   664             wpCount = wpCount + 1
   665 
   665 
   666             --AddCaption(loc("Waypoint placed.") .. " " .. loc("Available points remaining: ") .. (wpLimit-wpCount))
   666             --AddCaption(loc("Waypoint placed.") .. " " .. loc("Available points remaining: ") .. (wpLimit-wpCount))
   667         end
   667         end
  1033 
  1033 
  1034         -- Set the waypoints to unactive on new round
  1034         -- Set the waypoints to unactive on new round
  1035         for i = 0,(wpCount-1) do
  1035         for i = 0,(wpCount-1) do
  1036                 wpActive[i] = false
  1036                 wpActive[i] = false
  1037                 wpCol[i] = 0xffffffff
  1037                 wpCol[i] = 0xffffffff
  1038                 SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 20, 100, 1, 10, 0, wpRad, 5, wpCol[i])
  1038                 SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 164, 224, 1, 10, 0, wpRad, 5, wpCol[i])
  1039         end
  1039         end
  1040 
  1040 
  1041         -- Handle Starting Stage of Game
  1041         -- Handle Starting Stage of Game
  1042         if (gameOver == false) and (gameBegun == false) then
  1042         if (gameOver == false) and (gameBegun == false) then
  1043                -- if wpCount >= 3 then
  1043                -- if wpCount >= 3 then