car
{
  name=Ford Transit
  id=ford
  version=090b
  credits=Converted by Fiecu
  comments=
  year=
  wheels=4
  skid
  {
    sample=skid.wav
  }
  cg
  {
    x=0	
    y=-0.35
    z=0
  }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=body.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=body.dof
		}
		model1
		{
		file=detale.dof
		}
		model2
		{
		file=doorlf.dof
		}
		model3
		{
		file=doorrf.dof
		}
    		model4
    		{
      		file=bonnet.dof
    		}
    		model5
    		{
      		file=boot.dof
    		}
	}
}
lights
{
  ; Projected lights
  light0
  {
    texture=lampy.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=1.20
    ; Pitching with respect to car (in degrees)
    pitch=7
  }
}
body
{
  mass=960		;800kg (car) + 50kg (wheels) = 850kg
  restitution_coeff=0.3
  inertia
  {
    x=2875
    y=2600
    z=625
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
 model_lightroad_l
 {
  file=lights.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
  width=1.605
  height=1.410
  length=3.705
  manual_box=1
}
steer
{
  x=0.38
  y=0.36
  z=1.05
  xa=45
  linearity=0.43
  lock=900
  model
  {
    file=steer.dof
  }
}
engine
{
  mass=0
  max_rpm=5450
  idle_rpm=950
  stall_rpm=550
  start_rpm=650
  autoclutch_rpm=1000
  starter=0
  start_stalled=1
  starter_torque=45
  curve_torque=torque.crv
  max_torque=290
  torque_reaction=0.40
  shifting
  {
    automatic=0
    shift_up_rpm=5500
    shift_down_rpm=850
    time_to_declutch=250
    time_to_clutch=250
  }
  inertia
  {
    engine=0.512 ;0.25
    final_drive=0.32
  }
  braking_coeff=2.25 ;1.25
  sample=engine.wav
  sample_rpm=9500
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.416
    inertia=0.9
  }
  gear1
  {
    ratio=3.595
    inertia=0.13
  }
  gear2
  {
    ratio=2.186
    inertia=0.09
  }
  gear3
  {
    ratio=1.405
    inertia=0.07
  }
  gear4
  {
    ratio=1.1
    inertia=0.05
  }
  gear5
  {
    ratio=0.831
    inertia=0.05
  }
  end_ratio=3.64
}
clutch
{
  max_torque=650
}
handbrakes
{
  wheels=23
}
differential
{
  type=1 ;viscous
  ratio=3.64
  locking_coeff=35
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.42
    area=1.7
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=0
    k=10000
  }
}
susp_front
{
  y=-0.15
  z=1.55
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.538
  minlen=0.355
  maxlen=0.555
  ;1.55Hz, 295.7475kg
  k=41000
  ;0.7*CD=4032
  bump_rate=3750	
  rebound_rate=5994
  bump_function=0
  rebound_function=0
  anti_pitch=0.15
  ;20°/m ???
  camber_change_per_m=0.349
  ;-4° ???
  caster_offset=-0.022
  roll_center
  {
    x=0
    y=-0.642
    z=0
  }
}
susp_rear
{
  y=-0.2
  z=-1.11
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.521
  minlen=0.355
  maxlen=0.555
  ;1.7HZ, 286.7525kg, should be progressive springs...
  k=41000	
  ;0.7*CD=4288	
  bump_rate=3346	
  rebound_rate=8647	
  bump_function=0
  rebound_function=0
  anti_pitch=0.0
  camber_change_per_m=0.0
  roll_center
  {
    x=0
    y=-0.479
    z=0
  }
}
susp0~susp_front
  {
    x=0.76
    camber_change_steering=0.050
    toe_change_per_m=0.020
  }
susp1~susp_front
  {
    x=-0.76
    camber_change_steering=-0.050
    toe_change_per_m=-0.020
  }
susp2~susp_rear
  {
    x=0.76
    toe_change_per_m=0.0
  }
susp3~susp_rear
  {
    x=-0.76
    toe_change_per_m=0.0
  }
tire_model
{
   relaxation_length_lat=0.91
   relaxation_length_long=.091
   damping_speed=0.15
   damping_coefficient_lat=0.75
   damping_coefficient_long=1.5
}
pacejka
{
  ; Lateral force
  a0=1.246
  a1=-60.20 ;-91.3
  a2=1616 ;1240
  a3=1952 ;2100 1632
  a4=8.65 ;12 
  a5=0.000 ;0.0
  a6=0 ;-0.04 ;0 
  a7=0 ;-0.4 ;0
  a8=0 ;0.003
  a9=0 ;-0.002
  a10=0 ;0.16
  a111=0 
  a112=0 ;0.045
  a12=0 ;0.17
  a13=0 ;-23.5
  ; Longitudinal force
  b0=1.47
  b1=-15
  b2=1338 
  b3=9.8 
  b4=334 
  b5=0
  b6=0 
  b7=0 
  b8=0 
  b9=0 
  b10=0 
  b11=0 
  b12=0 
  ; Aligning moment
  c0=0.83
  c1=-2.2
  c2=9.39
  c3=0.219
  c4=-8.6
  c5=0.025
  c6=0.0
  c7=0.044
  c8=-0.58
  c9=0.18
  c10=0 ;0.043
  c11=0 ;0.048
  c12=0 ;-0.0035
  c13=0 ;-0.18
  c14=0 ;0.14
  c15=0 ;-1.029
  c16=0 ;0.27
  c17=0 ;-1.1
  optimal_slipratio=0.14 ;0.18
  optimal_slipangle=0.12 ;0.12
}
wheel_front
{
  y=0.05
  z=0
  steering=1
  powered=0
  lock=52
  ackerman=1.1
  mass=30
  inertia=1.0
  radius=0.3
  rolling_coeff=0.05
  max_braking=1450
  braking_factor=1
  tire_rate=175000
  pacejka~pacejka
}
wheel_rear
{
  y=0.03
  z=0
  steering=0
  lock=0
  powered=1
  mass=38
  inertia=1.0
  radius=0.31
  rolling_coeff=0.015
  max_braking=900
   max_handbrake_torque=167400
  tire_rate=160000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0.5
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0.5
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=0
  camber=0
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.7
    z=0.5
  }
  offset_to
  {
    x=0.50
    y=-0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.7
    z=0.5
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.7
    z=0.5
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    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.1
    y=0.9
    z=0.5
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.48
    z=-9
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-9
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}
	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
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=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=2.20
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
  skid
  {
    volume=0.1
    sample=skid1.wav
    sample2=skid2.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=a1000.wav
      min=2
      max=800
      natural=1200
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=a2000.wav
      min=1000
      max=2000
      natural=3200
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=a4000.wav
      min=3000
      max=4000
      natural=4200
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=a6000.wav
      min=5000
      max=7000
      natural=6200
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=a8000.wav
      min=5500
      max=9000
      natural=8200
      volume=1.1
    }
  }
  decelerate_out
   {
    smp0~audio.acc_all
    {
      sample=d1000.wav
      min=2
      max=800
      natural=1200
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=d2000.wav
      min=1000
      max=2000
      natural=3200
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=d4000.wav
      min=3000
      max=4000
      natural=4200
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=d6000.wav
      min=5000
      max=7000
      natural=6200
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=d8000.wav
      min=7000
      max=9000
      natural=8200
      volume=1.1
    }
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=a1000in.wav
      min=2
      max=800
      natural=1200
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=a2000in.wav
      min=1000
      max=2000
      natural=3200
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=a4000in.wav
      min=3000
      max=4000
      natural=4200
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=a6000in.wav
      min=5000
      max=7000
      natural=6200
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=a8000in.wav
      min=5500
      max=9000
      natural=8200
      volume=1.1
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=d1000in.wav
      min=2
      max=800
      natural=1200
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=d2000in.wav
      min=1000
      max=2000
      natural=3200
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=d4000in.wav
      min=3000
      max=4000
      natural=4200
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=d6000in.wav
      min=5000
      max=7000
      natural=6200
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=d8000in.wav
      min=5500
      max=9000
      natural=8200
      volume=1.1
    }
  }
  wind
  {
    volume=0.6
    pitch_scale=0
    pitch_offset=50
    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
    }
  }
}