car
{
   name=Mercedes W123 Coupe
   year=1976
   credits=Converted from GTA SA by Priban.
   comments=2.8L 177HP 6 cylinders in line
   id=mercedes_w123_coupe
   version=0655
   wheels=4
   skid
   {
      sample=skid.wav
   }
   shadow
   {
      texture=shadow.tga
      width=2.25
      length=5.513
      offset_z=0.06
   }
   cg
   {
    x=0
    y=-0.33
    z=0.15
   }
}
particles
{
  backfire
  {
    exhaust0
    {
      pos=-0.28 0.09 -2.07
      normal=0 0 -1
    }
    exhaust1
    {
     pos=0.28 0.19 -2.17
     normal=0 0 -1
    }
    type=backfire
    min_rpm=1000
    ; suppose car comes from 9000 rpm for example. Then backfiring can happen when max_rpm is reached
    max_rpm=5500
    ; high backfire likeliness for rally cars
    likeliness_percentage=30
  }
} 
wipers
{
  ; Windscreen wipers
  count=2
  wiper0
  {
    x=0.62
    y=0.41
    z=0.62
    xa=55
    min_angle=95
    max_angle=20
    model
    {
      file=wiper.dof
    }
  }
  wiper1
  {
    x=0
    y=0.43
    z=0.76
    xa=60
    min_angle=85
    max_angle=25
    model
    {
      file=wiper.dof
    }
  }
}
body
{
   mass=1450 (body 1360 + driver 70 + fuel 20)
   inertia
   {
    x=2300
    y=2520
    z=585
   }
   restitution_coeff=0.1
   x=0
   y=0
   z=0
   width=2.055
   height=1.433
   length=5.363
   manual_box=1
   model_light_l
   {
      file=
   }
   model_light_r
   {
      file=
   }
   model
   {
      file=w123280ce.dof
   }
   model_braking_l
   {
      file=
   }
   model_incar
   {
      file=
   }
}

steer
{
  x=0.41
  y=0.15
  z=0.7
  xa=395
  lock=900
  linearity=0.2
  model
  {
     file=stw.dof
  }
}
engine
{
   mass=60
   idle_rpm=750
   max_rpm=6000
   max_torque=200
   curve_torque=torque.crv
   autoclutch_rpm=0
   starter=1
   starter_torque=80
   start_stalled=1
   stall_rpm=580
   start_rpm=800
   shifting
   {
      automatic=0
      shift_up_rpm=5750
      shift_down_rpm=1000
      time_to_declutch=250
      time_to_clutch=150
   }
   inertia
   {
      engine=0.35
   }
   braking_coeff=1.5
}
gearbox
{
  gears=5
  gear0
  {
    ratio=-3.68
    inertia=0.02
    linearity=1
  }
  gear1
  {
    ratio=3.9
    inertia=0.02
    linearity=1
  }
  gear2
  {
    ratio=2.5
    inertia=0.034
    linearity=1.2
  }
  gear3
  {
    ratio=1.68
    inertia=0.05
    linearity=1.4
  }
  gear4
  {
    ratio=1.1
    inertia=0.07
    linearity=1.6
  }
}
clutch
{
   max_torque=400
}
handbrakes
{
   wheels=1000
}
differential
{
   type=1
   ratio=3.58
   inertia=0.1
   output0=2
   output1=3
}
aero
{
   body
   {
      center=0 0 0
      cx=0.38
      area=1.70
   }
   wings=0
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=38500
  }
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=12000
  }
}
susp_front
{
   y=-0.06
   z=0.85
  restlen=.6
  minlen=.3
  maxlen=.6
  k=35000
  bump_rate=5000
  rebound_rate=6000
  roll_center
  {
    x=0
    y=-.4
    z=0
  }
}
susp_rear
{
   y=-0.10
   z=-1.162
  restlen=.5
  minlen=.3
  maxlen=.6
  k=25000
  bump_rate=4000
  rebound_rate=5000
  roll_center
  {
    x=0
    y=-.35
    z=0
  }
}
susp0~susp_front
{
   x=0.824
}
susp1~susp_front
{
   x=-0.824
}
susp2~susp_rear
{
   x=0.824
}
susp3~susp_rear
{
   x=-0.824
}
tire_model_front
{
  damping_predict_lat=0.572
  damping_predict_long=0.023
}
tire_model_rear
{
  damping_predict_lat=0.560
  damping_predict_long=0.022
}
pacejka
{
    a0=1.6
a1=-38
a2=1500
a3=870
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.7
b1=-80
b2=2222
b3=23.3
b4=300
b5=0
b6=0.0068
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
b11=-86
b12=350
;
c0=2.3
c1=-3.8
c2=-3.14
c3=-1.16
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
optimal_slipratio=0.11
optimal_slipangle=0.159
}
wheel_front
{
  y=0
  z=1.0
  ackerman=1.2
  inertia=1.5
  width=0.205		
  slices=20
  tire_rate=275000
powered=0
  steering=1
  lock=61
  mass=18
  radius=.36
  rolling_coeff=0.015
  max_braking=2100
  braking_factor=.7
  friction_road=1.7
  skidding~skidding_default
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=-0.1
  mass=18
  inertia=1.5
  radius=.36
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=295000
powered=1
  max_braking=1600
  braking_factor=0.25
  max_handbrake_torque=3000
  skidding~skidding_default
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=-.5
  toe=-.15
  model
  {
    file=wheell.dof
  }
  ;model_brake
  ;{
    ;file=bl.dof
  ;}
}
wheel1~wheel_front
{
  x=0
  camber=-.5
  toe=.15
  model
  {
    file=wheelr.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
wheel2~wheel_rear
{
  x=0
  camber=-0.5
  toe=-0.004
  model
  {
    file=wheell.dof
  }
  ;model_brake
  ;{
    ;file=bl.dof
  ;}
}
wheel3~wheel_rear
{
  x=0
  camber=-0.5
  toe=0.004
  model
  {
    file=wheelr.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
wheel3~wheel_rear
{
  x=0
  camber=-0.5
  toe=0.004
  model
  {
    file=wheel_r.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
camera0
{
  offset
  {
    x=0.400000
    y=-0.4500000
    z=0.01000
  }
  angle
  {
    x=-0.555556
    y=180.000000
    z=0.000000
  }
  name=Hood
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.48
    z=-0.4
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.48
    z=-0.4
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0
    y=0.59
    z=-0.0268
  }
  offset_to
  {
    x=-1

    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  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.3
    z=-6.8
  }
  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=-6.5
  }
  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=-7
  }
  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=0.2
		y=-0.2
		z=-2.6
	}

	angle
	{
		x=-1.361085
		y=150
		z=10
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.5
		z=2.5
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
 	name=External
 	fov=70
 	model=0
 	view=0
 	wheels=0
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0.1
  		y=-0.3
  		z=-3.3
 	}
 	angle
 	{
  		x=0
  		y=-20
  	      z=30
 	}
}

audio
{
  acc_all
  {
     attack=1000
     decay=1000
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1150
      volume=5
      natural=1100
    }
    smp1~audio.acc_all
    {
     sample=engine.wav
     min=1650
     max=11000
     natural=5200
     volume=5
    }
    smp2~audio.acc_all
    {
     sample=high1.wav
     min=5100
     max=11000
     natural=6200
     volume=0.3
    }
}
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1150
      volume=5
      natural=1100
    }
    smp1~audio.acc_all
    {
     sample=engine.wav
     min=1650
     max=11000
     natural=5300
     volume=3
    }
}
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1150
      volume=5
      natural=1100
    }
    smp1~audio.acc_all
    {
     sample=engine.wav
     min=1650
     max=11000
     natural=5200
     volume=5
    }
    smp2~audio.acc_all
    {
     sample=high1.wav
     min=5100
     max=11000
     natural=6200
     volume=0.3
    }
}
 decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1150
      volume=5
      natural=1100
    }
    smp1~audio.acc_all
    {
     sample=engine.wav
     min=1650
     max=11000
     natural=5300
     volume=3
    }
}
  wind
	{
		volume=2
		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
		}
	}
}