car
{
   name=Ford Focus III ST
  year=2012
  credits=Original Model - Turn 10 Studios (FM4) Convert by Kacprowy and Szytmon from PFR
  comments=Big thanks for Ansebasti, Poorwich, Swift and Al Radzio.
   wheels=4
  id=focusst
  version=090b
  skid
  {
    sample=skid.wav
  }
}
 cg
 {
  x=0
  y=-0.15
  z=0.0
 }
  ff_factor=0.45
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=st.dof
			use_shaders=1
    		}
		intensity=0.6
  	}
    generic
    {
    model0
    {
    file=
    }
    model1
    {
      file=lewe.dof
    }
    model2
    {
      file=prawe.dof
    }
    model3
    {
      file=
    }
    model4
    {
      file=
    }
    model5
    {
      file=
    }
    model6
    {
      file=
    }
    model7
    {
      file=
    }
    model8
    {
      file=
    }
    model9
    {
      file=
    }
    model10
    {
      file=
    }
    model11
    {
      file=
    }
    model12
    {
      file=
    }
    model13
    {
      file=halogeny.dof
    }
    model14
    {
      file=dlugie.dof
    }
  }
}
body
{
  mass=1440
  inertia
  {
    x=2300
    y=2400
    z=475
  }
  model
  {
    file=st.dof
  }
  model_incar
  {
    file=st.dof
  }
  model_light_l
  {
  file=lights.dof
  }
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
  width=2.145
  height=0.75
  length=4.796
  manual_box=1
}
steer
{
  x=0.37
  y=0.361
  z=0.335
  radius=15
  xa=24
   lock=900
  linearity=1.5
  model
  {
      file=sterring_wheel.dof
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=65
    ; Aspect (horizontal)
    aspect=3
    ; Distance to car
    z=2.3
    ; Pitching with respect to car (in degrees)
    pitch=-2
    ; Fall-off distance
    far=300
  }
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=150
	idle_method=1
	idle_throttle=0.05
	idle_rpm=900
	min_warn_rpm=6700
	max_warn_rpm=7000
	max_rpm=6500
	start_rpm=1150
	stall_rpm=450
	autoclutch=1
	autoclutch_rpm=1000
	starter=1
	starter_torque=100
	start_stalled=1
	enable_stall=1
	curve_torque=ecoboost.crv
	max_torque=0.95
	torque_reaction=0.25
	braking_coeff=
	braking_offset=
	braking_torque_curve=braking_torque.crv
	friction=0
	cylinders=4
	cylinder_angle=0
	rumble_amplitude=
	rumble_maxrpm=
	inertia
	{
		engine=0.38
	}
	jitter
	{
		amplitude=0.2
		frequency_min=1
		frequency_var=0.1
		time_min=150
		time_var=10
	}
	shifting
	{
		automatic=0
		blip_throttle=0.3
		cut_throttle=1
		fast=1
		shift_up_rpm=6100
		shift_down_rpm=1400
		time_to_declutch=55
		time_in_neutral=75
		time_to_clutch=55
		time_to_declutch_down=75
		time_in_neutral_down=75
		time_to_clutch_down=75
	}
}
fuel
{
	bsfc=6.5e-5
	max=20
	type=0
}
gearbox
{
	gears=7
	gear0
   	{
      		ratio=-3.321
      		inertia=0.10
      		engine_map=1.00
   	}
   	gear1
   	{
      		ratio=3.321
      		inertia=0.02
      		engine_map=1.1
   	}
   	gear2
   	{
      		ratio=1.952
      		inertia=0.04
      		engine_map=1.2
   	}
   	gear3
   	{
      		ratio=1.321
      		inertia=0.06
      		engine_map=1.3
   	}
   	gear4
   	{
      		ratio=1.229
      		inertia=0.08
      		engine_map=1.4
   	}
   	gear5
   	{
      		ratio=1.029
      		inertia=0.10
      		engine_map=1.5
   	}
   	gear6
   	{
      		ratio=0.943
      		inertia=0.12
      		engine_map=1.6
   	}
   	final
   	{
      		ratio=4.063
      		inertia=0.12
      		engine_map=1.6
   	}
}
clutch
{
   max_torque=500
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=3.5
	inertia=0.05
	locking_coeff=0
          	output0=0
	output1=1
}
aero
{
  body
  {
    center=0 0 0
    cx=0.30	
    area=2.26
  }
  wings=1
  wing0
  {
    name=overall body lift
; 13kg front, 19kg rear at 200kmh
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=20000	;Adjust for under/over steer attitude... 25000 generates lots more oversteer, 18000 understeer
  }
}
susp_front
{
  y=0.235
  z=1.25
  anti_pitch=0.15
  restlen=0.42
  minlen=0.20
  maxlen=0.5
  k=58000
  bump_rate=6700
  rebound_rate=6700
  radius=0.39
  slices=5
  roll_center
  {
    x=0
    y=-0.77
    z=0
  }
}
susp_rear
{
  y=0.235
  z=-1.4
  anti_pitch=0.15
  restlen=0.43
  minlen=0.20
  maxlen=0.5
  k=48000
  bump_rate=6000
  rebound_rate=5500
  radius=0.39
  slices=5
  roll_center
  {
    x=0
    y=-0.72
    z=0
  }
}
susp0~susp_front
  {
    x=0.78
    toe_change_per_m=0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=0		;5.78 degrees static caster -0.017!
    
  }
susp1~susp_front
  {
    x=-0.78
    toe_change_per_m=-0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=0		;5.78 degrees static caster -0.017!
  }
susp2~susp_rear
  {
    x=0.78
    toe_change_per_m=0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
  }
susp3~susp_rear
  {
    x=-0.78
    toe_change_per_m=-0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
  }
tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0
}
tire_model_rear
{
  damping_predict_lat=0
  damping_predict_long=0
}
pacejka
{
  ; Pacejka constants for all tires
  ; Lateral force
a0=1.45 
a1=-37.5
a2=1380
a3=1650
a4=9.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
; Longitudinal force
  b0=1.45
  b1=-75
  b2=1510
  b3=23.3
  b4=350
  b5=0
  b6=0.00
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  c4=-7.2 
  c5=0.0 
  c6=0.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 
}
pacejka_rear
{
a0=1.35
a1=-37.5
a2=1450
a3=1700
a4=9.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
 
; Longitudinal force
  b0=1.55
  b1=-75
  b2=1570
  b3=23.3
  b4=375
  b5=0
  b6=0
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  c4=-7.2 
  c5=0.0 
  c6=0.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 
}

wheel_front
{
  y=-0.15
  z=0
  steering=1
  lock=71.2
  mass=30
  inertia=1.9
  radius=0.355
  rolling_coeff=0.0150
  friction_road=1
  max_braking=2000
  braking_factor=1
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=-0.15
  z=0
  steering=0
  mass=30
  inertia=1.9
  radius=0.355
  rolling_coeff=0.015
  friction_road=1
  max_braking=750
  max_handbrake_torque=2800
  braking_factor=1
  tire_rate=180000
  pacejka~pacejka_rear
  {
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33	;-0.72
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=leftrear.dof
    offset
    {
      z=0
    }
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33	;-0.72
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=rightrear.dof
    offset
    {
      z=0
    }
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25	;-1.82
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=leftrear.dof
    offset
    {
      z=0
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25	;-1.82
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=rightrear.dof
    offset
    {
      z=0
    }
  }
}
camera0
{
  name=Driver
  fov=74
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.38
    y=0.62
    z=-0.03
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.51
    y=0.65
    z=-0.19
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.31
    y=0.65
    z=-0.24
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.02
    y=0.71
    z=-0.10
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-5.38
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-5.27
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.37
    y=-0.68
    z=0.141
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
	skid
	{
	volume=2
        sample=skid.wav
        sample2=skid.wav
	}
	horn
	{
		sample=horn.wav
	}
	shiftout
	{
		sample=audio/shiftout.wav
	}
	shiftin
	{
		sample=audio/shiftin.wav
	}
	acc_all
	{
		attack=1350
		decay=1350
		volume=1
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1100
			volume=0.7
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2100
		}
		smp2~audio.acc_all
		{
			sample=3200.wav
			min=3000
			max=3001
			natural=3100
		}
		smp3~audio.acc_all
		{
			sample=4300.wav
			min=4000
			max=4001
			natural=3750
		}
		smp4~audio.acc_all
		{
			sample=5200.wav
			min=5000
			max=5001
			natural=4750
		}
		smp5~audio.acc_all
		{
			sample=6500.wav
			min=6000
			max=6001
			natural=5750
		}
		smp6~audio.acc_all
		{
			sample=7100.wav
			min=7000
			max=7001
			natural=6750
		}
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=i1000.wav
			min=1000
			max=1001
			natural=1100
			volume=0.7
		}
		smp1~audio.acc_all
		{
			sample=i2000.wav
			min=2000
			max=2001
			natural=2100
			volume=0.7
		}
		smp2~audio.acc_all
		{
			sample=i3200.wav
			min=3000
			max=3001
			natural=3100
			volume=0.7
		}
		smp3~audio.acc_all
		{
			sample=i4300.wav
			min=4000
			max=4001
			natural=3750
			volume=0.7
		}
		smp4~audio.acc_all
		{
			sample=i5200.wav
			min=5000
			max=5001
			natural=4750
			volume=0.8
		}
		smp5~audio.acc_all
		{
			sample=i6500.wav
			min=6000
			max=6001
			natural=5750
			volume=0.9
		}
		smp6~audio.acc_all
		{
			sample=i7100.wav
			min=7000
			max=7001
			natural=6750
			volume=1
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2000
		}
		smp2~audio.acc_all
		{
			sample=3200.wav
			min=3000
			max=3001
			natural=3000
		}
		smp3~audio.acc_all
		{
			sample=4300.wav
			min=4000
			max=4001
			natural=3650
		}
		smp4~audio.acc_all
		{
			sample=5200.wav
			min=5000
			max=5001
			natural=4650
		}
		smp5~audio.acc_all
		{
			sample=6500.wav
			min=6000
			max=6001
			natural=5650
		}
		smp6~audio.acc_all
		{
			sample=7100.wav
			min=7000
			max=7001
			natural=6650
		}
	}
	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=i1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=i2000.wav
			min=2000
			max=2001
			natural=2000
			volume=0.5
		}
		smp2~audio.acc_all
		{
			sample=i3200.wav
			min=3000
			max=3001
			natural=3000
			volume=0.6
		}
		smp3~audio.acc_all
		{
			sample=i4300.wav
			min=4000
			max=4001
			natural=3650
			volume=0.8
		}
		smp4~audio.acc_all
		{
			sample=i5200.wav
			min=5000
			max=5001
			natural=4650
			volume=0.9
		}
		smp5~audio.acc_all
		{
			sample=i6500.wav
			min=6000
			max=6001
			natural=5650
			volume=0.9
		}
		smp6~audio.acc_all
		{
			sample=i7100.wav
			min=7000
			max=7001
			natural=6650
			volume=1
		}
	}
	gearwhine
 	{
		smp0
		{
			sample=audio/tw-extonhigh.wav
			volume=0.05
			min=1
			max=2
			decay=1000
			natural=500
		}
	}
	wind
	{
		volume=14
		pitch_scale=1.25
		pitch_offset=0
 		smp0
		{
			sample=wind1.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=wind2.wav
			min=50
			max=51
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=wind3.wav
			min=75
			max=76
			attack=33
			decay=33
			natural=80
		}
	}
}
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=0
  	min_velocity=1.667
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}