;Converted from B3D by BVE FILE CONVERTER
 
;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.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, 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,

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, 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,

;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,

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

;ends

CreateMeshBuilder,
AddVertex, -1.2, 3.64, 2.2,
AddVertex, 1.2, 3.64, 2.2,
AddVertex, 1.2, 1.95, 0.6,
AddVertex, -1.2, 1.95, 0.6,
AddVertex, 1.05, 1.08, 0.25,
AddVertex, -1.05, 1.08,0.25,
AddFace,  0,1,2,3,
AddFace,  4,5,3,2,

GenerateNormals,
LoadTexture, V2r.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,0.25,
AddVertex, -0.9,0.1,0.25,
AddVertex, -0.98,1.1,0.25,
AddVertex, 0.98,1.1,0.25,
AddFace,  0,1,2,3,
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, 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, 2.2,
AddVertex, -0.5, 3.5, 2.1,
AddVertex, -0.5, 3.5, 24.75,
AddVertex, -1.02, 3.2, 1.75,
AddVertex, -1.02, 3.2, 24.75,
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, 3.64, 24.75,
AddVertex, 0, 3.64, 2.2,
AddVertex, 0.5, 3.5, 2.1,
AddVertex, 0.5, 3.5, 24.75,
AddVertex, 1.02, 3.2, 1.75,
AddVertex, 1.02, 3.2, 24.75,
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.65, 2.1, 0.15,
AddVertex,1.15, 2.1, 0.15,
AddVertex,1.15, 1.35, 0,
AddVertex,0.65, 1.35, 0,
AddVertex,-0.65, 2.1, 0.15,
AddVertex,-1.15, 2.1, 0.15,
AddVertex,-1.15, 1.35, 0,
AddVertex,-0.65, 1.35, 0,
AddFace2,3,2,1,0,
AddFace2,7,6,5,4,
GenerateNormals,
translate,0,-0.2,0.19,

LoadTexture,glow_red.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,2,

Translateall,0,0,-12.5,