;Clas 14 Diesel Locomotive,
;Object created by Alan Wheeler, aka Guillyman, email allanwheeler1@talktalk.net
;From photographs by David Perks and Rich, aka FusionRail
;Hosted by eezypeazy, email eezypeazy@eezypeazy.co.uk
;Copyright eezypeazy and Alan Wheeler 2008. All rights reserved.
;You may publish this object without alteration in your BVE routes providing that you acknowledge this copyright

;________Front Bonnet and Bufferbeam_____________,

CreateMeshBuilder,
Addvertex, -1.172,3.08,0.67,
Addvertex, 1.172,3.08,0.67,
Addvertex, -1.172,1.5,0.56,
Addvertex, 1.172,1.5,0.56,
Addvertex, -1.172,0.22,0.56,
Addvertex, 1.172,0.22,0.56,
Addface2, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Bonnet_End.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.558,
SetTextureCoordinates, 3,1,0.558,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
Setdecaltransparentcolor,0,0,255,

;________Behind Front Bufferbeam_________________,

CreateMeshBuilder,
Addvertex, 1.172,1.67,0.56,
Addvertex, -1.172,1.67,0.56,
Addvertex, 1.172,0.22,0.56,
Addvertex, -1.172,0.22,0.56,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Buffer_Rear.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear Bonnet and Bufferbeam______________,

CreateMeshBuilder,
Addvertex, 1.172,3.08,9.871,
Addvertex, -1.172,3.08,9.871,
Addvertex, 1.172,1.5,9.981,
Addvertex, -1.172,1.5,9.981,
Addvertex, 1.172,0.22,9.981,
Addvertex, -1.172,0.22,9.981,
Addface2, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Bonnet_End.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.558,
SetTextureCoordinates, 3,1,0.558,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
Setdecaltransparentcolor,0,0,255,

;________Behind Rear Bufferbeam__________________,

CreateMeshBuilder,
Addvertex, -1.172,1.67,9.981,
Addvertex, 1.172,1.67,9.981,
Addvertex, -1.172,0.22,9.981,
Addvertex, 1.172,0.22,9.981,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Buffer_Rear.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 1 Side Bonnet Sides______________,

CreateMeshBuilder,
Addvertex, -0.76,3.08,9.991,
Addvertex, -0.76,3.08,0.55,
Addvertex, -0.76,1.49,9.991,
Addvertex, -0.76,1.49,0.55,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Bonnet_Side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 2 Side Bonnet Sides______________,

CreateMeshBuilder,
Addvertex, 0.76,3.08,0.55,
Addvertex, 0.76,3.08,9.991,
Addvertex, 0.76,1.49,0.55,
Addvertex, 0.76,1.49,9.991,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Bonnet_Side.png,
SetTextureCoordinates, 0,1,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
Setdecaltransparentcolor,0,0,255,

;________Footplate_______________________________,

CreateMeshBuilder,
Addvertex, -1.242,1.5,10.021,
Addvertex, 1.242,1.5,10.021,
Addvertex, -1.242,1.5,0.52,
Addvertex, 1.242,1.5,0.52,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture,  Cl_14_Footplate.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 1 Side Wheels____________________,

CreateMeshBuilder,
Addvertex, -0.7175,1.51,10.531,
Addvertex, -0.7175,1.51,0.01,
Addvertex, -0.7175,0,10.531,
Addvertex, -0.7175,0,0.01,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Wheels.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 2 Side Wheels____________________,

CreateMeshBuilder,
Addvertex, 0.7175,1.51,0.01,
Addvertex, 0.7175,1.51,10.531,
Addvertex, 0.7175,0,0.01,
Addvertex, 0.7175,0,10.531,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Wheels.png,
SetTextureCoordinates, 0,1,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
Setdecaltransparentcolor,0,0,255,

;________Cab Front_______________________________,

CreateMeshBuilder,
Addvertex, -1.202,3.923,5.18,
Addvertex, 1.202,3.923,5.18,
Addvertex, -1.202,1.49,5.18,
Addvertex, 1.202,1.49,5.18,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Cab_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Cab Rear________________________________,

CreateMeshBuilder,
Addvertex, 1.202,3.923,7.22,
Addvertex, -1.202,3.923,7.22,
Addvertex, 1.202,1.49,7.22,
Addvertex, -1.202,1.49,7.22,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Cab_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Cab Sides and Roof______________________,

CreateMeshBuilder,
Addvertex, 1.192,1.242,7.336,
Addvertex, 1.192,1.242,5.17,
Addvertex, 1.192,2.52,7.336,
Addvertex, 1.192,2.52,5.17,
Addvertex, 1.14,3.285,7.336,
Addvertex, 1.14,3.285,5.17,
Addvertex, 0.766,3.67,7.336,
Addvertex, 0.766,3.67,5.17,
Addvertex, 0.383,3.85,7.336,
Addvertex, 0.383,3.85,5.17
Addvertex, 0,3.903,7.336,
Addvertex, 0,3.903,5.17,
Addvertex, -0.383,3.85,7.336,
Addvertex, -0.383,3.85,5.17
Addvertex, -0.766,3.67,7.336,
Addvertex, -0.766,3.67,5.17,
Addvertex, -1.14,3.285,7.336,
Addvertex, -1.14,3.285,5.17,
Addvertex, -1.192,2.52,7.336,
Addvertex, -1.192,2.52,5.17,
Addvertex, -1.192,1.242,7.336,
Addvertex, -1.192,1.242,5.17,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
Addface, 8,9,11,10,
Addface, 10,11,13,12,
Addface, 12,13,15,14,
Addface, 14,15,17,16,
Addface, 16,17,19,18,
Addface, 18,19,21,20,
generatenormals,
LoadTexture, Cl_14_Cab_Roof_Sides.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.23,
SetTextureCoordinates, 3,1,0.23,
SetTextureCoordinates, 4,0,0.38,
SetTextureCoordinates, 5,1,0.38,
SetTextureCoordinates, 6,0,0.435,
SetTextureCoordinates, 7,1,0.435,
SetTextureCoordinates, 8,0,0.4675,
SetTextureCoordinates, 9,1,0.4675,
SetTextureCoordinates, 10,0,0.5,
SetTextureCoordinates, 11,1,0.5,
SetTextureCoordinates, 12,0,0.5325,
SetTextureCoordinates, 13,1,0.5325,
SetTextureCoordinates, 14,0,0.565,
SetTextureCoordinates, 15,1,0.565,
SetTextureCoordinates, 16,0,0.62,
SetTextureCoordinates, 17,1,0.62,
SetTextureCoordinates, 18,0,0.77,
SetTextureCoordinates, 19,1,0.77,
SetTextureCoordinates, 20,0,1,
SetTextureCoordinates, 21,1,1,
Setdecaltransparentcolor,0,0,255,

;________Front Buffers___________________________,

CreateMeshBuilder,
Addvertex, -1.04,1.33,0,
Addvertex, 1.04,1.33,0,
Addvertex, -1.04,0.99,0,
Addvertex, 1.04,0.99,0,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Buffers.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear Buffers____________________________,

CreateMeshBuilder,
Addvertex, 1.04,1.33,10.541,
Addvertex, -1.04,1.33,10.541,
Addvertex, 1.04,0.99,10.541,
Addvertex, -1.04,0.99,10.541,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Buffers.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 1 Side Cab Step__________________,

CreateMeshBuilder,
Addvertex, -1.192,1.41,6.09,
Addvertex, -1.192,1.41,5.395,
Addvertex, -1.192,0.38,6.09,
Addvertex, -1.192,0.38,5.395,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Cab_Step.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 2 Side Cab Step__________________,

CreateMeshBuilder,
Addvertex, 1.192,1.41,5.395,
Addvertex, 1.192,1.41,6.09,
Addvertex, 1.192,0.38,5.395,
Addvertex, 1.192,0.38,6.09,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Cab_Step.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 1 Side Front Step________________,

CreateMeshBuilder,
Addvertex, -0.758,1.82,5.18,
Addvertex, -0.758,1.82,0.56,
Addvertex, -1.192,1.82,5.18,
Addvertex, -1.192,1.82,0.56,
Addvertex, -1.192,0.44,5.18,
Addvertex, -1.192,0.44,0.56,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Front_Step.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.211,
SetTextureCoordinates, 3,1,0.211,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
Setdecaltransparentcolor,0,0,255,

;________Number 2 Side Front Step________________,

CreateMeshBuilder,
Addvertex, 0.758,1.82,0.56,
Addvertex, 0.758,1.82,5.18,
Addvertex, 1.192,1.82,0.56,
Addvertex, 1.192,1.82,5.18,
Addvertex, 1.192,0.44,0.56,
Addvertex, 1.192,0.44,5.18,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Front_Step.png,
SetTextureCoordinates, 0,1,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0.211,
SetTextureCoordinates, 3,0,0.211,
SetTextureCoordinates, 4,1,1,
SetTextureCoordinates, 5,0,1,
Setdecaltransparentcolor,0,0,255,

;________Number 1 Side Rear Step_________________,

CreateMeshBuilder,
Addvertex, -0.758,1.82,9.981,
Addvertex, -0.758,1.82,7.22,
Addvertex, -1.192,1.82,9.981,
Addvertex, -1.192,1.82,7.22,
Addvertex, -1.192,0.44,9.981,
Addvertex, -1.192,0.44,7.22,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Rear_Step.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,0.599,0,
SetTextureCoordinates, 2,0,0.211,
SetTextureCoordinates, 3,0.599,0.211,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,0.599,1,
Setdecaltransparentcolor,0,0,255,

;________Number 2 Side Rear Step_________________,

CreateMeshBuilder,
Addvertex, 0.758,1.82,7.22,
Addvertex, 0.758,1.82,9.981,
Addvertex, 1.192,1.82,7.22,
Addvertex, 1.192,1.82,9.981,
Addvertex, 1.192,0.44,7.22,
Addvertex, 1.192,0.44,9.981,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Rear_Step.png,
SetTextureCoordinates, 0,0.599,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,0.599,0.211,
SetTextureCoordinates, 3,0,0.211,
SetTextureCoordinates, 4,0.599,1,
SetTextureCoordinates, 5,0,1,
Setdecaltransparentcolor,0,0,255,

;________Front Sideplate Ends____________________,

CreateMeshBuilder,
Addvertex, -1.192,1.83,1.66,
Addvertex, 1.192,1.83,1.66,
Addvertex, -1.192,1.49,1.66,
Addvertex, 1.192,1.49,1.66,
Addface, 0,1,3,2,
generatenormals,
SetColor, 49,74,57,

;________Rear Sideplate Ends_____________________,

CreateMeshBuilder,
Addvertex, 1.192,1.83,8.881,
Addvertex, -1.192,1.83,8.881,
Addvertex, 1.192,1.49,8.881,
Addvertex, -1.192,1.49,8.881,
Addface, 0,1,3,2,
generatenormals,
SetColor, 49,74,57,

;________Front Bonnet Top________________________,

CreateMeshBuilder,
Addvertex, -0.77,3.07,5.18,
Addvertex, 0.77,3.07,5.18,
Addvertex, -0.77,3.07,0.64,
Addvertex, 0.77,3.07,0.64,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Front_Bonnet_Top.png,
SetTextureCoordinates, 0,0.005,0.005,
SetTextureCoordinates, 1,0.995,0.005,
SetTextureCoordinates, 2,0.005,0.995,
SetTextureCoordinates, 3,0.995,0.995,

;________Rear Bonnet Top_________________________,

CreateMeshBuilder,
Addvertex, 0.77,3.07,7.21,
Addvertex, -0.77,3.07,7.21,
Addvertex, 0.77,3.07,9.901,
Addvertex, -0.77,3.07,9.901,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Front_Bonnet_Top.png,
SetTextureCoordinates, 0,0.005,0.219,
SetTextureCoordinates, 1,0.995,0.219,
SetTextureCoordinates, 2,0.005,0.740,
SetTextureCoordinates, 3,0.995,0.740,

;________End A Horns Front_______________________,

CreateMeshBuilder,
Addvertex, -0.209,3.28,4.48,
Addvertex, 0.209,3.28,4.48,
Addvertex, -0.209,3.06,4.48,
Addvertex, 0.209,3.06,4.48,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Horns_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Front Horns Casing______________________,

CreateMeshBuilder,
Addvertex, -0.199,3.05,4.47,
Addvertex, -0.199,3.05,4.97,
Addvertex, -0.199,3.17,4.47,
Addvertex, -0.199,3.17,4.97,
Addvertex, -0.099,3.27,4.47,
Addvertex, -0.099,3.27,4.97,
Addvertex, 0.099,3.27,4.47,
Addvertex, 0.099,3.27,4.97,
Addvertex, 0.199,3.17,4.47,
Addvertex, 0.199,3.17,4.97,
Addvertex, 0.199,3.05,4.47,
Addvertex, 0.199,3.05,4.97,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
Addface, 8,9,11,10,
generatenormals,
SetColor, 99,123,115,

;________End B Horns Front_______________________,

CreateMeshBuilder,
Addvertex, 0.209,3.28,7.71,
Addvertex, -0.209,3.28,7.71,
Addvertex, 0.209,3.06,7.71,
Addvertex, -0.209,3.06,7.71,
Addface, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Horns_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear Horns Casing_______________________,

CreateMeshBuilder,
Addvertex, 0.199,3.05,7.71,
Addvertex, 0.199,3.05,7.21,
Addvertex, 0.199,3.17,7.71,
Addvertex, 0.199,3.17,7.21,
Addvertex, 0.099,3.27,7.71,
Addvertex, 0.099,3.27,7.21,
Addvertex, -0.099,3.27,7.71,
Addvertex, -0.099,3.27,7.21,
Addvertex, -0.199,3.17,7.71,
Addvertex, -0.199,3.17,7.21,
Addvertex, -0.199,3.05,7.71,
Addvertex, -0.199,3.05,7.21,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
Addface, 8,9,11,10,
generatenormals,
SetColor, 99,123,115,

;________Extractor Number 1 Side_________________,

CreateMeshBuilder,
Addvertex, -0.516,3.78,5.18,
Addvertex, -0.516,3.78,4.82,
Addvertex, -0.399,3.574,5.18,
Addvertex, -0.399,3.574,4.82,
Addvertex, -0.399,3.06,5.18,
Addvertex, -0.399,3.06,4.82,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Extractor_Side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.324,
SetTextureCoordinates, 3,1,0.324,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
Setdecaltransparentcolor,0,0,255,

;________Extractor Number 2 Side_________________,

CreateMeshBuilder,
Addvertex, 0.516,3.78,4.82,
Addvertex, 0.516,3.78,5.18,
Addvertex, 0.399,3.574,4.82,
Addvertex, 0.399,3.574,5.18,
Addvertex, 0.399,3.06,4.82,
Addvertex, 0.399,3.06,5.18,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Extractor_Side.png,
SetTextureCoordinates, 0,1,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,0.324,
SetTextureCoordinates, 3,0,0.324,
SetTextureCoordinates, 4,1,1,
SetTextureCoordinates, 5,0,1,
Setdecaltransparentcolor,0,0,255,

;________Extractor Front_________________________,

CreateMeshBuilder,
Addvertex, -0.526,3.873,4.81,
Addvertex, 0.526,3.873,4.81,
Addvertex, -0.526,3.574,4.92,
Addvertex, 0.526,3.574,4.92,
Addvertex, -0.526,3.06,4.83,
Addvertex, 0.526,3.06,4.83,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
generatenormals,
LoadTexture, Cl_14_Extractor_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.344,
SetTextureCoordinates, 3,1,0.344,
SetTextureCoordinates, 4,0,1,
SetTextureCoordinates, 5,1,1,
Setdecaltransparentcolor,0,0,255,

;________Extractor Top___________________________,

CreateMeshBuilder,
Addvertex, -0.526,3.77,4.83,
Addvertex, -0.526,3.77,5.18,
Addvertex, -0.18,3.85,4.80,
Addvertex, -0.18,3.85,5.18,
Addvertex, 0.18,3.85,4.80,
Addvertex, 0.18,3.85,5.18,
Addvertex, 0.526,3.77,4.83,
Addvertex, 0.526,3.77,5.18,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
generatenormals,
LoadTexture, Cl_14_Extractor_Top.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.333,
SetTextureCoordinates, 3,1,0.333,
SetTextureCoordinates, 4,0,0.667,
SetTextureCoordinates, 5,1,0.667,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,

;________Front Headlamp Face_____________________,

CreateMeshBuilder,
Addvertex, -0.209,3.3,0.73,
Addvertex, 0.209,3.3,0.73,
Addvertex, -0.209,3.06,0.73,
Addvertex, 0.209,3.06,0.73,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Headlamp_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear Headlamp Face_____________________,

CreateMeshBuilder,
Addvertex, 0.209,3.3,9.811,
Addvertex, -0.209,3.3,9.811,
Addvertex, 0.209,3.06,9.811,
Addvertex, -0.209,3.06,9.811,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Headlamp_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Front Headlamp LH Body_________________________,

CreateMeshBuilder,
Addvertex, -0.11,3.3,0.885,
Addvertex, -0.11,3.3,0.725,
Addvertex, -0.11,3.13,0.885,
Addvertex, -0.11,3.13,0.725,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Headlamp_Side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Front Headlamp RH Body_________________________,

CreateMeshBuilder,
Addvertex, 0.11,3.3,0.885,
Addvertex, 0.11,3.3,0.725,
Addvertex, 0.11,3.13,0.885,
Addvertex, 0.11,3.13,0.725,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Headlamp_Side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear Headlamp LH Body_________________________,

CreateMeshBuilder,
Addvertex, -0.11,3.3,9.656,
Addvertex, -0.11,3.3,9.816,
Addvertex, -0.11,3.13,9.656,
Addvertex, -0.11,3.13,9.816,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Headlamp_Side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear Headlamp RH Body_________________________,

CreateMeshBuilder,
Addvertex, 0.11,3.3,9.656,
Addvertex, 0.11,3.3,9.816,
Addvertex, 0.11,3.13,9.656,
Addvertex, 0.11,3.13,9.816,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Cl_14_Headlamp_Side.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,