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

;Edited by Yooski to make compatible with open BVE exterior views

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

GenerateNormals,
LoadTexture,  vv-side1_vt.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,
SetDecalTransparentColor, 0,0,255,

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


GenerateNormals,
LoadTexture,  vv-side1_vt2.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,
SetDecalTransparentColor, 0,0,255,

;underframe

CreateMeshBuilder,
AddVertex, -0.9 ,  1 ,  24.75 ,
AddVertex, -0.9 ,  1 ,  0.25 ,
AddVertex, -0.8 ,  0 ,  0.25 ,
AddVertex, -0.8 ,  0 ,  24.75 ,
AddFace2, 3, 2, 1, 0, 

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 ,  24.75 ,
AddVertex,  0.9 ,  1 ,  0.25 ,
AddVertex,  0.8 ,  0 ,  0.25 ,
AddVertex,  0.8 ,  0 ,  24.75 ,
AddFace2,   3, 2, 1, 0, 

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 ,  0.1 ,  0.25 ,
AddVertex, -0.9 ,  0.1 ,  24.75 ,
AddVertex, -0.98 ,  1.1 ,  24.75 ,
AddVertex, -0.98 ,  1.1 ,  0.25 ,
AddFace2,   3, 2, 1, 0, ,

GenerateNormals,
LoadTexture,  vv-side-1-bottom.bmp,
SetTextureCoordinates,  3, 0, 0,
SetTextureCoordinates,  2,1, 0,
SetTextureCoordinates,  1,1, 1,
SetTextureCoordinates,  0, 0, 1,
SetDecalTransparentColor,    0,0,255,

CreateMeshBuilder,
AddVertex,  0.9 ,  0.1 ,  0.25 ,
AddVertex,  0.9 ,  0.1 ,  24.75 ,
AddVertex,  0.98 ,  1.1 ,  24.75 ,
AddVertex,  0.98 ,  1.1 ,  0.25 ,
AddFace2,   3, 2, 1, 0, ,

GenerateNormals,
LoadTexture,  vv-side-1-bottom.bmp,
SetTextureCoordinates,  3, 0, 0,
SetTextureCoordinates,  2,1, 0,
SetTextureCoordinates,  1,1, 1,
SetTextureCoordinates,  0, 0, 1,
SetDecalTransparentColor,    0,0,255,

;base

;CreateMeshBuilder,
;AddVertex,  0.98 ,  1 ,  24.75 ,
;AddVertex,  0.98 ,  1 ,  0.25 ,
;AddVertex, -0.98 ,  1 ,  0.25 ,
;AddVertex, -0.98 ,  1 ,  24.75 ,
;AddFace,   3, 2, 1, 0,
;SetColor,  10,10,10,

;ends
CreateMeshBuilder,
AddVertex, -1.2 ,  3.64 ,  22.8 ,
AddVertex,  1.2 ,  3.64 ,  22.8 ,
AddVertex,  1.2 ,  1.95 ,  24.4 ,
AddVertex, -1.2 ,  1.95 ,  24.4 ,
AddVertex,  1.05 ,  1.08 ,  24.75 ,
AddVertex, -1.05 ,  1.08 ,  24.75 ,
AddFace,   3, 2, 1, 0, 
AddFace,   2, 3, 5, 4,


GenerateNormals,
LoadTexture,  v2.bmp,
SetTextureCoordinates,  0, 0, 0,
SetTextureCoordinates,  1, 1, 0,
SetTextureCoordinates,  2, 1, 0.65,
SetTextureCoordinates,  3, 0, 0. 65,
SetTextureCoordinates,  4, 1, 1,
SetTextureCoordinates,  5, 0, 1,
SetDecalTransparentColor,    0,0,255,

CreateMeshBuilder,
AddVertex,  0.9 ,  0.1 ,  24.75 ,
AddVertex, -0.9 ,  0.1 ,  24.75 ,
AddVertex, -0.98 ,  1.1 ,  24.75 ,
AddVertex,  0.98 ,  1.1 ,  24.75 ,
AddFace2,   3, 2, 1, 0,

GenerateNormals,
LoadTexture,  vv1.bmp,
SetTextureCoordinates,  3, 0, 0,
SetTextureCoordinates,  2,1, 0,
SetTextureCoordinates,  1,1, 1,
SetTextureCoordinates,  0, 0, 1,
SetDecalTransparentColor,    0,0,255,

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,

;roof
CreateMeshBuilder,
AddVertex,  0 ,  3.64 ,  0.25 ,
AddVertex,  0 ,  3.64 ,  22.8 ,
AddVertex, -0.5 ,  3.5 ,  22.9 ,
AddVertex, -0.5 ,  3.5 ,  0.25 ,
AddVertex, -1.02 ,  3.2 ,  23.25 ,
AddVertex, -1.02 ,  3.2 ,  0.25 ,
AddFace,  3, 2, 1, 0, 
AddFace,  2, 3, 5, 4, 

GenerateNormals,
LoadTexture,  v-roof1.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 ,  0.25 ,
AddVertex,  0 ,  3.64 ,  22.8 ,
AddVertex,  0.5 ,  3.5 ,  22.9 ,
AddVertex,  0.5 ,  3.5 ,  0.25 ,
AddVertex,  1.02 ,  3.2 ,  23.25 ,
AddVertex,  1.02 ,  3.2 ,  0.25 ,
AddFace,   0,1,2,3,
AddFace,   4,5,3,2,

GenerateNormals,
LoadTexture,  v-roof1.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.55, 2.1, 24.6,
AddVertex,1.05, 2.1, 24.6,
AddVertex,1.05, 1.35, 24.75,
AddVertex,0.55, 1.35, 24.75,
AddVertex,0.3, 4, 23.0,
AddVertex,-0.3, 4, 23.0,
AddVertex,-0.3, 3.4, 23.27,
AddVertex,0.3, 3.4, 23.27,
AddFace2,3,2,1,0,
AddFace2,7,6,5,4,
GenerateNormals,
translate,0,-0.3,0,

LoadTexture,glow_white.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,0,
SetEmissiveColor,255,255,255,
SetBlendMode,Additive,7,

Translateall,0,0,-12.5,
