;Class 220/221 Voyager
;(c) Adam Priseman 2008
;Feel free to re-use, modify and distribute in BVE routes 
;Please Credit me in readme


;sides

CreateMeshBuilder,
AddVertex, -1.02, 3.20, 24.75,
AddVertex, -1.02, 3.20, 0.25,
AddVertex, -1.16, 1.54, 0.25,
AddVertex, -1.16, 1.54, 24.75,
AddVertex, -0.98, 1, 0.25,
AddVertex, -0.98, 1, 24.75,
AddFace,  0,1,2,3,
AddFace,  4,5,3,2,

GenerateNormals,
LoadTexture, v-side-2.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 0.78,
SetTextureCoordinates, 3, 0, 0.78,
SetTextureCoordinates, 4, 1, 1,
SetTextureCoordinates, 5, 0, 1,

CreateMeshBuilder,
AddVertex, 1.02, 3.20, 24.75,
AddVertex, 1.02, 3.20, 0.25,
AddVertex, 1.16, 1.54, 0.25,
AddVertex, 1.16, 1.54, 24.75,
AddVertex, 0.98, 1, 0.25,
AddVertex, 0.98, 1, 24.75,
AddFace,  3,2,1,0,
AddFace,  2,3,5,4,

GenerateNormals,
LoadTexture, v-side-2.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 0.78,
SetTextureCoordinates, 3, 0, 0.78,
SetTextureCoordinates, 4, 1, 1,
SetTextureCoordinates, 5, 0, 1,

;underframe

CreateMeshBuilder,
AddVertex, -0.9,1,0.25,
AddVertex, -0.9,1,24.75,
AddVertex, -0.8,0,24.75,
AddVertex, -0.8,0,0.25,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, v-underframe.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1,1, 0,
SetTextureCoordinates, 2,1, 1,
SetTextureCoordinates, 3, 0, 1,
SetDecalTransparentColor,  0,0,255,

CreateMeshBuilder,
AddVertex, 0.9,1,0.25,
AddVertex, 0.9,1,24.75,
AddVertex, 0.8,0,24.75,
AddVertex, 0.8,0,0.25,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, v-underframe.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1,1, 0,
SetTextureCoordinates, 2,1, 1,
SetTextureCoordinates, 3, 0, 1,
SetDecalTransparentColor,  0,0,255,

;ends
CreateMeshBuilder,
AddVertex, -1.18, 3.64, 0.25,
AddVertex, 1.18, 3.64, 0.25,
AddVertex, 1.18, 0, 0.25,
AddVertex, -1.18, 0, 0.25,
AddFace,  0,1,2,3,

GenerateNormals,
LoadTexture, mk3-end.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 1,
SetTextureCoordinates, 3, 0, 1,
SetDecalTransparentColor,  0,255,0,

CreateMeshBuilder,
AddVertex, -1.18, 3.64, 24.75,
AddVertex, 1.18, 3.64, 24.75,
AddVertex, 1.18, 0, 24.75,
AddVertex, -1.18, 0, 24.75,
AddFace,  3,2,1,0,

GenerateNormals,
LoadTexture, mk3-end.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 1,
SetTextureCoordinates, 3, 0, 1,
SetDecalTransparentColor,  0,255,0,

;roof

CreateMeshBuilder,
AddVertex, 0, 3.64, 24.75,
AddVertex, 0, 3.64, 0.25,
AddVertex, -0.5, 3.5, 0.25,
AddVertex, -0.5, 3.5, 24.75,
AddVertex, -1.02, 3.2, 0.25,
AddVertex, -1.02, 3.2, 24.75,
AddFace,  0,1,2,3,
AddFace,  4,5,3,2,
SetColor,200,200,200,

GenerateNormals,
LoadTexture, v-roof.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 0.3,
SetTextureCoordinates, 3, 0, 0.3,
SetTextureCoordinates, 4, 1, 1,
SetTextureCoordinates, 5, 0, 1,

CreateMeshBuilder,
AddVertex, 0, 3.64, 24.75,
AddVertex, 0, 3.64, 0.25,
AddVertex, 0.5, 3.5, 0.25,
AddVertex, 0.5, 3.5, 24.75,
AddVertex, 1.02, 3.2, 0.25,
AddVertex, 1.02, 3.2, 24.75,
AddFace,  3,2,1,0,
AddFace,  2,3,5,4,
SetColor,200,200,200,

GenerateNormals,
LoadTexture, v-roof.bmp,
SetTextureCoordinates, 0, 0, 0,
SetTextureCoordinates, 1, 1, 0,
SetTextureCoordinates, 2, 1, 0.3,
SetTextureCoordinates, 3, 0, 0.3,
SetTextureCoordinates, 4, 1, 1,
SetTextureCoordinates, 5, 0, 1,


Translateall,0,0,-12.5,