23 |
23 |
24 -- this handles interim lazy copypasta from HedgeEditor |
24 -- this handles interim lazy copypasta from HedgeEditor |
25 -- while I'm still messing with things |
25 -- while I'm still messing with things |
26 function LoadSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags) |
26 function LoadSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags) |
27 PlaceSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags) |
27 PlaceSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags) |
|
28 end |
|
29 function PreviewWayPoint(x,y) |
|
30 AddPoint(x,y,20) |
|
31 AddPoint(x,y,19,true) |
|
32 for i = 0,100,50 do |
|
33 AddPoint(x-120,y+i,1,true) |
|
34 AddPoint(x+120,y-i) |
|
35 AddPoint(x-i,y+120,1,true) |
|
36 AddPoint(x+i,y-120) |
|
37 end |
28 end |
38 end |
29 |
39 |
30 function PreviewGirder(x, y, f) |
40 function PreviewGirder(x, y, f) |
31 if f == 0 then |
41 if f == 0 then |
32 AddPoint(x-40,y,1) |
42 AddPoint(x-40,y,1) |
66 AddPoint(x*100,100,5) |
76 AddPoint(x*100,100,5) |
67 end |
77 end |
68 if mapID == 4 then |
78 if mapID == 4 then |
69 ---nice rope and airmines landflag testmap |
79 ---nice rope and airmines landflag testmap |
70 -- 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 |
80 -- 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 |
|
81 PreviewWayPoint(337, 533) |
|
82 PreviewWayPoint(1069, 1367) |
|
83 PreviewWayPoint(884, 729) |
|
84 PreviewWayPoint(1682, 464) |
|
85 PreviewWayPoint(2773, 505) |
|
86 PreviewWayPoint(3512, 929) |
|
87 PreviewWayPoint(4002, 106) |
|
88 PreviewWayPoint(3964, 1520) |
|
89 PreviewWayPoint(2592, 1334) |
71 PreviewGirder(194, 388, 7) |
90 PreviewGirder(194, 388, 7) |
72 PreviewGirder(338, 334, 4) |
91 PreviewGirder(338, 334, 4) |
73 PreviewGirder(484, 390, 5) |
92 PreviewGirder(484, 390, 5) |
74 PreviewGirder(139, 543, 6) |
93 PreviewGirder(139, 543, 6) |
75 PreviewGirder(544, 540, 6) |
94 PreviewGirder(544, 540, 6) |