// This script was made by Iņaki, so if u gonna use it for your vehicle at least give me some credit.

"vehicle"
{
	"wheelsperaxle"	"2"
	"body"
	{
		"countertorquefactor"	"0.9"
		"massCenterOverride"	"0 0 -2.5"
		"massoverride"			"1000"		// kg
		"addgravity"			"0.25"
		"maxAngularVelocity"	"720"
	}
	"engine"
	{
		"horsepower"		"1500"
		"maxrpm"		"10000"
		"maxspeed"		"20"		// mph
		"maxReverseSpeed"	"5"		// mph
		"autobrakeSpeedGain"	"1.1"		// 10% speed gain while coasting, put on the brakes after that
		"autobrakeSpeedFactor"	"8.0"		// Brake is this times the speed gain
		"autotransmission"	"1"
		"axleratio"		"4.56"
		"gear"			"3.2"		// 1st gear
		"gear"			"2.4"		// 2nd gear
		"gear"			"1.5"		// 3rd gear
		"gear"			"1.0"		// 4th gear
		"gear"			"0.84"		// 5th gear
		"shiftuprpm"		"5000"
		"shiftdownrpm"		"2500"

		"boost"
		{
//			"force"		"3.5"	// 1.5 car body mass * gravity * inches / second ^ 2
			"duration"	".0"	// 1 second of boost
			"delay"		"10"	// 15 seconds before you can use it again
			"torqueboost"	"1"	// enable "sprint" mode of vehicle, not	force type booster			
			"maxspeed"	"50"	// maximum turbo speed
//			"force"		"2.5"	// use for value as a boost factor
		}
	}
	"steering"
	{
		"degreesSlow"		"50"	// steering cone at zero to slow speed
		"degreesFast"		"18"	// steering cone at fast speed to max speed
		"degreesBoost"		"11"	// steering cone at max boost speed (blend toward this after max speed)
		"steeringExponent"	"1.4"	// steering function is linear, then raised to this power to be slower at the beginning of the curve, faster at the end
		"slowcarspeed"		"14"
		"fastcarspeed"		"20"
		"slowSteeringRate"	"4.0"		
		"fastSteeringRate"	"2.0"
		"steeringRestRateSlow"	"4.0"
		"steeringRestRateFast"	"2.0"
		"turnThrottleReduceSlow" "0.01"
		"turnThrottleReduceFast" "2.0"
		"brakeSteeringRateFactor"	"6"
		"throttleSteeringRestRateFactor"	"2"
		"boostSteeringRestRateFactor"	"1.7"
		"boostSteeringRateFactor"	"1.7"

		"powerSlideAccel"	"250"

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

	}

	// front axle
	"axle"
	{
		"wheel"
		{
			"radius"	"13.8"
			"mass"		"100"
			"inertia"	"0.5"		// steady the car (fixes the oscillation of the axles about z)
			"damping"	"0"
			"rotdamping"	"0.0"
			"material"	"rubbertire"
			"skidmaterial"	"slidingrubbertire"
			"brakematerial" "brakingrubbertire"
		}
		"suspension"
		{
			"springConstant"		"35"	//"springConstant"		jeep	"40"	APC	"80"
			"springDamping"			"0.7"	//"springDamping"		jeep	"0.7"	APC	"4"
			"stabilizerConstant"		"110"	//"stabilizerConstant"		jeep	"10"	APC	"110"
			"springDampingCompression"	"4"	//"springDampingCompression"	jeep	"9"	APC	"4"
			"maxBodyForce"			"100"	//"maxBodyForce"		jeep	"9"	APC	"250"
		}

		"torquefactor"	"0.8"
		"brakefactor"	"0.5"
	}

	// rear axle
	"axle"
	{
		"wheel"
		{
			"radius"	"13.8"
			"mass"		"100"
			"inertia"	"0.5"		// steady the car (fixes the oscillation of the axles about z)
			"damping"	"0"
			"rotdamping"	"0.0"
			"material"	"rubbertire"
			"skidmaterial"	"slidingrubbertire"
			"brakematerial" "brakingrubbertire"
		}
		"suspension"
		{
			"springConstant"		"35"	//"springConstant"		jeep	"40"	APC	"80"
			"springDamping"			"0.7"	//"springDamping"		jeep	"0.7"	APC	"4"
			"stabilizerConstant"		"110"	//"stabilizerConstant"		jeep	"10"	APC	"110"
			"springDampingCompression"	"4"	//"springDampingCompression"	jeep	"9"	APC	"4"
			"maxBodyForce"			"100"	//"maxBodyForce"		jeep	"9"	APC	"250"
		}
		"torquefactor"	"0.2"
		"brakefactor"	"0.5"
	}
}

"vehicle_sounds"
{
	// List gears in order from lowest speed to highest speed

	"gear"
	{
		"max_speed"		"0.3"
		"speed_approach_factor" "1.0"
	}

	"gear"
	{
		"max_speed"		"0.5"
		"speed_approach_factor" "0.08"
	}
	"gear"
	{
		"max_speed"		"0.566"
		"speed_approach_factor" "0.05"
	}
	"gear"
	{
		"max_speed"		"0.628" // = 1040/1432
		"speed_approach_factor" "0.035"
	}
	"gear"
	{
		"max_speed"		"8.0"
		"speed_approach_factor" "0.01"
	}
	"state"
	{
		"name"		"SS_START_WATER"
		"sound"		"commoncar_start_in_water"
	}

	"state"
	{
		"name"		"SS_START_IDLE"
		"sound"		"commoncar_engine_start"
		"min_time"	"1.4"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN_WATER"
		"sound"		"commoncar_stall_in_water"
	}
	"state"
	{
		"name"		"SS_IDLE"
		"sound"		"commoncar_engine_idle"
	}
	"state"
	{
		"name"		"SS_REVERSE"
		"sound"		"commoncar_reverse"
		"min_time"	"0.35"
	}
	"state"
	{
		"name"		"SS_GEAR_0"
		"sound"		"commoncar_rev"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_0_RESUME"
		"sound"		"commoncar_engine_idle"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_1"
		"sound"		"commoncar_firstgear"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_1_RESUME"
		"sound"		"commoncar_firstgear_noshift"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_2"
		"sound"		"commoncar_secondgear"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_2_RESUME"
		"sound"		"commoncar_secondgear_noshift"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_3"
		"sound"		"commoncar_secondgear"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_3_RESUME"
		"sound"		"commoncar_secondgear_noshift"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_4"
		"sound"		"commoncar_thirdgear"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_GEAR_4_RESUME"
		"sound"		"commoncar_thirdgear_noshift"
		"min_time"	"0.75"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN_HIGHSPEED"
		"sound"		"commoncar_throttleoff_fastspeed"
	}
	"state"
	{
		"name"		"SS_SLOWDOWN"
		"sound"		"commoncar_throttleoff_slowspeed"
	}
	"state"
	{
		"name"		"SS_TURBO"
		"sound"		"commoncar_turbo_on"		//"ATV_turbo_on"
		"min_time"	"0.5"
	}
	"state"
	{
		"name"		"SS_SHUTDOWN"
		"sound"		"commoncar_engine_stop"
	}
	"crashsound"
	{
		"min_speed"			"350"
		"min_speed_change"	"250"
		"sound"				"commoncar_impact_medium"
		"gear_limit"		"1"
	}
	"crashsound"
	{
		"min_speed"			"450"
		"min_speed_change"	"350"
		"sound"				"commoncar_impact_heavy"
	}

	"skid_lowfriction"		"commoncar_skid_lowfriction"
	"skid_normalfriction"	"commoncar_skid_normalfriction"
	"skid_highfriction"		"commoncar_skid_highfriction"
}
