// This is a test jeep type vehicle for the wasteland

"vehicle"
{
	"wheelsperaxle"	"2"
	"body"
	{
		"countertorquefactor"	"1"
		"massCenterOverride"	"0 -10 0"
		"massoverride"		"800"		// kg
		"addgravity"		"1.3"
	}
	"engine"
	{
		"horsepower"		"500"
		"maxrpm"		"7000"
		"maxspeed"		"80"		// mph
		"maxReverseSpeed"	"20"		// mph
		"autotransmission"	"1"
		"axleratio"		"4.56"
		"gear"			"1.86"		// 1st gear
		"gear"			"1.59"		// 2nd gear
		"gear"			"1.17"		// 3rd gear
		"gear"			"1.0"		// 4th gear
		"gear"			"0.84"		// 5th gear
		"shiftuprpm"		"3500"
		"shiftdownrpm"		"1000"
	
		"boost"
		{
			"force"		"1.5"	// 1.5 car body mass * gravity * inches / second ^ 2
			"duration"	"7.0"	// 1 second of boost
			"delay"		"15"	// 15 seconds before you can use it again
			"torqueboost"	"1"	// enable "sprint" mode of vehicle, not	force type booster			
			"maxspeed"	"120"	// maximum turbo speed
			"force"		"2.5"	// use for value as a boost factor
		}
	}
	"steering"
	{
		"degreesSlow"		"35"	// steering cone at zero to slow speed
		"degreesFast"		"15"	// steering cone at fast speed to max speed
		"degreesBoost"		"10"	// steering cone at max boost speed (blend toward this after max speed)
		"steeringExponent"	"1.5"	// steering function is linear, then raised to this power to be slower at the beginning of the curve, faster at the end
		"slowcarspeed"		"20"
		"fastcarspeed"		"50"
		"slowSteeringRate"	"5.0"		
		"fastSteeringRate"	"1.0"
		"steeringRestRateSlow"	"5.0"
		"steeringRestRateFast"	"1.0"
		"turnThrottleReduceSlow" "0.5"
		"turnThrottleReduceFast" "1.5"
		"brakeSteeringRateFactor"	"6"
		"throttleSteeringRestRateFactor"	"2"
		"boostSteeringRestRateFactor"	"1.0"
		"boostSteeringRateFactor"	"1.0"

		"powerSlideAccel"	"250"

		"skidallowed"		"1"
		"dustcloud"		"1"

	}

	// front axle
	"axle"
	{
		"wheel"
		{
			"radius"	"15"
			"mass"		"100"
			"inertia"	"0.7"		// steady the car (fixes the oscillation of the axles about z)
			"damping"	"0"
			"rotdamping"	"0.0"
			"material"	"enzotire"
			"skidmaterial"	"enzotire"
			"brakematerial" "enzotire"
		}
		"suspension"
		{
			"springConstant"		"110"
			"springDamping"			"3"
			"stabilizerConstant"		"110"
			"springDampingCompression"	"4"
			"maxBodyForce"			"250"
		}

		"torquefactor"	"0.8"
		"brakefactor"	"0.6"
	}

	// rear axle
	"axle"
	{
		"wheel"
		{
			"radius"	"17"
			"mass"		"100"
			"inertia"	"1.5"		// steady the car (fixes the oscillation of the axles about z)
			"damping"	"0"
			"rotdamping"	"0.0"
			"material"	"rigmtire"
			"skidmaterial"	"rigmtire"
			"brakematerial" "rigmtire"
		}
		"suspension"
		{
			"springConstant"		"110"
			"springDamping"			"3"
			"stabilizerConstant"		"110"
			"springDampingCompression"	"4"
			"maxBodyForce"			"250"
		}
		"torquefactor"	"0.2"
		"brakefactor"	"0.4"
	}
}

"vehicle_sounds"
{
	// List gears in order from lowest speed to highest speed
	"gear"
	{
		"max_speed"		"0.2"
		"speed_approach_factor" "1.0"
	}
	"gear"
	{
		"max_speed"		"0.5"
		"speed_approach_factor" "0.08"
	}
	"gear"
	{
		"max_speed"		"0.7.5"
		"speed_approach_factor" "0.08"
	}
	"gear"
	{
		"max_speed"		"0.8"
		"speed_approach_factor" "0.050"
	}
	"gear"
	{
		"max_speed"		"0.9"
		"speed_approach_factor" "0.030"
	}
	"gear"
	{
		"max_speed"		"1.0"
		"speed_approach_factor" "0.10"
	}
	"state"
	{
		"name"		"SS_START_WATER"
		"sound"		"mini_start_in_water"
	}

	"state"
	{
		"name"		"SS_START_IDLE"
		"sound"		"mini_engine_start"
		"min_time"	"2.0"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN_WATER"
		"sound"		"mini_stall_in_water"
	}
	"state"
	{
		"name"		"SS_IDLE"
		"sound"		"mini_engine_idle"
	}
	"state"
	{
		"name"		"SS_REVERSE"
		"sound"		"mini_reverse"
		"min_time"	"1"
	}
	"state"
	{
		"name"		"SS_GEAR_0"
		"sound"		"mini_rev"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_0_RESUME"
		"sound"		"mini_engine_idle"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_1"
		"sound"		"mini_firstgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_1_RESUME"
		"sound"		"mini_firstgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_2"
		"sound"		"mini_secondgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_2_RESUME"
		"sound"		"mini_secondgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_3"
		"sound"		"mini_thirdgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_3_RESUME"
		"sound"		"mini_thirdgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_4"
		"sound"		"mini_fourthgear"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_GEAR_4_RESUME"
		"sound"		"mini_fourthgear_noshift"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN_HIGHSPEED"
		"sound"		"mini_throttleoff_fastspeed"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN"
		"sound"		"mini_throttleoff_slowspeed"
	}
	"state"
	{
		"name"		"SS_TURBO"
		"sound"		"mini_turbo_on"
		"min_time"	"7"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN"
		"sound"         "mini_engine_stop"
		"min_time"	"1"
	}
	"crashsound"
	{
		"min_speed"			"350"
		"min_speed_change"	"250"
		"sound"				"ATV_impact_medium"
		"gear_limit"		"1"
	}
	"crashsound"
	{
		"min_speed"			"450"
		"min_speed_change"	"350"
		"sound"				"ATV_impact_heavy"
	}

	
	"skid_lowfriction"		"ATV_skid_lowfriction"
	"skid_normalfriction"	"ATV_skid_normalfriction"
	"skid_highfriction"		"ATV_skid_highfriction"
}
