;(c) Joao Carlos Goncalves; August 2009
;http://www.bvebrasil.com.br
;EMU CAF model 440;; made in Spain;; wearing the CPTM livery
;São Paulo, Brazil; in service since 1998.
;External train for Open BVE;; with operating doors

;;;;;right side;;;;;
CreateMeshBuilder,
AddVertex, -0.95, 3.32,  9.90,
AddVertex, -0.95, 3.32, -15.70,
AddVertex, -1.25, 3.32,  9.90,
AddVertex, -1.25, 3.32, -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, 2100mc_sideL.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.04,
SetTextureCoordinates, 3,1,0.04,
SetTextureCoordinates, 4,0,0.07,
SetTextureCoordinates, 5,1,0.07,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
SetDecalTransparentColor, 0,255,0,

;;;;;inside;;left;;;
CreateMeshBuilder,
AddVertex, -0.95, 3.28,  9.89,
AddVertex, -0.95, 3.28, -15.66
AddVertex, -1.25, 3.28,  9.89,
AddVertex, -1.25, 3.28, -15.66
AddVertex, -1.36, 3.05,  9.89,
AddVertex, -1.36, 3.05, -15.66
AddVertex, -1.36, 0.94,  9.89,
AddVertex, -1.36, 0.94, -15.66,
AddFace2, 0,1,3,2,
AddFace2, 2,3,5,4,
AddFace2, 4,5,7,6,
SetColor, 120,120,50,
GenerateNormals,
GenerateNormals,
LoadTexture, 2100_intL.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, 130,130,130,

;;;inside;;right
CreateMeshBuilder,
AddVertex, 0.95, 3.28,   9.89,
AddVertex, 0.95, 3.28, -15.66,
AddVertex, 1.25, 3.28,   9.89,
AddVertex, 1.25, 3.28, -15.66,
AddVertex, 1.36, 3.09,   9.89,
AddVertex, 1.36, 3.09, -15.66,
AddVertex, 1.36, 0.78,   9.89,
AddVertex, 1.36, 0.78, -15.66,
AddFace2, 0,1,3,2,
AddFace2, 2,3,5,4,
AddFace2, 4,5,7,6,
SetColor, 120,120,50,
GenerateNormals,
GenerateNormals,
LoadTexture, 2100_intR.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.00,
SetTextureCoordinates, 3,1,0.00,
SetTextureCoordinates, 4,0,0.05,
SetTextureCoordinates, 5,1,0.05,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
SetDecalTransparentColor, 0,255,0,
SetEmissiveColor, 130,130,130,



;;;;;left side;;;;;
CreateMeshBuilder,
AddVertex, 0.95, 3.32, -15.70,
AddVertex, 0.95, 3.32,  9.90,
AddVertex, 1.25, 3.32, -15.70,
AddVertex, 1.25, 3.32,  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, 2100mc_sideR.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.04,
SetTextureCoordinates, 3,1,0.04,
SetTextureCoordinates, 4,0,0.07,
SetTextureCoordinates, 5,1,0.07,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
SetDecalTransparentColor,  0,255,0,


;;;;;rear=========
CreateMeshBuilder,
AddVertex, -1.44, 3.33, -15.70
AddVertex,  1.44, 3.33, -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, 90,90,90,
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,


;;;;;sanf
CreateMeshBuilder,
AddVertex, 0.43, 2.92, -15.5,
AddVertex, 0.43, 2.92, -16.5,
AddVertex, 0.43, 1.01, -16.5,
AddVertex, 0.43, 1.01, -15.5,
AddFace2, 0,1,2,3
SetColor, 180,180,180,
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 2, 0
SetTextureCoordinates, 2, 2, 1
SetTextureCoordinates, 3, 0, 1
;;
CreateMeshBuilder,
AddVertex, -0.43, 2.92, -15.5,
AddVertex, -0.43, 2.92, -16.5,
AddVertex, -0.43, 1.01, -16.5,
AddVertex, -0.43, 1.01, -15.5,
AddFace2, 0,1,2,3
SetColor, 180,180,180,
LoadTexture, sanfona.bmp,
SetTextureCoordinates, 0, 0, 0
SetTextureCoordinates, 1, 2, 0
SetTextureCoordinates, 2, 2, 1
SetTextureCoordinates, 3, 0, 1

;;;;;sanf flr
CreateMeshBuilder,
addVertex,  0.43, 1.10, -15.5,
addVertex, -0.43, 1.10, -15.5,
addVertex, -0.43, 1.10, -16.5,
addVertex,  0.43, 1.10, -16.5,
addFace2, 0,1,2,3,
SetColor, 250,250,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.5,
addVertex, -0.43, 2.92, -15.5,
addVertex, -0.43, 2.92, -16.5,
addVertex,  0.43, 2.92, -16.5,
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,


;;;;;front=============
CreateMeshBuilder,
AddVertex,  1.45, 3.37, 9.88,
AddVertex, -1.45, 3.37, 9.88,
AddVertex, -1.45, 3.03, 9.91,
AddVertex,  1.45, 3.03, 9.91,
AddVertex,  1.45, 0.15, 9.95,
AddVertex, -1.45, 0.15, 9.95,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 185,186,187,
GenerateNormals,
LoadTexture, 2100front.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,0.14,
SetTextureCoordinates, 3,0,0.14,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
SetDecalTransparentColor, 0,0,255,


;;;estudantes display;;;
CreateMeshBuilder,
AddVertex, 1.19, 2.87, 9.93,
AddVertex, 1.19, 3.00, 9.93,
AddVertex, 0.25, 3.00, 9.93,
AddVertex, 0.25, 2.87, 9.93,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, estudantes.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,0,255,
SetEmissiveColor, 205,10,10,
SetBlendMode,Additive,1,


;;;;;windshield;;;;;;;
CreateMeshBuilder,
AddVertex,  1.40, 3.20, 9.85,
AddVertex, -1.40, 3.20, 9.85,
AddVertex, -1.40, 3.00, 9.85,
AddVertex,  1.40, 3.00, 9.85,
AddVertex,  1.40, 0.55, 9.85,
AddVertex, -1.40, 0.55, 9.85,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 80,80,80,150,

;;;
CreateMeshBuilder,
AddVertex,  1.40, 3.00, -15.65,
AddVertex, -1.40, 3.00, -15.65,
AddVertex, -1.40, 3.00, -15.65,
AddVertex,  1.40, 3.00, -15.65,
AddVertex,  1.40, 1.05, -15.65,
AddVertex, -1.40, 1.05, -15.65,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 80,80,80,150,


;;;;inner front
CreateMeshBuilder,
AddVertex,  1.40, 3.22, 6.80,
AddVertex, -1.40, 3.22, 6.80,
AddVertex, -1.40, 3.00, 6.80,
AddVertex,  1.40, 3.00, 6.80,
AddVertex,  1.40, 0.95, 6.80,
AddVertex, -1.40, 0.95, 6.80,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 130,130,50,
GenerateNormals,
LoadTexture, 2100_innerF.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,

;;engineer
CreateMeshBuilder,
AddVertex,  1.40, 3.22, 8.30,
AddVertex, -1.40, 3.22, 8.30,
AddVertex, -1.40, 3.00, 8.30,
AddVertex,  1.40, 3.00, 8.30,
AddVertex,  1.40, 0.95, 8.30,
AddVertex, -1.40, 0.95, 8.30,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 130,130,50,
GenerateNormals,
LoadTexture, 2100_innerD.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,


;;;;;inner back 
CreateMeshBuilder,
AddVertex,  1.34, 3.27, -15.50,
AddVertex, -1.34, 3.27, -15.50,
AddVertex, -1.34, 3.03, -15.50,
AddVertex,  1.34, 3.03, -15.50,
AddVertex,  1.34, 0.95, -15.50,
AddVertex, -1.34, 0.95, -15.50,
AddFace2, 0,1,2,3,
AddFace2, 3,2,5,4,
SetColor, 140,140,50,
GenerateNormals,
LoadTexture, 2100_innerB.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,0.11,
SetTextureCoordinates, 3,0,0.11,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
SetDecalTransparentColor, 0,0,255,
SetEmissiveColor, 120,120,120,


;;;;;underframe==========
CreateMeshBuilder,
AddVertex, -0.68,  0.90,  4.75,
AddVertex, -0.68,  0.90, -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,  0.90,  4.75,
AddVertex, 0.68,  0.90, -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,


;;;;;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, 180,180,180,
LoadTexture, pdr_floor.bmp,
SetTextureCoordinates, 0,0,3,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,3,0,
SetTextureCoordinates, 3,3,3,
SetEmissiveColor, 140,140,140,


;;;;;ceiling========
CreateMeshBuilder,
addVertex,  1.20, 3.33, 9.90,
addVertex, -1.20, 3.33, 9.90,
addVertex, -1.20, 3.33, -15.70,
addVertex,  1.20, 3.33, -15.70,
addFace2, 0,1,2,3,
SetColor, 60,60,240,
LoadTexture, pdr_floor.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,

;;;inner ceiling
CreateMeshBuilder,
addVertex,  1.20, 3.20, 8.20,
addVertex, -1.20, 3.20, 8.20,
addVertex, -1.20, 3.20, -15.66,
addVertex,  1.20, 3.20, -15.66,
addFace, 0,1,2,3,
SetColor, 140,140,70,
LoadTexture, ceiling2123.png,
SetTextureCoordinates, 0,-0.063,1,
SetTextureCoordinates, 1,-0.063,0,
SetTextureCoordinates, 2,-1,0,
SetTextureCoordinates, 3,-1,1,
SetEmissiveColor, 140,140,140,

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



;;;;;pantograph Faiveley type=========
CreateMeshBuilder,
AddVertex, -0.650, 5.000, 6.050,
addVertex,  0.650, 5.000, 6.050,
addVertex,  0.650, 4.180, 7.520,
addVertex, -0.650, 4.180, 7.520,
AddFace2, 0,1,2,3,
setColor, 222,227,225,
LoadTexture, panto_up.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,0,255,


;;;;;base=========
CreateMeshbuilder,
cylinder, 6, 0.07, 0.07, 2.0500000205
translate, 0.00, 7.5200000732, -0.570000057    
rotate, 65,0,0,65
setcolor, 145,36,36
;;//####
CreateMeshbuilder,
cylinder, 5, 0.04, 0.04, 1.9900000196
translate, 0.00, 7.4200000712, -0.5400000054    
rotate, 63,0,0,63
setcolor, 145,36,36


;;;;;---1st
CreateMeshbuilder,
cylinder, 6, 0.07, 0.07, 0.37000075
translate, 4.1400000415, 0.00, 7.5000000726    
rotate, 0,0,90,90
setcolor, 145,35,35

;;;---2nd
CreateMeshbuilder,
cylinder, 6, 0.04, 0.04, 0.520000051
translate, 4.3100000432, 0.00, 7.2600000726   
rotate, 0,0,90,90
setcolor, 146,36,36


;;;;;collector=====
CreateMeshBuilder,
AddVertex, -1.10, 4.80, 6.15,
AddVertex, -1.10, 4.80, 5.90,
AddVertex, -0.70, 5.00, 5.90,
AddVertex, -0.70, 5.00, 6.15,
AddVertex,  1.10, 4.80, 6.15,
AddVertex,  1.10, 4.80, 5.90,
AddVertex,  0.70, 5.00, 5.90,
AddVertex,  0.70, 5.00, 6.15,
AddFace2, 0,1,2,3,
AddFace2, 7,6,5,4,
AddFace2, 6,7,3,2,
SetColor, 90,90,90,





;;;;bogies R
CreateMeshBuilder,
AddVertex, 0.878, 0.90, 7.50,
AddVertex, 0.878, 0.90, 3.50,
AddVertex, 0.878, 0.20, 3.50,
AddVertex, 0.878, 0.20, 7.50,
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.50,
AddVertex, 0.878, 0.90, -9.50,
AddVertex, 0.878, 0.20, -9.50,
AddVertex, 0.878, 0.20, -13.50,
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.50,
AddVertex, -0.878, 0.90, 3.50,
AddVertex, -0.878, 0.20, 3.50,
AddVertex, -0.878, 0.20, 7.50,
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.50,
AddVertex, -0.878, 0.90, -9.50,
AddVertex, -0.878, 0.30, -9.50,
AddVertex, -0.878, 0.30, -13.50,
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,


;;;;coupler
CreateMeshBuilder,
AddVertex, -1.1, 0.10, 8.70,
AddVertex, -1.1, 0.90, 8.70,
AddVertex,  1.1, 0.90, 8.70,
AddVertex,  1.1, 0.10, 8.70,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, coupler3.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,0,255,




;;;;;side pilot lamps
CreateMeshBuilder,
Cylinder, 12, 0.028, 0.028, 0.25000  
SetColor, 0,0,0,
Translate, 1.450000, -2.780000, -2.820000 ;W;L;Height
Rotate, 90,0,0,90,
SetEmissiveColor, 254,0,0,
SetBlendMode,Additive,1,
;;;
CreateMeshBuilder,
Cube, 0.06, 0.09, 0.091000009,
Translate, 1.440000, 2.780000, -2.780000,  ;W;H;Length
rotate, 90,0,90,0,
SetColor, 100,100,110,



;;;;;side pilot lamps;; left
CreateMeshBuilder,
Cylinder, 12, 0.028, 0.028, 0.25000  
SetColor, 0,0,0,
Translate, -1.450000, -2.780000, -2.82000 
Rotate, 90,0,0,90,
SetEmissiveColor, 254,0,0,
SetBlendMode,Additive,1,
;;
CreateMeshBuilder,
Cube, 0.06, 0.09, 0.091000009,
Translate, -1.440000, 2.780000, -2.78000,  
rotate, 90,0,90,0,
SetColor, 100,100,110,


;;;;;wheels
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, 4.05000041
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.050000041
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.050000041
Rotate, 0,0,90,90,


;;;;;
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, 6.950000069
Rotate, 0,0,90,90,
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, 0.73500073, 6.950000069
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.950000069
Rotate, 0,0,90,90,



;;;;;;;;;
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, -10.06000006
Rotate, 0,0,90,90,
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, 0.73500073, -10.06000006
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.06000006
Rotate, 0,0,90,90,


;;;;
CreateMeshBuilder,
Cylinder, 18, 0.48, 0.48, -0.100002
SetColor, 15,5,20,
Translate, 0.4700034, -0.73500073, -12.950000013
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.950000013
Rotate, 0,0,90,90,
;;axle
CreateMeshBuilder,
Cylinder, 6, 0.078, 0.078, -1.7000000075
SetColor, 75,40,40,
Translate, 0.47000037, -0.0000000, -12.95000078
Rotate, 0,0,90,90,



;;;;glasses left
CreateMeshBuilder,
AddVertex, -1.38, 3.00, 9.9,
AddVertex, -1.38, 3.00, 3.0,
AddVertex, -1.38, 1.00, 3.0,
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.30,
AddVertex, -1.38, 3.00, -15.50,
AddVertex, -1.38, 1.00, -15.50,
AddVertex, -1.38, 1.00, -9.30,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,


;;;;glasses right
CreateMeshBuilder,
AddVertex, 1.38, 3.00, 9.90,
AddVertex, 1.38, 3.00, 3.00,
AddVertex, 1.38, 1.00, 3.00,
AddVertex, 1.38, 1.00, 9.90,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,
;;
CreateMeshBuilder,
AddVertex, 1.38, 3.00, 0.40,
AddVertex, 1.38, 3.00, -6.00,
AddVertex, 1.38, 1.00, -6.00,
AddVertex, 1.38, 1.00, 0.40,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,
;;;##
CreateMeshBuilder,
AddVertex, 1.38, 3.00, -9.30,
AddVertex, 1.38, 3.00, -15.50,
AddVertex, 1.38, 1.00, -15.50,
AddVertex, 1.38, 1.00, -9.30,
AddFace2, 0,1,2,3,
SetColor, 80,82,82,132
GenerateNormals,




;;;;;handholdsR;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.550, 2.200, 4.350,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.550, 2.200, 3.350,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.550, 2.200, 0.300,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.550, 2.200, -1.900,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.5500, 2.200, -4.100,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.5500, 2.200, -6.250,
rotate, 90,0,90,0,
SetColor, 210,210,210,

;;near the door
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.5500, 2.200, -9.250,
rotate, 90,0,90,0,
SetColor, 210,211,212,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.5500, 2.200, -10.200,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.5500, 2.200, -13.150,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, 0.5500, 2.200, -14.650,
rotate, 90,0,90,0,
SetColor, 210,210,210,


;;;;;----------------;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 22.4000,
translate, 0.5500, -4.4000, -2.9900,
rotate, 90,0,0,90,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 22.4000,
translate, 0.7500, -4.4000, -2.8400,
rotate, 90,0,0,90,
SetColor, 210,210,210,


;;;------------------;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 22.4000,
translate, -0.5500, -4.4000, -2.9900,
rotate, 90,0,0,90,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 22.4000,
translate, -0.7500, -4.4000, -2.8400,
rotate, 90,0,0,90,
SetColor, 200,210,210,


;;;;;handholdsL
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, 4.350,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, 3.350,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, 0.300,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -1.900,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -4.100,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -6.250,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;near the door
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -9.250,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -10.200,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -13.150,
rotate, 90,0,90,0,
SetColor, 210,210,210,
;;;last;; rear
CreateMeshbuilder,
cylinder, 5, 0.022, 0.022, 2.200,
translate, -0.5500, 2.200, -14.650,
rotate, 90,0,90,0,
SetColor, 210,210,210,


;;;;;handholds for doors;;;
CreateMeshBuilder,
AddVertex, -1.37, 3.22, 3.35,
AddVertex, -1.37, 1.02, 3.35,
AddVertex,  1.37, 1.02, 3.35,
AddVertex,  1.37, 3.22, 3.35,
AddFace2, 0,1,2,3,
SetColor, 240,240,240,,
GenerateNormals,
LoadTexture, handhold_d.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;;
CreateMeshBuilder,
AddVertex, -1.37, 3.22, 0.30,
AddVertex, -1.37, 1.02, 0.30,
AddVertex,  1.37, 1.02, 0.30,
AddVertex,  1.37, 3.22, 0.30,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, handhold_d.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,


;;;;;==;
CreateMeshBuilder,
AddVertex, -1.37, 3.22, -6.25,
AddVertex, -1.37, 1.02, -6.25,
AddVertex,  1.37, 1.02, -6.25,
AddVertex,  1.37, 3.22, -6.25,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, handhold_d.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;
;;;
CreateMeshBuilder,
AddVertex, -1.37, 3.22, -9.25,
AddVertex, -1.37, 1.02, -9.25,
AddVertex,  1.37, 1.02, -9.25,
AddVertex,  1.37, 3.22, -9.25,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, handhold_d.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,


;;upper ceiling, outer
CreateMeshBuilder,
AddVertex, 1.235, 3.60, 8.25,
AddVertex, 1.235, 3.60, -14.50,
AddVertex, 1.235, 3.25, -14.50,
AddVertex, 1.235, 3.25, 8.25,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, 2100mce.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;;;;
CreateMeshBuilder,
AddVertex, -1.235, 3.60, 8.25,
AddVertex, -1.235, 3.60, -14.50,
AddVertex, -1.235, 3.25, -14.50,
AddVertex, -1.235, 3.25, 8.25,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, 2100mce.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,


;;;;;upper cooler, inner
CreateMeshBuilder,
AddVertex, 0.90, 3.90, 5.25,
AddVertex, 0.90, 3.90, -11.00,
AddVertex, 0.90, 3.25, -11.00,
AddVertex, 0.90, 3.25, 5.25,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, 2100mcg.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 255,255,255,
;;;;;
CreateMeshBuilder,
AddVertex, -0.90, 3.90, 5.25,
AddVertex, -0.90, 3.90, -11.00,
AddVertex, -0.90, 3.25, -11.00,
AddVertex, -0.90, 3.25, 5.25,
AddFace2,  0,1,2,3,
GenerateNormals,
LoadTexture, 2100mcg.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 255,255,255,



;;headlights
CreateMeshBuilder,
Cylinder, 18, 0.109, 0.109, 0.100,
Rotate, 1,0,0,90,
Translate, 0.150, 3.200, 9.860,
SetColor, 0,0,0,
SetEmissiveColor, 255,255,255,
SetBlendMode,Additive,5,
;;
CreateMeshBuilder,
Cylinder, 18, 0.109, 0.109, 0.100,
Rotate, 1,0,0,90,
Translate, -0.100, 3.200, 9.860,
SetColor, 0,0,0,
SetEmissiveColor, 255,255,255,
SetBlendMode,Additive,5,


;;;the glowin'
CreateMeshBuilder
AddVertex,-1.25, 1.95, 9.93
AddVertex,-1.25, 4.35, 9.93
AddVertex, 1.25, 4.35, 9.93
AddVertex, 1.25, 1.95, 9.93
AddFace,3,2,1,0
SetColor, 0,0,0,
SetTextureCoordinates,0,1,1
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,0,0
SetTextureCoordinates,3,1,0
LoadTexture, glow_white.png
SetEmissiveColor,255,255,255,
SetBlendMode,Additive,150,DivideExponent2



;;side lamps
CreateMeshBuilder,
AddVertex, -1.01, 3.20, 9.91,
AddVertex, -1.01, 3.10, 9.91,
AddVertex, -0.86, 3.10, 9.91,
AddVertex, -0.86, 3.20, 9.91,
AddFace2, 0,1,2,3,
SetColor, 170,170,170,
GenerateNormals,
LoadTexture, sidelamp.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,0,0,
SetEmissiveColor, 160,140,140,
SetBlendMode,Additive,3,
;;
CreateMeshBuilder,
AddVertex, 1.04, 3.19, 9.91,
AddVertex, 1.04, 3.09, 9.91,
AddVertex, 0.89, 3.09, 9.91,
AddVertex, 0.89, 3.19, 9.91,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, sidelamp.bmp,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,0,0,
SetEmissiveColor, 160,140,140,
SetBlendMode,Additive,3,



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

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


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



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




;;;seats for butts;
CreateMeshBuilder,
addVertex,  1.32, 1.42, 8.8,
addVertex, -1.32, 1.42, 8.8,
addVertex, -1.32, 1.42, -14.6,
addVertex,  1.32, 1.42, -14.6,
addFace2, 0,1,2,3,
SetColor, 250,230,220,
LoadTexture, seat_bt.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,-1,0,
SetTextureCoordinates, 3,-1,1,
SetDecalTransparentColor, 0,255,0,


;;seat 4 backs;; front
CreateMeshBuilder,
AddVertex, -1.32, 1.41, 5.87,
AddVertex, -1.32, 2.21, 5.97,
AddVertex,  1.32, 2.21, 5.97,
AddVertex,  1.32, 1.41, 5.87,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0,
;;--
CreateMeshBuilder,
AddVertex, -1.32, 1.41, 4.45,
AddVertex, -1.32, 2.21, 4.35,
AddVertex,  1.32, 2.21, 4.35,
AddVertex,  1.32, 1.41, 4.45,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0,
;;##
CreateMeshBuilder,
AddVertex, -1.32, 1.41, 4.27,
AddVertex, -1.32, 2.21, 4.37,
AddVertex,  1.32, 2.21, 4.37,
AddVertex,  1.32, 1.41, 4.27,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0,


;;;===;;;
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -0.45,
AddVertex, -1.32, 2.21, -0.35,
AddVertex,  1.32, 2.21, -0.35,
AddVertex,  1.32, 1.41, -0.45,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0

;==;;
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -5.48,
AddVertex, -1.32, 2.21, -5.58,
AddVertex,  1.32, 2.21, -5.58,
AddVertex,  1.32, 1.41, -5.48,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0


;;;;;;;;;;;
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -10.08,
AddVertex, -1.32, 2.21, -10.18,
AddVertex,  1.32, 2.21, -10.18,
AddVertex,  1.32, 1.41, -10.08,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0
;;
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -10.28,
AddVertex, -1.32, 2.21, -10.18,
AddVertex,  1.32, 2.21, -10.18,
AddVertex,  1.32, 1.41, -10.28,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0


;;============;;
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -13.05,
AddVertex, -1.32, 2.21, -13.15,
AddVertex,  1.32, 2.21, -13.15,
AddVertex,  1.32, 1.41, -13.05,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0
;;
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -13.25,
AddVertex, -1.32, 2.21, -13.15,
AddVertex,  1.32, 2.21, -13.15,
AddVertex,  1.32, 1.41, -13.25,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0

;==;==
CreateMeshBuilder,
AddVertex, -1.32, 1.41, -14.59,
AddVertex, -1.32, 2.21, -14.69,
AddVertex,  1.32, 2.21, -14.69,
AddVertex,  1.32, 1.41, -14.59,
AddFace2, 0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetDecalTransparentColor, 0,255, 0


;;two side seats
CreateMeshBuilder,
AddVertex, -1.34, 1.91, -11.20,
AddVertex, -1.34, 1.91, -12.15,
AddVertex, -1.27, 1.41, -12.15,
AddVertex, -1.27, 1.41, -11.20,
AddFace2,  0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_side2.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,255,0,
;;
CreateMeshBuilder,
AddVertex, 1.34, 1.91, -11.20,
AddVertex, 1.34, 1.91, -12.15,
AddVertex, 1.27, 1.41, -12.15,
AddVertex, 1.27, 1.41, -11.20,
AddFace2,  0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_side2.bmp,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,255,0,


;;;side seats;; up
CreateMeshBuilder,
AddVertex, -1.34, 1.91, -1.55,
AddVertex, -1.34, 1.91, -4.39,
AddVertex, -1.27, 1.41, -4.39,
AddVertex, -1.27, 1.41, -1.55,
AddFace2,  0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk_side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;
CreateMeshBuilder,
AddVertex, 1.34, 1.91, -1.55,
AddVertex, 1.34, 1.91, -4.39,
AddVertex, 1.27, 1.41, -4.39,
AddVertex, 1.27, 1.41, -1.55,
AddFace2,  0,1,2,3,
SetColor, 220,200,190,
GenerateNormals,
LoadTexture, seat_bk_side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,



;;;;;feet for line seats;;;;;
CreateMeshBuilder,
AddVertex, -1.07, 1.42, -14.60,
AddVertex, -1.07, 1.42,  8.80,
AddVertex, -1.07, 1.02,  8.80,
AddVertex, -1.07, 1.02, -14.60,
AddFace2,  0,1,2,3,
SetColor, 160,160,160,
GenerateNormals,
LoadTexture, seat_feet.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;
CreateMeshBuilder,
AddVertex, -0.73, 1.42, -14.60,
AddVertex, -0.73, 1.42,  8.80,
AddVertex, -0.73, 1.02,  8.80,
AddVertex, -0.73, 1.02, -14.60,
AddFace2,  0,1,2,3,
SetColor, 160,160,160,
GenerateNormals,
LoadTexture, seat_feet.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,

;;;;===
CreateMeshBuilder,
AddVertex, 1.07, 1.42, -14.60,
AddVertex, 1.07, 1.42,  8.80,
AddVertex, 1.07, 1.02,  8.80,
AddVertex, 1.07, 1.02, -14.60,
AddFace2,  0,1,2,3,
SetColor, 160,160,160,
GenerateNormals,
LoadTexture, seat_feet.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,
;;
CreateMeshBuilder,
AddVertex, 0.73, 1.42, -14.60,
AddVertex, 0.73, 1.42,  8.80,
AddVertex, 0.73, 1.02,  8.80,
AddVertex, 0.73, 1.02, -14.60,
AddFace2,  0,1,2,3,
SetColor, 160,160,160,
GenerateNormals,
LoadTexture, seat_feet.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
SetDecalTransparentColor, 0,0,255,



;;;;;feet for side seats;;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -11.40,
AddVertex, -1.40, 1.02, -11.40,
AddVertex,  1.40, 1.02, -11.40,
AddVertex,  1.40, 1.42, -11.40,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -11.90,
AddVertex, -1.40, 1.02, -11.90,
AddVertex,  1.40, 1.02, -11.90,
AddVertex,  1.40, 1.42, -11.90,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,

;;;;;-----------;;;;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -4.10,
AddVertex, -1.40, 1.02, -4.10,
AddVertex,  1.40, 1.02, -4.10,
AddVertex,  1.40, 1.42, -4.10,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -3.50,
AddVertex, -1.40, 1.02, -3.50,
AddVertex,  1.40, 1.02, -3.50,
AddVertex,  1.40, 1.42, -3.50,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -2.90,
AddVertex, -1.40, 1.02, -2.90,
AddVertex,  1.40, 1.02, -2.90,
AddVertex,  1.40, 1.42, -2.90,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -2.30,
AddVertex, -1.40, 1.02, -2.30,
AddVertex,  1.40, 1.02, -2.30,
AddVertex,  1.40, 1.42, -2.30,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,
;;==;;
CreateMeshBuilder,
AddVertex, -1.40, 1.42, -1.70,
AddVertex, -1.40, 1.02, -1.70,
AddVertex,  1.40, 1.02, -1.70,
AddVertex,  1.40, 1.42, -1.70,
AddFace2, 0,1,2,3,
GenerateNormals,
LoadTexture, seat_feet_sd.bmp,
SetTextureCoordinates, 0,0,-1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,-1,
SetDecalTransparentColor, 0,0,255,



;;;glowing headlight
CreateMeshBuilder,
addVertex,  5.50, 0.03, 52.00,
addVertex, -5.50, 0.03, 52.00,
addVertex, -5.50, 0.03, 5.00,
addVertex,  5.50, 0.03, 5.00,
addFace, 3,2,1,0,,
LoadTexture, nothing1.png,
SetTextureCoordinates, 0,0,1,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,1,1,
SetEmissiveColor,255,255,0,
SetBlendMode,Additive,