//Naming
Name Technical (M2)
ShortName Technical
//Visuals
Icon M2GunTruck
Model dpn.GunTruck
Texture Technical
RotateWheels false
//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.
NumWheels 4
WheelPosition 0 -75.5 0 23
WheelPosition 1 -75.5 0 -23
WheelPosition 2 23 0 -23
WheelPosition 3 23 0 23
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 2250
//Inventory Slots
CargoSlots 0
ShellSlots 0
//Driver and passenger positions
Driver -15 3 -8
Passengers 2
Passenger 1 -15 5 8 core
Passenger 2 -55 17 0 core -40 40 -10 10 lw_gun_M2Browning PassengerGun2
GunOrigin 2 -72 54 0

//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 50 -92 6 -31 127 18 60
SetupPart frontRightWheel 100 7,5 -10 -24 21 21 10
SetupPart frontLeftWheel 100 5,5 -11 19 21 21 10
SetupPart backLeftWheel 100 -72 -10 19 21 21 10
SetupPart backRightWheel 100 -70 -10 -29 21 21 10
BulletDetection 5
Description Improvised Technical
ModelScale 0.60



//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