//Display name of the vehicle
name RB 2014 Traction Unit
//Unique Identifier
id rb_2014_tu

model rb_2014_tu.obj

//Possible textures of the vehicle
textures rb_2014_green.png

//Wheels. Wheel type -> Position coordinates -> whether it can rotate -> whether it's a left wheel
//front bogey
wheel train_wheel 1.09375 0.5 6.9375 false true
wheel train_wheel 1.09375 0.5 4.5625 false true
wheel train_wheel -1.09375 0.5 6.9375 false false
wheel train_wheel -1.09375 0.5 4.5625 false false

//back bogey
wheel train_wheel 1.09375 0.5 -8.3125 false true
wheel train_wheel 1.09375 0.5 -10.6875 false true
wheel train_wheel -1.09375 0.5 -8.3125 false false
wheel train_wheel -1.09375 0.5 -10.6875 false false

//Seats. Position coordinates -> whether or not it is a driver seat -> passenger scale -> rotation
seat 0 1.0 7.2 true

//right seats from front to back
seat -0.9375 1.0 5.15 false 0.8
seat -0.9375 1.0 4.55 false 0.8 180
seat -0.9375 1.0 3.15 false 0.8
seat -0.9375 1.0 2.15 false 0.8

seat -0.9375 1.0 -3.35 false 0.8
seat -0.9375 1.0 -4.35 false 0.8
seat -0.9375 1.0 -5.35 false 0.8
seat -0.9375 1.0 -5.95 false 0.8 180
seat -0.9375 1.0 -7.35 false 0.8
seat -0.9375 1.0 -8.35 false 0.8

//left seats from front to back
seat 0.9375 1.0 5.15 false 0.8
seat 0.9375 1.0 4.55 false 0.8 180
seat 0.9375 1.0 3.15 false 0.8
seat 0.9375 1.0 2.15 false 0.8

seat 0.9375 1.0 -0.95 false 0.8 180
seat 0.9375 1.0 -2.35 false 0.8
seat 0.9375 1.0 -3.35 false 0.8
seat 0.9375 1.0 -4.35 false 0.8
seat 0.9375 1.0 -5.35 false 0.8
seat 0.9375 1.0 -5.95 false 0.8 180
seat 0.9375 1.0 -7.35 false 0.8
seat 0.9375 1.0 -8.35 false 0.8


health 20
inventorySize 9

maxSpeed 2.77
acceleration 0.002
deceleration -0.005

//Dimensions used for hitbox calculations
width 3
length 18.8125
height 4

//Sound stuff
//soundEngineRunning 

//Whether or not players can ride this vehicle
rideable true

//x -> y -> z -> width -> height -> whether it connects to a trailer -> texture -> floor height -> floor red -> floor green -> floor blue -> floor alpha
articulatedJoint 0 1 -9.125     2.875 2.4375     true articulated_joint.png 0.1875    0.4313 0.4313 0.4313 1
trailerHitchPosition 0 1 -9.875


//Walkable area: 4 vertices -> section type
walkArea 1.25 1.0625 7.6     1.25 1.0625 1.6   -1.25 1.0625 1.6     -1.25 1.0625 7.6     default
walkArea 1.5 1.0625 1.6     1.5 1.0625 -0.5     -1.5 1.0625 -0.5     -1.5 1.0625 1.6     entrance 
walkArea 1.25 1.0625 -0.5     1.25 1.0625 -8.85     -1.25 1.0625 -8.85     -1.25 1.0625 -0.5     default 
walkArea 1.25 1.0625 -8.85     1.25 1.0625 -9.25     -1.25 1.0625 -9.25     -1.25 1.0625 -8.85     hop_trailer 


//Displays
display front -0.9375 3.734375 8.95 30 3.5 0 0
display inside_middle_front -0.4375 3.38 0.645 14 3 12.6 0
display inside_middle_back 0.4375 3.38 0.417 14 3 12.6 180

display middle_right -1.505 3.0625 -3.5625 20 4 0 -90
display middle_left 1.505 3.0625 -2.3125 20 4 0 90


//headlights
//right
light 0.9764f 0.8431f 0.6f 1f 0     -1,1.5,9.5625    -0.5,1.5,9.5625    -0.5,1.625,9.54375    -1,1.625,9.54375     night day
light 0.9764f 0.8431f 0.6f 1f 0     -1,1.625,9.54375    -0.5625,1.625,9.54375    -0.5625,1.6875,9.53125    -1,1.6875,9.53125     night day

//left
light 0.9764f 0.8431f 0.6f 1f 0     1,1.625,9.54375    0.5,1.625,9.54375    0.5,1.5,9.5625    1,1.5,9.5625    night day
light 0.9764f 0.8431f 0.6f 1f 0     1,1.6875,9.53125    0.5625,1.6875,9.53125    0.5625,1.625,9.54375     1,1.625,9.54375     night day

//top
light 0.9764f 0.8431f 0.6f 1f 0     -0.25,3.7875,8.88125    0.25,3.7875,8.88125    0.25,3.81875,8.85    -0.25,3.81875,8.85    night day
light 0.9764f 0.8431f 0.6f 1f 0     -0.1875,3.81875,8.85    0.1875,3.81875,8.85    0.1875,3.88125,8.7875    -0.1875,3.88125,8.7875    night day
