car
{
	name=Ford Sierra RS500 Race v1.0 (beta)
	year=1987
	credits=FSR, Mr. Whippy, C14ru5
	comments=Race version
	id=rs500race
	version=065
	wheels=4
	shadow
	{
		texture=shadow.tga
		width=2.2
		length=4.6
		intensity_dark=0.75
		intensity_light=0.25
	}
	cg
	{
		x=0.0
		y=-0.2 ;-0.15		;38% roof height ~ 138cm high ~ 524mm
		z=0.36
	}
	;ff_factor=0.11
	ff_factor=0.8			; MOMO Force

}
ai
{
  understeer_correct=20
  oversteer_correct=20
  grip_factor=1.2
}
graphics
{
	shadow
	{
		model
		{
			;file=
			;use_shaders=0
		}
	}
}

body
{
	mass=1217	;1217kg unladen - 100kg unsprung + 75kg driver + 25kg fuel = 1217
	inertia
	{
		x=2375 ;2850 ;1900 + "slow down" factor of 50% = 2850 (25% = 2375)
		y=2875 ;3450 ;2300 + "slow down" factor of 50% = 3450 (25% = 2875)
		z=630 ;420 + "slow down" factor of 100% = 840 (50% = 630)
	}
	width=1.725
	height=1.380
	length=4.425
	manual_box=0
	model
	{
		file=body_race.dof
	}
	model_braking_l
	{
		file=brakelights.dof
		offset
		{
			z=0.0
		}
	}
	model_incar
	{
		;file=
	}
}

steer
{
	x=0.360
	y=0.47
	z=0.475
	radius=18.5
	xa=10
	lock=864			;2.4turns lock to lock
	;linearity=1.04			;sim/real = 900/864 = 1.04
	linearity=0.7			; MOMO Force
	model
	{
		;file=
	}
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0
	idle_rpm=850
	max_rpm=7000
	autoclutch_rpm=1500
	starter=1
	starter_torque=100
	start_stalled=0
	enable_stall=1
	start_rpm=1500	
	stall_rpm=550
	curve_torque=torque224.crv
	;curve_torque=torque350.crv
	;curve_torque=torque550.crv
	max_torque=2.5
	torque_reaction=1
	braking_coeff=2.0
	sample=engine.wav
	sample_rpm=7000
	shifting
	{
		automatic=0
		shift_up_rpm=6250
		shift_down_rpm=2000
		time_to_declutch=50
		time_to_clutch=150
		time_in_neutral=0
		time_to_declutch_down=50
		time_to_clutch_down=150
		time_in_neutral_down=0
		cut_throttle=0
		blip_throttle=0
	}
  	inertia
	{
		engine=0.25
		final_drive=0.1
	}

}


gearbox
{
	gears=6
	gear0
	{
		inertia=0.21
		ratio=-2.75
	}
	gear1
	{
		ratio=2.95
		inertia=0.13
	}
	gear2
	{
		ratio=1.94
		inertia=0.09
	}
	gear3
	{
		ratio=1.34
		inertia=0.07
	}
	gear4
	{
		ratio=1.00
		inertia=0.05
	}
	gear5
	{
		ratio=0.80
		inertia=0.03
	}
}

differentials
{
	count=1
	diff0
	{
		type=1
		ratio=3.64
		inertia=0.1
		locking_coeff=100
		output0=2
		output1=3
		friction=80		;80 @ 224, 102 @ 350, 140 @ 550
		
		;preload=5
		;power_coeff=0.025
		;coast_coeff=0.005
	}
}

clutch
{
	max_torque=960			;320 @ 224, 480 @ 350, 720 @ 550
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.34
		area=2
	}
	wings=3
	wing0
	{
		name=Overall Lift
		span=1
		cord=1
		coeff_drag=0
		coeff_down=-5.3		;18kg lift @ 200 km/h
		center=0 0 0
		angle=0
		angle_offset=1
	}
	wing1
	{
		name=Front
		span=1
		cord=1
		coeff_drag=0
		coeff_down=15 
		center=0 0 2.2
		angle=0
		angle_offset=1
	}
	wing2
	{
		name=Rear
		span=1
		cord=1
		coeff_drag=0
		coeff_down=45
		center=0 0 -2
		angle=0
		angle_offset=1
	}
}

antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=40000 ;39000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=15000 ;21000
	}
}

susp_front
{
	y=0.0
	z=1.305
	
	restlen=0.43	;393mm
	minlen=0.18	;34
	maxlen=0.44
	
	k=84000 ;56000 ;28000
	
	bumpstop_len=0.08
	bumpstop_k=44000

	damper_curve=damper_front.crv

	; Old stuff
	;bump_rate=6000
	;rebound_rate=8000
	;bump_function=3
	;rebound_function=0
	
	anti_pitch=0.08
	
	camber_change_per_m=0.05
	caster_offset=-0.02
	
	roll_center
	{
		x=0
		y=-0.64 ; -0.45/-103mm
		z=0
	}
}

susp_rear
{
	y=0.0
	z=-1.305
	
	restlen=0.42 ;0.52	;421mm
	minlen=0.205	;345
	maxlen=0.42
	
	k=72000 ;48000 ; 24000
	
	bumpstop_len=0.05
	bumpstop_k=48000

	damper_curve=damper_rear.crv

	; Old stuff
	;bump_rate=6000
	;rebound_rate=8000
	;bump_function=3
	;rebound_function=0
	
	anti_pitch=0.15
	
	camber_change_per_m=0.27
	
	roll_center
	{
		x=0
		y=-0.61
		z=0
	}
}

; Wheelbase 2608
; Track F/R 1452/1468mm
susp0~susp_front
{
	x=0.726
	camber_change_steering=0.07
	toe_change_per_m=0.02
}

susp1~susp_front
{
	x=-0.726
	camber_change_steering=-0.07
	toe_change_per_m=-0.02
}

susp2~susp_rear
{
	x=0.734
	toe_change_per_m=-0.1
}

susp3~susp_rear
{
	x=-0.734
	toe_change_per_m=0.1
}

tire_model
{
	damping_predict_lat=0
	damping_predict_long=0
}

pacejka
{
    a0=1.3
    a1=-40
    a2=1500
    a3=2200
    a4=8.7
    a5=0.014
    a6=-0.24
    a7=1.0
    a8=-0.03
    a9=-0.0013
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.4
    b1=-80
    b2=2150
    b3=23.3
    b4=390
    b5=0.05
    b6=0
    b7=0.055
    b8=-0.024
    b9=0.014
    b10=0.26
    c0=2.2
    c1=-3.9
    c2=-3.9
    c3=-1.26
    c4=-8.2
    c5=0.025
    c6=0
    c7=0.044
    c8=-0.58
    c9=0.18
    c10=0.043
    c11=0.048
    c12=-0.0035
    c13=-0.18
    c14=0.14
    c15=-1.029
    c16=0.27
    c17=-1.1
    optimal_slipratio=0.1
    optimal_slipangle=0.15
}

skidding_default
{
	long_start=0
	long_max=0
	long_start_n=0
	long_max_n=0
	lat_start=0
	lat_max=0
}

; Minimum turning circle 10.1m
wheel_front
{
	y=0
	z=0
	steering=1
	lock=40
	ackerman=1.15
	max_braking=2500
	braking_factor=1
	camber=-3.0
	mass=30
	inertia=0.75
	radius=0.302						;215/40-17
	rolling_coeff=0.011
	friction_road=1
	tire_rate=220000	
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	max_braking=2500
	braking_factor=0.2
	max_handbrake_torque=3360
	camber=-1.5
	steering=0
	powered=1
	mass=30
	inertia=0.7
	radius=0.302						;215/40-17
	rolling_coeff=0.011
	friction_road=1
	tire_rate=220000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	toe=0.5							;-0.1
	model
	{
		file=left.dof
		offset
		{
			x=-0.00
		}
	}
	model_brake
	{
		file=

	}
}

wheel1~wheel_front
{
	x=-0.0
	toe=-0.5							;0.1
	model
	{
		file=right.dof
		offset
		{
			x=0.00
		}
	}
	model_brake
	{
		file=
	}
}

wheel2~wheel_rear
{
	x=0.0
	toe=-0.5								;-0.15
	model
	{
		file=left.dof
		offset
		{
			x=-0.00
		}
	}
	model_brake
	{
		file=
	}
}

wheel3~wheel_rear
{
	x=-0.0
	toe=0.5								;0.15
	model
	{
		file=right.dof
		offset
		{
			x=0.00
		}
	}
	model_brake
	{
		file=
	}
}

; CAMERA SETTINGS
; -------------------------------------------------------------

camera0
{	
	name=Hood
	fov=62.5
	model=0
	wheels=2
	view=0
	offset
	{
		x=-0.0
		y=0.40
		z=0.95
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset_to
	{
		x=0
		y=0
		z=5
	}
	src
	{
		mass=2
		k=3000
		damping=500
		maxdist=0.01
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}

camera1
{
	name=ChaseNormal
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=2
		z=-7
	}
	follow
	{
		pitch=0
		yaw=0
		roll=0
	}
	src
	{
		mass=6
		k=600
		damping=200
		maxdist=2
	}
	angle
	{
		x=10
		y=180
		z=0
	} 
}

camera2
{
	name=ChaseClose
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=1.5
		z=-5
	}
	follow
	{
		pitch=0
		yaw=0
		roll=0
	}
	src
	{
		mass=6
		k=600
		damping=120
		maxdist=2
	}
	angle
	{
		x=5
		y=180
		z=0
	} 
}

camera3
{
  name=Inside Driver
  fov=65
  model=1
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.4
    y=-0.32
    z=-0.07
  }
  angle
  {
    x=4
    y=180.0
    z=0
  } 
}

camera4
{
	name=FrontBumper
	model=2
	wheels=2
	view=1
	fov=75
	offset
	{
		x=0
		y=-0.0
		z=2.3
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=2
		y=180
		z=0
	}
}

camera5
{
	name=RearBumper
	model=2
	wheels=2
	view=2
	fov=75
	offset
	{
		x=0
		y=-0.0
		z=2.3
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=2
		y=0
		z=0
	}
}

camera6
{
	name=Roof
	fov=80
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-1.2
		z=-0.6
	}
	angle
	{
		x=10
		y=180
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera7
{
	name=Side
	fov=80
	model=0
	wheels=0
	view=0
	offset
	{
		x=-1.2
		y=0
		z=0.5
	}
	angle
	{
		x=0
		y=170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera8
{
	name=Wing
	fov=70
	model=0
	wheels=0
	view=0
	offset
	{
		x=-1.1
		y=-0.7
		z=-2.0
	}
	angle
	{
		x=0
		y=170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera9
{
	name=Photo
	fov=35
	model=0
	wheels=0
	view=0
	offset
	{
		x=-0
		y=-0
		z=-0
	}
	angle
	{
		x=0
		y=0
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

; AUDIO SETTINGS
; -------------------------------------------------------------

audio
{
	skid
	{
    		sample=skid.wav
		sample2=skid.wav
	}
	acc_all
	{
		attack=1400
		decay=1400
	}
	throttle_off
	{
		smp0~audio.acc_all
		{
			sample=dump.wav
			natural=12000
			min=4000
			max=8000
			volume=1.0			;ignored?
		}
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=engine.wav
			min=1
			max=2000
			natural=7000
			volume=0.42
		}
		smp1~audio.acc_all
		{
			sample=engine.wav
			min=3000
			max=4000
			natural=7000
			volume=0.7
		}
		smp2~audio.acc_all
		{
			sample=engine_med.wav
			min=5000
			max=6000
			natural=7000
			volume=1.2
		}
		smp3~audio.acc_all
		{
			sample=engine_hi.wav
			min=7000
			max=8000
			natural=7000
			volume=2.0
		}
		smp4~audio.acc_all
		{
			sample=turbo.wav
			min=4000
			max=7000
			natural=6000
			volume=0.125
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=engine.wav
			min=1
			max=2000
			natural=7000
			volume=0.3
		}
		smp1~audio.acc_all
		{
			sample=engine.wav
			min=3000
			max=4000
			natural=7000
			volume=0.5
		}
		smp2~audio.acc_all
		{
			sample=engine_med.wav
			min=5000
			max=6000
			natural=7000
			volume=0.85
		}
		smp3~audio.acc_all
		{
			sample=engine_hi.wav
			min=7000
			max=8000
			natural=7000
			volume=1.4
		}
	}
	wind
	{
		volume=0.5
		pitch_scale=0
		pitch_offset=50
		smp0
		{
			sample=wind.wav
			min=0
			max=300
			attack=0
			decay=0
			natural=80
		}
		smp1
		{
			sample=road.wav
			min=0
			max=300
			attack=0
			decay=0
			natural=80
		}
	}
	gearwhine
  	{
		smp0
		{
			sample=whinelow.wav
			volume=0.1
			attack=70
			decay=70
			min=50
			max=200
			natural=150
		}
		smp1
		{
			sample=whinehigh.wav
			volume=0.15
			attack=70
			decay=0
			min=250
			max=50000
			natural=400
		}
	}
	shiftout
	{
		sample=shift.wav
	}
	shiftin
	{
		sample=shift.wav
	}
}