;Maboloop Object 
;Object and textures (copyright) Alan Hudnott June 2010
;feel free to use this object in bve routes. 
;Delete the faces not required.
;If you require the full model, contact me via bve terminus personal message
;Please credit Alan Hudnott.


;LEFT GATE1 BEGINS;

createmeshbuilder
addvertex,-4.3,2,6
addvertex,-4.3,2,14
addvertex,-4.3,1.8,14
addvertex,-4.3,1.8,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,1.5,6
addvertex,-4.3,1.5,14
addvertex,-4.3,1.3,14
addvertex,-4.3,1.3,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,1,6
addvertex,-4.3,1,14
addvertex,-4.3,0.8,14
addvertex,-4.3,0.8,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,0.5,6
addvertex,-4.3,0.5,14
addvertex,-4.3,0.3,14
addvertex,-4.3,0.3,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,6
addvertex,-4.3,2,6.3
addvertex,-4.3,0.3,10
addvertex,-4.3,0.3,9.7
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,10
addvertex,-4.3,2,10.3
addvertex,-4.3,0.3,14
addvertex,-4.3,0.3,13.7
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,9.9
addvertex,-4.3,2,10.1
addvertex,-4.3,0.3,10.1
addvertex,-4.3,0.3,9.9
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,6
addvertex,-4.3,2,6.2
addvertex,-4.3,0.3,6.2
addvertex,-4.3,0.3,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,13.8
addvertex,-4.3,2,14
addvertex,-4.3,0.3,14
addvertex,-4.3,0.3,13.8
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

;LEFT GATE2 BEGINS;

createmeshbuilder
addvertex,-4.3,2,14
addvertex,-4.3,2,22
addvertex,-4.3,1.8,22
addvertex,-4.3,1.8,14
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,1.5,14
addvertex,-4.3,1.5,22
addvertex,-4.3,1.3,22
addvertex,-4.3,1.3,14
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,1,14
addvertex,-4.3,1,22
addvertex,-4.3,0.8,22
addvertex,-4.3,0.8,14
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,0.5,14
addvertex,-4.3,0.5,22
addvertex,-4.3,0.3,22
addvertex,-4.3,0.3,14
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,6
addvertex,-4.3,2,6.3
addvertex,-4.3,0.3,10
addvertex,-4.3,0.3,9.7
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,10
addvertex,-4.3,2,10.3
addvertex,-4.3,0.3,14
addvertex,-4.3,0.3,13.7
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,9.9
addvertex,-4.3,2,10.1
addvertex,-4.3,0.3,10.1
addvertex,-4.3,0.3,9.9
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,6
addvertex,-4.3,2,6.2
addvertex,-4.3,0.3,6.2
addvertex,-4.3,0.3,6
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,2,13.8
addvertex,-4.3,2,14
addvertex,-4.3,0.3,14
addvertex,-4.3,0.3,13.8
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

;RIGHT GATE 1 BEGINS;

createmeshbuilder
addvertex,7,2,6
addvertex,7,2,14
addvertex,7,1.8,14
addvertex,7,1.8,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,1.5,6
addvertex,7,1.5,14
addvertex,7,1.3,14
addvertex,7,1.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,1,6
addvertex,7,1,14
addvertex,7,0.8,14
addvertex,7,0.8,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,0.5,6
addvertex,7,0.5,14
addvertex,7,0.3,14
addvertex,7,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255


createmeshbuilder
addvertex,7,2,6
addvertex,7,2,6.3
addvertex,7,0.3,10
addvertex,7,0.3,9.7
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,10
addvertex,7,2,10.3
addvertex,7,0.3,14
addvertex,7,0.3,13.7
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,9.9
addvertex,7,2,10.1
addvertex,7,0.3,10.1
addvertex,7,0.3,9.9
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,6
addvertex,7,2,6.2
addvertex,7,0.3,6.2
addvertex,7,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,13.8
addvertex,7,2,14
addvertex,7,0.3,14
addvertex,7,0.3,13.8
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

;RIGHT GATE 2 BEGINS;

createmeshbuilder
addvertex,7,2,14
addvertex,7,2,22
addvertex,7,1.8,22
addvertex,7,1.8,14
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,1.5,14
addvertex,7,1.5,22
addvertex,7,1.3,22
addvertex,7,1.3,14
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,1,14
addvertex,7,1,22
addvertex,7,0.8,22
addvertex,7,0.8,14
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,0.5,14
addvertex,7,0.5,22
addvertex,7,0.3,22
addvertex,7,0.3,14
addface,3,2,1,0
generatenormals,
setcolor,255,255,255


createmeshbuilder
addvertex,7,2,6
addvertex,7,2,6.3
addvertex,7,0.3,10
addvertex,7,0.3,9.7
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,10
addvertex,7,2,10.3
addvertex,7,0.3,14
addvertex,7,0.3,13.7
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,9.9
addvertex,7,2,10.1
addvertex,7,0.3,10.1
addvertex,7,0.3,9.9
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,6
addvertex,7,2,6.2
addvertex,7,0.3,6.2
addvertex,7,0.3,6
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,2,13.8
addvertex,7,2,14
addvertex,7,0.3,14
addvertex,7,0.3,13.8
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

;RIGHT GATE 2 ENDS;

;LEFT POSTS BEGIN;

createmeshbuilder
Cube, 0.2, 2, 0.2
Translate, -4.3, 1.25, 5.4
setcolor,255,255,255

createmeshbuilder
Cube, 0.2, 2, 0.2
Translate, -4.3, 1.25, 22.3
setcolor,255,255,255

;RIGHT POST BEGINS;

createmeshbuilder
Cube, 0.2, 2, 0.2
Translate, 7, 1.25, 5.4
setcolor,255,255,255

createmeshbuilder
Cube, 0.2, 2, 0.2
Translate, 7, 1.25, 22.3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,    2.6,    6
addvertex,-4.3,    2.8,    6
addvertex,-4.3,    2,   12
addvertex,-4.3,    1.98,  11
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-4.3,   2.6,      14
addvertex,-4.3,   2.8,    14
addvertex,-4.3,   2,   6
addvertex,-4.3,   1.98,   7
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,   2.6,      14
addvertex,7,   2.8,    14
addvertex,7,   2,   6
addvertex,7,   1.98,   7
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,7,    2.6,      6
addvertex,7,    2.8,    6
addvertex,7,    2,   12
addvertex,7,    1.98,   11
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

;ROADWAY STARTS;

createmeshbuilder
addvertex,-50,-0.01,23
addvertex,-1.7,-0.01,23
addvertex,-1.7,-0.01,4.5
addvertex,-50,-0.01,4.5
addvertex,-1.7,-0.450,4.5
addvertex,-50,-0.450,4.5
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50

createmeshbuilder
addvertex,-1.6,-0.01,23
addvertex,-0.26,-0.01,23
addvertex,-0.25,-0.01,4.5
addvertex,-1.6,-0.01,4.5
addvertex,-0.25,-0.150,4.5
addvertex,-1.6,-0.150,4.5
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50

createmeshbuilder
addvertex,-0.23,-0.01,23
addvertex,3.55,-0.01,23
addvertex,3.55,-0.01,4.5
addvertex,-0.23,-0.01,4.5
addvertex,3.55,-0.150,4.5
addvertex,-0.23,-0.150,4.5
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50

createmeshbuilder
addvertex,3.6,-0.01,23
addvertex,5,-0.01,23
addvertex,5.1,-0.01,4.5
addvertex,3.6,-0.01,4.5
addvertex,5.1,-0.150,4.5
addvertex,3.6,-0.150,4.5
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50


createmeshbuilder
addvertex,5.1,-0.01,23
addvertex,7.2,-0.01,23
addvertex,7.2,-0.01,4.5
addvertex,5.2,-0.01,4.5
addvertex,7.2,-0.450,4.5
addvertex,5.2,-0.450,4.5
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50

createmeshbuilder
addvertex,7.2,-0.01,23   ;1
addvertex,16.15,-0.01,50    ;2
addvertex,23,-0.01,47   ;3
addvertex,7.2,-0.01,4.5   ;4
addvertex,23,-0.450,47
addvertex,7.2,-0.450,4.5
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50

;STOP CIRCLE LEFT BEGINS;

createmeshbuilder
addvertex,-4.34,1.5,9.5
addvertex,-4.34,1.5,10.5
addvertex,-4.34,0.5,10.5
addvertex,-4.34,0.5,9.5
addface,0,1,2,3
generatenormals
loadtexture,circle.png
settexturecoordinates,0,1,0
settexturecoordinates,1,1,1
settexturecoordinates,2,0,1
settexturecoordinates,3,0,0
setdecaltransparentcolor,255,0,0


createmeshbuilder
addvertex,-4.34,1.5,9.5
addvertex,-4.34,1.5,10.5
addvertex,-4.34,0.5,10.5
addvertex,-4.34,0.5,9.5
addface,0,1,2,3
Translate, 0, 0, 8
generatenormals
loadtexture,circle.png
settexturecoordinates,0,1,0
settexturecoordinates,1,1,1
settexturecoordinates,2,0,1
settexturecoordinates,3,0,0
setdecaltransparentcolor,255,0,0

;STOP CIRCLE RIGHT BEGINS;

createmeshbuilder
addvertex,7.05,1.5,9.5
addvertex,7.05,1.5,10.5
addvertex,7.05,0.5,10.5
addvertex,7.05,0.5,9.5
addface,3,2,1,0
generatenormals
loadtexture,circle.png
settexturecoordinates,0,1,0
settexturecoordinates,1,1,1
settexturecoordinates,2,0,1
settexturecoordinates,3,0,0
setdecaltransparentcolor,255,0,0

createmeshbuilder
addvertex,7.05,1.5,9.5
addvertex,7.05,1.5,10.5
addvertex,7.05,0.5,10.5
addvertex,7.05,0.5,9.5
addface,3,2,1,0
Translate, 0, 0, 8
generatenormals
loadtexture,circle.png
settexturecoordinates,0,1,0
settexturecoordinates,1,1,1
settexturecoordinates,2,0,1
settexturecoordinates,3,0,0
setdecaltransparentcolor,255,0,0

