Also preview waypoints
authornemo
Mon, 25 May 2015 16:40:04 -0400
changeset 10961 b30f29396f0c
parent 10959 1225f42f61e2
child 10962 91d256bbd840
Also preview waypoints
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
share/hedgewars/Data/Scripts/TechMaps.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Mon May 25 15:48:07 2015 -0400
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Mon May 25 16:40:04 2015 -0400
@@ -62,7 +62,7 @@
 HedgewarsScriptLoad("/Scripts/OfficialChallenges.lua")
 HedgewarsScriptLoad("/Scripts/Tracker.lua")
 HedgewarsScriptLoad("/Scripts/Params.lua")
-HedgewarsScriptLoad("/Scripts/TechMapsDev.lua")
+HedgewarsScriptLoad("/Scripts/TechMaps.lua")
 
 ------------------
 -- Got Variables?
--- a/share/hedgewars/Data/Scripts/TechMaps.lua	Mon May 25 15:48:07 2015 -0400
+++ b/share/hedgewars/Data/Scripts/TechMaps.lua	Mon May 25 16:40:04 2015 -0400
@@ -26,6 +26,16 @@
 function LoadSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags)
 	PlaceSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags)
 end
+function PreviewWayPoint(x,y)
+    AddPoint(x,y,20)
+    AddPoint(x,y,19,true)
+    for i = 0,100,50 do 
+        AddPoint(x-120,y+i,1,true)
+        AddPoint(x+120,y-i)
+        AddPoint(x-i,y+120,1,true)
+        AddPoint(x+i,y-120)
+    end
+end
 
 function PreviewGirder(x, y, f)
     if f == 0 then
@@ -68,6 +78,15 @@
 	if mapID == 4 then
 	---nice rope and airmines landflag testmap
     -- it'd be nice if these coordinates were stored somewhere generic so they didn't have to be edited twice. Some map array or something
+	PreviewWayPoint(337, 533)
+	PreviewWayPoint(1069, 1367)
+	PreviewWayPoint(884, 729)
+	PreviewWayPoint(1682, 464)
+	PreviewWayPoint(2773, 505)
+	PreviewWayPoint(3512, 929)
+	PreviewWayPoint(4002, 106)
+	PreviewWayPoint(3964, 1520)
+	PreviewWayPoint(2592, 1334)
 	PreviewGirder(194, 388, 7)
 	PreviewGirder(338, 334, 4)
 	PreviewGirder(484, 390, 5)