//STORE THIS HERE FOR NOW
//    frontalArmor(new EnumDriveablePart[] { }, "frontalArmor", "Frontal Armor"),
//    leftsideArmor(new EnumDriveablePart[] { }, "leftsideArmor", "Left Side Armor"),
//    rightsideArmor(new EnumDriveablePart[] { }, "rightsideArmor", "Right Side Armor"),
//    additionalArmor(new EnumDriveablePart[] { }, "additionalArmor", "Additional Armor"),
//    ERA(new EnumDriveablePart[] { }, "ERA", "ERA"),
//    APS(new EnumDriveablePart[] { }, "APS", "APS"),
//    ADS(new EnumDriveablePart[] { }, "ADS", "ADS"),




//Naming
Name Humvee (M2)
ShortName M2Humvee
//Visuals
Icon Humvee
Model dpn.M2Humvee
Texture Skin_M2Humvee
RotateWheels true
//Third Person Camera Distance
CameraDistance 5.0
//Throttle
MaxThrottle 0.7
MaxNegativeThrottle 0.45
//Steering modifiers
TurnLeftSpeed 1.0
TurnRightSpeed 1.0
//Drag
Drag 1.0
//Mass (In tons)
Mass 1.0
//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
MomentOfInertia 10.0
//More bounciness means the vehicle will bounce more upon going up slopes, but fall through the ground less
Bounciness 0.3
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
WheelPosition 0 -22 -10 -14
WheelPosition 1 -22 -10 14
WheelPosition 2 22 -10 14
WheelPosition 3 22 -10 -14
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 1000
//Inventory Slots
CargoSlots 0
ShellSlots 0
//Driver and passenger positions
Driver -8 5 -7
RotatedDriverOffset 0 0 0
Driver 5 2 -12
Passengers 4
Passenger 1 -3 18 0 core -40 40 -20 20 M2Browning PassengerGun1
GunOrigin 1 -3 18 0
Passenger 2 5 2 12 core
Passenger 3 -10 2 12 core
Passenger 4 -10 2 -12 core


//Delays are in ticks or 1/20ths of seconds
ShootDelay 999
ShellDelay 999
//Sounds
StartSound TruckStart
StartSoundLength 7
EngineSound TruckDrive
EngineSoundLength 61
ShootSound bullet
ShellSound shell
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 smallChassis 3 vehicleSeat
AddRecipeParts frontLeftWheel 1 wheel
AddRecipeParts frontRightWheel 1 wheel
AddRecipeParts backLeftWheel 1 wheel
AddRecipeParts backRightWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 green
//Health and collision
SetupPart core 220 -43 2 -21 88 12 42
SetupPart backLeftWheel 100 -38 -10 14 18 12 6
SetupPart backRightWheel 100 -38 -10 -20 18 12 6
SetupPart frontLeftWheel 100 26 -10 14 18 12 6
SetupPart frontRightWheel 100 26 -10 -20 18 12 6
SetupPart frontalArmor 220 -19 14 -21 35 12 42
BulletDetection 5
Description American Humvee
ModelScale 1.00
Paintjob HumveeForest Skin_M2HumveeForest green 5
Paintjob HumveeWinter Skin_M2HumveeWinter white 5



//Turret traverse speeds, yaw/pitch/z (z is unused, set to 0)
DriverAimSpeed 6.0f 6.0f 0f

//Set to true to adjust turret yaw before pitch
DriverYawBeforePitch false


//1st gear

AddEmitter explode 1 [-35,-2,8] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core

//2nd gear

AddEmitter explode 1 [-35,-2,8] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core

//3rd gear
AddEmitter explode 1 [-35,-2,8] [1,1,1] [0,0.7,0] 0.5 2 0 1 core

AddEmitter largesmoke 3 [-35,-2,8] [1,1,1] [0,0.5,0] 0.8 2 0 1 core

//4th gear change

AddEmitter largesmoke 1 [-35,-2,8] [1,1,1] [0,5,0] 0.7 0.75 0 1 core