//Display name of the vehicle
name RB 2014
//Unique Identifier
id rb_2014_tub

model rb_2014_tub.obj

//Possible textures of the vehicle
textures rb_2014_green.png

parents rb_2014_tu

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


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

//right seats from front to back
seat 0.9375 1.0 -5.15 false 0.8 180.0
seat 0.9375 1.0 -4.55 false 0.8 0.0
seat 0.9375 1.0 -3.15 false 0.8 180.0
seat 0.9375 1.0 -2.15 false 0.8 180.0
seat 0.9375 1.0 3.35 false 0.8 180.0
seat 0.9375 1.0 4.35 false 0.8 180.0
seat 0.9375 1.0 5.35 false 0.8 180.0
seat 0.9375 1.0 5.95 false 0.8 0.0
seat 0.9375 1.0 7.35 false 0.8 180.0
seat 0.9375 1.0 8.35 false 0.8 180.0

//left seats from front to back
seat -0.9375 1.0 -5.15 false 0.8 180.0
seat -0.9375 1.0 -4.55 false 0.8 0.0
seat -0.9375 1.0 -3.15 false 0.8 180.0
seat -0.9375 1.0 -2.15 false 0.8 180.0
seat -0.9375 1.0 0.95 false 0.8 0.0
seat -0.9375 1.0 2.35 false 0.8 180.0
seat -0.9375 1.0 3.35 false 0.8 180.0
seat -0.9375 1.0 4.35 false 0.8 180.0
seat -0.9375 1.0 5.35 false 0.8 180.0
seat -0.9375 1.0 5.95 false 0.8 0.0
seat -0.9375 1.0 7.35 false 0.8 180.0
seat -0.9375 1.0 8.35 false 0.8 180.0


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

trailer 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     false articulated_joint.png 0.1875    0.4313 0.4313 0.4313 1

couplerPosition 0 1 9.125


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_tow 


//Displays
display tub_front 0.9375 3.734375 -8.95 30 3.5 0 180
display tub_inside_middle_front 0.4375 3.38 -0.645 14 3 12.6 180
display tub_inside_middle_back -0.4375 3.38 -0.417 14 3 12.6 0

display tub_middle_right -1.505 3.0625 2.3125 20 4 0 -90
display tub_middle_left 1.505 3.0625 3.5625 20 4 0 90


//headlights
//right                       
light 0.7f 0.0f 0.0f 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.7f 0.0f 0.0f 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
                       
//left
light 0.7f 0.0f 0.0f 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.7f 0.0f 0.0f 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
            
          
//top
light 0.7f 0.0f 0.0f 1f 0      -0.25,3.81875,-8.85    0.25,3.81875,-8.85    0.25,3.7875,-8.88125    -0.25,3.7875,-8.88125   night day
light 0.7f 0.0f 0.0f 1f 0      -0.1875,3.88125,-8.7875    0.1875,3.88125,-8.7875    0.1875,3.81875,-8.85    -0.1875,3.81875,-8.85     night day