;(c) Joao Carlos Goncalves; August 2009
;http://www.bvebrasil.com.br
;Trainset for Open BVE
;Emu class 2100 from CPTM, built by CAF, Spain
;trailer car 

;;;;;right side
CreateMeshBuilder,
AddVertex, -0.95, 3.26, 9.90,
AddVertex, -0.95, 3.26, -15.70,
AddVertex, -1.25, 3.26, 9.90,
AddVertex, -1.25, 3.26, -15.70,
AddVertex, -1.41, 3.07, 9.90,
AddVertex, -1.41, 3.07, -15.70,
AddVertex, -1.41, 0.37, 9.90,
AddVertex, -1.41, 0.37, -15.70,
AddFace2, 0,1,3,2,
AddFace2, 2,3,5,4,
AddFace2, 4,5,7,6,
SetColor, 140,140,140,
GenerateNormals,
LoadTexture, C127_side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.03,
SetTextureCoordinates, 3,1,0.03,
SetTextureCoordinates, 4,0,0.06,
SetTextureCoordinates, 5,1,0.06,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
SetDecalTransparentColor,  0, 255,0,

;;;;;left side=======
CreateMeshBuilder,
AddVertex, 0.95, 3.26, -15.70,
AddVertex, 0.95, 3.26, 9.90,
AddVertex, 1.25, 3.26, -15.70,
AddVertex, 1.25, 3.26, 9.90,
AddVertex, 1.41, 3.07, -15.70,
AddVertex, 1.41, 3.07, 9.90,
AddVertex, 1.41, 0.37, -15.70,
AddVertex, 1.41, 0.37, 9.90,
AddFace2, 0,1,3,2,
AddFace2, 2,3,5,4,
AddFace2, 4,5,7,6,
SetColor, 140,140,140,
GenerateNormals,
LoadTexture, C127_side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.03,
SetTextureCoordinates, 3,1,0.03,
SetTextureCoordinates, 4,0,0.06,
SetTextureCoordinates, 5,1,0.06,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
SetDecalTransparentColor, 0,255,0,



;;;;;inside;;left;;;
CreateMeshBuilder,
AddVertex, -0.89, 3.22,  9.90,
AddVertex, -0.89, 3.22, -15.66
AddVertex, -1.19, 3.22,  9.90,
AddVertex, -1.19, 3.22, -15.66
AddVertex, -1.36, 3.03,  9.90,
AddVertex, -1.36, 3.03, -15.66
AddVertex, -1.36, 0.94,  9.90,
AddVertex, -1.36, 0.94, -15.66,
AddFace, 3,2,1,0,
AddFace, 4,5,3,2,
AddFace, 6,7,5,4,
SetColor, 120,120,50,
GenerateNormals,
GenerateNormals,
LoadTexture, 2100_intT.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,-1,0,
SetTextureCoordinates, 2,0,0.06,
SetTextureCoordinates, 3,-1,0.06,
SetTextureCoordinates, 4,0,0.11,
SetTextureCoordinates, 5,-1,0.11,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,-1,1,
SetDecalTransparentColor, 0,255,0,
SetEmissiveColor, 120,120,120,

;;;inside;;right
CreateMeshBuilder,
AddVertex, 0.89, 3.22,  9.90,
AddVertex, 0.89, 3.22, -15.66,
AddVertex, 1.19, 3.22,  9.90,
AddVertex, 1.19, 3.22, -15.66,
AddVertex, 1.36, 3.03,  9.90,
AddVertex, 1.36, 3.03, -15.66,
AddVertex, 1.36, 0.94,  9.90,
AddVertex, 1.36, 0.94, -15.66,
AddFace, 0,1,3,2,
AddFace, 2,3,5,4,
AddFace, 4,5,7,6,
SetColor, 120,120,50,
GenerateNormals,
GenerateNormals,
LoadTexture, 2100_intT.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.04,
SetTextureCoordinates, 3,1,0.04,
SetTextureCoordinates, 4,0,0.09,
SetTextureCoordinates, 5,1,0.09,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
SetDecalTransparentColor, 0,255,0,
SetEmissiveColor, 120,120,120,



;;;;;front=========
CreateMeshBuilder,
AddVertex, -1.44, 3.28, -15.70,
AddVertex,  1.44, 3.28, -15.70,
AddVertex,  1.44, 3.11, -15.70,
AddVertex, -1.44, 3.11, -15.70,
AddVertex, -1.44, 0.45, -15.70,
AddVertex,  1.44, 0.45, -15.70,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 120,120,120,
GenerateNormals,
LoadTexture, 1400rear.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,0.17,
SetTextureCoordinates, 3,0,0.17,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
SetDecalTransparentColor, 0, 0, 255,

;;;inner front;;;
CreateMeshBuilder,
AddVertex,  1.34, 3.26, -15.52,
AddVertex, -1.34, 3.26, -15.52,
AddVertex, -1.34, 3.03, -15.52,
AddVertex,  1.34, 3.03, -15.52,
AddVertex,  1.34, 0.85, -15.52,
AddVertex, -1.34, 0.85, -15.52,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 120,120,50,
GenerateNormals,
LoadTexture, 2100_innerB.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,0.12,
SetTextureCoordinates, 3,0,0.12,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
SetDecalTransparentColor, 0,0,255,
SetEmissiveColor, 120,120,120,

;;;;;rear=============
CreateMeshBuilder,
AddVertex,  1.45, 3.28, 9.90,
AddVertex, -1.45, 3.28, 9.90,
AddVertex, -1.45, 3.03, 9.90,
AddVertex,  1.45, 3.03, 9.90,
AddVertex,  1.45, 0.45, 9.90,
AddVertex, -1.45, 0.45, 9.90,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 120,120,120,
GenerateNormals,
LoadTexture, 1400rear.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,0.17,
SetTextureCoordinates, 3,0,0.17,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
SetDecalTransparentColor, 0, 0, 255,

;;;;;inner rear;;;;;
CreateMeshBuilder,
AddVertex,  1.34, 3.26, 9.70,
AddVertex, -1.34, 3.26, 9.70,
AddVertex, -1.34, 3.03, 9.70,
AddVertex,  1.34, 3.03, 9.70,
AddVertex,  1.34, 0.85, 9.70,
AddVertex, -1.34, 0.85, 9.70,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 120,120,50,
GenerateNormals,
LoadTexture, 2100_innerB.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,-1,0,
SetTextureCoordinates, 2,-1,0.12,
SetTextureCoordinates, 3,0,0.12,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,-1,1,
SetDecalTransparentColor, 0,0,255,
SetEmissiveColor, 120,120,120,



;;;;;underframe==========
CreateMeshBuilder,
AddVertex, -0.68,  1.00, 4.75,
AddVertex, -0.68,  1.00, -10.75,
AddVertex, -0.68, -0.20, -10.75,
AddVertex, -0.68, -0.20, 4.75,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, under.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,

CreateMeshBuilder,
AddVertex, 0.68, 1.00, 4.75,
AddVertex, 0.68, 1.00, -10.75,
AddVertex, 0.68, -0.20, -10.75,
AddVertex, 0.68, -0.20, 4.75,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, under.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,


;;;;bogies R
CreateMeshBuilder,
AddVertex, 0.878, 0.90, 7.5,
AddVertex, 0.878, 0.90, 3.5,
AddVertex, 0.878, 0.20, 3.5,
AddVertex, 0.878, 0.20, 7.5,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, bogies.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;;
CreateMeshBuilder,
AddVertex, 0.878, 0.90, -13.5,
AddVertex, 0.878, 0.90, -9.5,
AddVertex, 0.878, 0.20, -9.5,
AddVertex, 0.878, 0.20, -13.5,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, bogies.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,


;;;;;bogies L==============
CreateMeshBuilder,
AddVertex, -0.878, 0.90, 7.5,
AddVertex, -0.878, 0.90, 3.5,
AddVertex, -0.878, 0.20, 3.5,
AddVertex, -0.878, 0.20, 7.5,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, bogies.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;;
CreateMeshBuilder,
AddVertex, -0.878, 0.90, -13.5,
AddVertex, -0.878, 0.90, -9.5,
AddVertex, -0.878, 0.20, -9.5,
AddVertex, -0.878, 0.20, -13.5,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, bogies.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,


;;;;;ceiling========
CreateMeshBuilder,
AddVertex,  0.96, 3.26, 9.90,
AddVertex,  0.96, 3.26, -15.70,
AddVertex,  0.96, 3.26, -15.70,
AddVertex,  0.96, 3.26, 9.90,
AddVertex, -0.96, 3.26, 9.90,
AddVertex, -0.96, 3.26, -15.70,
AddVertex, -0.96, 3.26, -15.70,
AddVertex, -0.96, 3.26, 9.90,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
AddFace2, 4,5,6,7,
SetColor, 10,0,85,
GenerateNormals,

;;;inner ceiling;;;
CreateMeshBuilder,
addVertex,  1.2, 3.20, 9.90,
addVertex, -1.2, 3.20, 9.90,
addVertex, -1.2, 3.20, -15.70,
addVertex,  1.2, 3.20, -15.70,
addFace2, 0,1,2,3,
SetColor, 140,140,60,
LoadTexture, ceiling1.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetEmissiveColor, 160,160,160,

;;;;;floor
CreateMeshBuilder,
addVertex,  1.4, 1.02, 9.90,
addVertex, -1.4, 1.02, 9.90,
addVertex, -1.4, 1.02, -15.70,
addVertex,  1.4, 1.02, -15.70,
addFace2, 0,1,2,3,
SetColor, 190,190,190,
LoadTexture, pdr_floor.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,

;;;;;floor shade===== 
CreateMeshBuilder,
AddVertex,  1.469, -0.124,  7.70,
AddVertex,  1.469, -0.124, -14.50,
AddVertex,  1.469, -0.124, -14.50,
AddVertex,  1.469, -0.124,  7.70,
AddVertex, -1.469, -0.124,  7.70,
AddVertex, -1.469, -0.124, -14.50,
AddVertex, -1.469, -0.124, -14.50,
AddVertex, -1.469, -0.124,  7.70,
AddFace, 0,1,2,3,
AddFace, 3,2,5,4,
AddFace, 4,5,6,7,
SetColor, 60,70,70,140,



;;;;;wheels
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, 4.05000078
Rotate, 0,0,90,90,
;;rearR
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, 0.73500073, 4.05000078
Rotate, 0,0,90,90,
;;axle
CreateMeshBuilder,
Cylinder, 6, 0.078, 0.078, -1.7000000075
SetColor, 75,40,40,
Translate, 0.47000037, -0.0000000, 4.05000078
Rotate, 0,0,90,90,


;;;;;
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, 6.950000078
Rotate, 0,0,90,90,
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, 0.73500073, 6.950000078
Rotate, 0,0,90,90,
;;axle
CreateMeshBuilder,
Cylinder, 6, 0.078, 0.078, -1.7000000075
SetColor, 75,40,40,
Translate, 0.47000037, -0.0000000, 6.950000078
Rotate, 0,0,90,90,



;;;;;;;;;
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, -10.06000078
Rotate, 0,0,90,90,
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, 0.73500073, -10.06000078
Rotate, 0,0,90,90,
;;axle
CreateMeshBuilder,
Cylinder, 6, 0.078, 0.078, -1.7000000075
SetColor, 75,40,40,
Translate, 0.47000037, -0.0000000, -10.06000078
Rotate, 0,0,90,90,


;;;;
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, -12.95000078
Rotate, 0,0,90,90,
;;rearR
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, 0.73500073, -12.95000078
Rotate, 0,0,90,90,
;;axle
CreateMeshBuilder,
Cylinder, 6, 0.078, 0.078, -1.700000075
SetColor, 75,40,40,
Translate, 0.47000037, -0.0000000, -12.95000078
Rotate, 0,0,90,90,


;;;;;sanfonas, front
CreateMeshBuilder,
AddVertex, 0.43, 2.92, 9.70,
AddVertex, 0.43, 2.92, 10.70,
AddVertex, 0.43, 0.81, 10.70,
AddVertex, 0.43, 0.81, 9.70,
AddFace2, 0,1,2,3
SetColor, 180,180,180
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 3, 0
SetTextureCoordinates, 2, 3, 1
SetTextureCoordinates, 3, 0, 1
;;;
CreateMeshBuilder,
AddVertex, -0.43, 2.92, 9.70,
AddVertex, -0.43, 2.92, 10.70,
AddVertex, -0.43, 0.81, 10.70
AddVertex, -0.43, 0.81, 9.70,
AddFace2, 0,1,2,3
SetColor, 180,180,180
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 3, 0
SetTextureCoordinates, 2, 3, 1
SetTextureCoordinates, 3, 0, 1
;;
CreateMeshBuilder,
addVertex,  0.43, 1.12, 9.70,
addVertex, -0.43, 1.12, 9.70,
addVertex, -0.43, 1.12, 10.70,
addVertex,  0.43, 1.12, 10.70,
addFace2, 0,1,2,3,
SetColor, 230,240,250,
LoadTexture, pdr_floor.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
;;;
CreateMeshBuilder,
addVertex,  0.43, 2.92, 9.70,
addVertex, -0.43, 2.92, 9.70,
addVertex, -0.43, 2.92, 10.70,
addVertex,  0.43, 2.92, 10.70,
addFace2, 0,1,2,3,
SetColor, 230,240,250,
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,2,0,
SetTextureCoordinates, 3,2,1,



;;;;;;;;sanfonas, rear
CreateMeshBuilder,
AddVertex, 0.43, 2.92, -15.6,
AddVertex, 0.43, 2.92, -16.6,
AddVertex, 0.43, 0.81, -16.6,
AddVertex, 0.43, 0.81, -15.6,
AddFace2, 0,1,2,3
SetColor, 180,180,180
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 3, 0
SetTextureCoordinates, 2, 3, 1
SetTextureCoordinates, 3, 0, 1
;;
CreateMeshBuilder,
AddVertex, -0.43, 2.92, -15.6,
AddVertex, -0.43, 2.92, -16.6,
AddVertex, -0.43, 0.81, -16.6,
AddVertex, -0.43, 0.81, -15.6,
AddFace2, 0,1,2,3
SetColor, 180,180,180
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 3, 0
SetTextureCoordinates, 2, 3, 1
SetTextureCoordinates, 3, 0, 1

;;;;;sanf flr
CreateMeshBuilder,
addVertex,  0.43, 1.12, -15.6,
addVertex, -0.43, 1.12, -15.6,
addVertex, -0.43, 1.12, -16.6,
addVertex,  0.43, 1.12, -16.6,
addFace2, 0,1,2,3,
SetColor, 230,240,250,
LoadTexture, pdr_floor.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
;;;
CreateMeshBuilder,
addVertex,  0.43, 2.92, -15.6,
addVertex, -0.43, 2.92, -15.6,
addVertex, -0.43, 2.92, -16.6,
addVertex,  0.43, 2.92, -16.6,
addFace2, 0,1,2,3,
SetColor, 230,240,250,
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,2,0,
SetTextureCoordinates, 3,2,1,



;;;passengers
CreateMeshBuilder,
AddVertex, -0.78, 2.70,  7,
AddVertex, -0.78, 2.70, -12,
AddVertex, -0.78, 1.00, -12,
AddVertex, -0.78, 1.00,  7,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, passag.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,5,0,
SetTextureCoordinates, 2,5,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;;;;
CreateMeshBuilder,
AddVertex, 0.78, 2.70,  8.50,
AddVertex, 0.78, 2.70, -14.00,
AddVertex, 0.78, 1.00, -14.00,
AddVertex, 0.78, 1.00,  8.50,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, passag.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,6,0,
SetTextureCoordinates, 2,6,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,



;;;;glasses left
CreateMeshBuilder,
AddVertex, -1.38, 3.00, 9.9,
AddVertex, -1.38, 3.00, 3.5,
AddVertex, -1.38, 1.00, 3.5,
AddVertex, -1.38, 1.00, 9.9,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,
;;
CreateMeshBuilder,
AddVertex, -1.38, 3.00, 0.4,
AddVertex, -1.38, 3.00, -6.0,
AddVertex, -1.38, 1.00, -6.0,
AddVertex, -1.38, 1.00, 0.4,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,
;;;##
CreateMeshBuilder,
AddVertex, -1.38, 3.00, -9.3,
AddVertex, -1.38, 3.00, -15.5,
AddVertex, -1.38, 1.00, -15.5,
AddVertex, -1.38, 1.00, -9.3,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,



;;;;glasses right
CreateMeshBuilder,
AddVertex, 1.38, 3.00, 9.9,
AddVertex, 1.38, 3.00, 3.5,
AddVertex, 1.38, 1.00, 3.5,
AddVertex, 1.38, 1.00, 9.9,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,
;;
CreateMeshBuilder,
AddVertex, 1.38, 3.00, 0.4,
AddVertex, 1.38, 3.00, -6.0,
AddVertex, 1.38, 1.00, -6.0,
AddVertex, 1.38, 1.00, 0.4,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,
;;;##
CreateMeshBuilder,
AddVertex, 1.38, 3.00, -9.3,
AddVertex, 1.38, 3.00, -15.5,
AddVertex, 1.38, 1.00, -15.5,
AddVertex, 1.38, 1.00, -9.3,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,


;;;;;internal lamps for saloon;;;;;
CreateMeshBuilder,
Cube, 0.06, 0.04, 3.17000000031,
Translate, 0.4300, 3.2000, -12.300,
rotate, 90,0,90,0,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,

;;;for the doors; near vents
CreateMeshBuilder,
Cube, 0.15, 0.04, 0.52000000052,
Translate, 7.1600, 3.2000, 0.0000,
Rotate, 0,90,0,90,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,
;;;
CreateMeshBuilder,
Cube, 0.15, 0.04, 0.52000000052,
Translate, 8.2300, 3.2000, 0.0000,
Rotate, 0,90,0,90,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,
;;;
CreateMeshBuilder,
Cube, 0.15, 0.04, 0.52000000052,
Translate, -1.2700, 3.2000, 0.0000,
Rotate, 0,90,0,90,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,
;;;
CreateMeshBuilder,
Cube, 0.15, 0.04, 0.52000000052,
Translate, -2.3500, 3.2000, 0.0000,
Rotate, 0,90,0,90,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,


;;;
CreateMeshBuilder,
Cube, 0.06, 0.04, 3.3000000030,
Translate, 0.4300, 3.2000, -2.96000000,
rotate, 90,0,90,0,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,
;;;
CreateMeshBuilder,
Cube, 0.06, 0.04, 1.78000000018,
Translate, 0.4300, 3.2000, 5.00000,
rotate, 90,0,90,0,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,



;;;;;internal lamps; left;;;;;
CreateMeshBuilder,
Cube, 0.06, 0.04, 3.17000000030,
Translate, -0.4300, 3.2000, -12.300,
rotate, 90,0,90,0,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,
;;;
CreateMeshBuilder,
Cube, 0.06, 0.04, 3.30000000030,
Translate, -0.4300, 3.2000, -2.96000,
Rotate, 90,0,90,0,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,
;;;
CreateMeshBuilder,
Cube, 0.06, 0.04, 1.78000000018,
Translate, -0.4300, 3.2000, 5.000,
rotate, 90,0,90,0,
SetColor, 250,250,250,
SetEmissiveColor, 250,250,250,
SetBlendMode,Additive,6,



;;;;;side pilot lamps
CreateMeshBuilder,
Cylinder, 12, 0.028, 0.028, 0.25000      
SetColor, 0,0,0,
Translate, 1.450000, -2.780000, -2.820000 ;width;length;height
Rotate, 90,0,0,90,
SetEmissiveColor, 254,0,0,

;;;
CreateMeshBuilder,
Cube, 0.06, 0.09, 0.091000009,
Translate, 1.440000, 2.780000, -2.780000,  ;width;height;length
rotate, 90,0,90,0,
SetColor, 100,100,110,

;;;
CreateMeshBuilder,
Cylinder, 12, 0.028, 0.028, 0.25000       
SetColor, 0,0,0,
Translate, -1.450000, -2.780000, -2.820000 
Rotate, 90,0,0,90,
SetEmissiveColor, 254,0,0,
;;;
CreateMeshBuilder,
Cube, 0.06, 0.09, 0.091000009,
Translate, -1.440000, 2.780000, -2.780000,  
rotate, 90,0,90,0,
SetColor, 100,100,110,

