;Maboloop Object BR Shunter
;Object and textures (copyright) Alan Hudnott May 2007
;you may use this object in bve routes 
;Please seek permission before modifying
;Please credit Alan Hudnott.

;Chassisside1
[Meshbuilder]
Vertex -0.25,-0.25,0
Vertex -0.25,1,0
Vertex -0.25,1,5
Vertex -0.25,-0.25,5
Face2 0,1,2,3
translate 1,0,0

[Texture]
Load dschassis.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisside2
[Meshbuilder]
Vertex -1.75,-0.25,0
Vertex -1.75,1,0
Vertex -1.75,1,5
Vertex -1.75,-0.25,5
Face2 0,1,2,3
translate 1,0,0

[Texture]
Load dschassis.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisend1
[Meshbuilder]
Vertex 0,0.25,5
Vertex 0,1.02,5
Vertex -2,1.02,5
Vertex -2,0.25,5
Face 0,1,2,3
translate 1,0,0

[Texture]
Load bufferbeam1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255



;Chassisend2
[Meshbuilder]
Vertex 0,0.25,0
Vertex 0,1.02,0
Vertex -2,1.02,0
Vertex -2,0.25,0
Face2 0,1,2,3
translate 1,0,0

[Texture]
Load bufferbeam1.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255

;Chassisbed
[Meshbuilder]
Vertex -0,1,0
Vertex -2,1,0
Vertex -2,1,5
Vertex -0,1,5
Face 0,1,2,3
translate 1,0,0

[Texture]
Load chassisbed.png
Coordinates 0,0,0
Coordinates 1,0,1
Coordinates 2,1,1
Coordinates 3,1,0
Transparent 0,0,255


;body starts here

;Cabside1
[Meshbuilder]
Vertex 0,1,0
Vertex 0,3.3,0
Vertex 0,3.3,1.5
Vertex 0,1,1.5
Face2 0,1,2,3
translate 1,0,0

[Texture]
Load cabside.png
Coordinates 0,1,1
Coordinates 1,1,0
Coordinates 2,0,0
Coordinates 3,0,1
Transparent 0,0,255

;Cabside2
[Meshbuilder]
Vertex -2,1,1.5
Vertex -2,1,0
Vertex -2,3.3,0
Vertex -2,3.3,1.5
Face2 3,2,1,0
translate 1,0,0

[Texture]
Load cabside2.png
Coordinates 0,0,1
Coordinates 1,1,1
Coordinates 2,1,0
Coordinates 3,0,0
Transparent 0,0,255

;step
[Meshbuilder]
Vertex -2,0.3,0.6
Vertex -2,0.3,0.1
Vertex -2,1,0.1
Vertex -2,1,0.6
Face 3,2,1,0
translate 1,0,0

[Texture]
Load step.png
Coordinates 0,0,1
Coordinates 1,1,1
Coordinates 2,1,0
Coordinates 3,0,0
Transparent 0,0,255


;Cab back
[Meshbuilder]
Vertex -2,1,0
Vertex 0,1,0
Vertex 0,3.3,0
Vertex -2,3.3,0
Face2 3,2,1,0
translate 1,0,0

[Texture]
Load cabback.png
Coordinates 0,0,1
Coordinates 1,1,1
Coordinates 2,1,0
Coordinates 3,0,0
Transparent 0,0,255

;Cab front
[Meshbuilder]
Vertex -2,1,1.5
Vertex 0,1,1.5
Vertex 0,3.3,1.5
Vertex -2,3.3,1.5
Face2 0,1,2,3
translate 1,0,0

[Texture]
Load cabfront.png
Coordinates 0,0,1
Coordinates 1,1,1
Coordinates 2,1,0
Coordinates 3,0,0
Transparent 0,0,255

;wagon roof
[meshbuilder]
vertex -2,3.1,0
vertex -1.7,3.2,0
vertex -1.7,3.2,1.5
vertex -2,3.1,1.5
vertex -1.4,3.26,0
vertex -1.4,3.26,1.5
vertex -1,3.28,0
vertex -1,3.28,1.5
vertex -0.6,3.26,0
vertex -0.6,3.26,1.5
vertex -0.3,3.2,0
vertex -0.3,3.2,1.5
vertex 0,3.1,0
vertex 0,3.1,1.5
face2 0,1,2,3
face2 1,4,5,2
face2 4,6,7,5
face2 6,8,9,7
face2 8,10,11,9
face2 10,12,13,11
translate 1,0,0

[texture]
load wagonroof.png
coordinates 0,0,0
coordinates 1,0,1
coordinates 2,1,1
coordinates 3,1,0
coordinates 4,0,2
coordinates 5,1,2
coordinates 6,0,3
coordinates 7,1,3
coordinates 8,0,4
coordinates 9,1,4
coordinates 10,0,5
coordinates 11,1,5
coordinates 12,0,6
coordinates 13,1,6

;engineside
[Meshbuilder]
Vertex -0.4,1,1.5
Vertex -0.4,2.6,1.5
Vertex -0.4,2.6,4.8
Vertex -0.4,1,4.8
Face 0,1,2,3
translate 1,0,0

[Texture]
Load engineside.png
Coordinates 0,1,1
Coordinates 1,1,0
Coordinates 2,0,0
Coordinates 3,0,1
Transparent 0,0,255

;engineside1
[Meshbuilder]
Vertex -1.6,1,1.5
Vertex -1.6,2.6,1.5
Vertex -1.6,2.6,4.8
Vertex -1.6,1,4.8
Face 3,2,1,0
translate 1,0,0

[Texture]
Load engineside.png
Coordinates 0,1,1
Coordinates 1,1,0
Coordinates 2,0,0
Coordinates 3,0,1
Transparent 0,0,255

;enginefront
[Meshbuilder]
Vertex -0.4,1,4.8
Vertex -0.4,2.6,4.8
Vertex -1.6,2.6,4.8
Vertex -1.6,1,4.8
Face 0,1,2,3
translate 1,0,0

[Texture]
Load enginefront.png
Coordinates 0,1,1
Coordinates 1,1,0
Coordinates 2,0,0
Coordinates 3,0,1
Transparent 0,0,255

;engine bonnet
[meshbuilder]
vertex -1.6,2.5,1.5
vertex -1.5,2.6,1.5
vertex -1.5,2.6,4.8
vertex -1.6,2.5,4.8
vertex -1.2,2.6,1.5
vertex -1.2,2.6,4.8
vertex -1,2.6,1.5
vertex -1,2.6,4.8
vertex -0.9,2.6,1.5
vertex -0.9,2.6,4.8
vertex -0.5,2.6,1.5
vertex -0.5,2.6,4.8
vertex -0.4,2.5,1.5
vertex -0.4,2.5,4.8
face2 0,1,2,3
face2 1,4,5,2
face2 4,6,7,5
face2 6,8,9,7
face2 8,10,11,9
face2 10,12,13,11
translate 1,0,0

[texture]
load enginebonnet.png
coordinates 0,0,0
coordinates 1,0,1
coordinates 2,1,1
coordinates 3,1,0
coordinates 4,0,2
coordinates 5,1,2
coordinates 6,0,3
coordinates 7,1,3
coordinates 8,0,4
coordinates 9,1,4
coordinates 10,0,5
coordinates 11,1,5
coordinates 12,0,6
coordinates 13,1,6

[meshbuilder]
cylinder 8,0.08,0.08,0.80
translate 0,2.4,4.5
color 72,83,49

[meshbuilder]
cylinder 8,0.08,0.08,0.30
rotate 0,0,0,90,
translate -0.7,0.75,-0.1,
color 72,83,49

[meshbuilder]
cylinder 12,0.08,0.08,0.30
rotate 0,0,0,90,
translate 0.7,0.75,-0.1,
color 72,83,49

[meshbuilder]
cylinder 12,0.25,0.25,0.01
rotate 0,0,0,90,
translate 0.7,0.75,-0.27,
color 133,129,124

[meshbuilder]
cylinder 12,0.25,0.25,0.01
rotate 0,0,0,90,
translate -0.7,0.75,-0.27,
color 133,129,124

[meshbuilder]
cylinder 8,0.08,0.08,0.30
rotate 0,0,0,90,
translate -0.7,0.75,5.1,
color 72,83,49

[meshbuilder]
cylinder 12,0.08,0.08,0.30
rotate 0,0,0,90,
translate 0.7,0.75,5.1,
color 72,83,49

[meshbuilder]
cylinder 12,0.25,0.25,0.01
rotate 0,0,0,90,
translate 0.7,0.75,5.27,
color 133,129,124

[meshbuilder]
cylinder 12,0.25,0.25,0.01
rotate 0,0,0,90,
translate -0.7,0.75,5.27,
color 133,129,124

