car
{
   name=Mercedes-Benz W116 280SE
   year=1974
   credits=Converted from GTA San Andreas by Priban.
   comments=280SE
   id=mercedes_w116_280se
   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=w116_280se.dof
   }
   model_braking_l
   {
      file=
   }
   model_incar
   {
      file=w116_280se.dof
   }
}

steer
{
  x=0.43
  y=0.20
  z=0.575
  xa=378
  lock=900
  linearity=0.2
  model
  {
     file=stw.dof
  }
}
engine
{
   mass=60
   idle_rpm=750
   max_rpm=6000
   max_torque=200
   curve_torque=torquee.crv
   autoclutch_rpm=0
   starter=1
   starter_torque=80
   start_stalled=1
   stall_rpm=580
   start_rpm=800
   shifting
   {
      automatic=0
      shift_up_rpm=5000
      shift_down_rpm=2400
      time_to_declutch=10
      time_to_clutch=5
   }
   inertia
   {
      engine=0.35
   }
   braking_coeff=1.5
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.72
    inertia=0.02
    linearity=1
  }
  gear1
  {
    ratio=3.96
    inertia=0.02
    linearity=1
  }
  gear2
  {
    ratio=2.34
    inertia=0.034
    linearity=1.2
  }
  gear3
  {
    ratio=1.44
    inertia=0.05
    linearity=1.4
  }
  gear4
  {
    ratio=1.00
    inertia=0.07
    linearity=1.6
  }
  gear5
  {
    ratio=0.875
    inertia=0.09
    linearity=1.8
  }
}
clutch
{
   max_torque=500
}
handbrakes
{
   wheels=23
}
differential
{
  type=1
  ratio=3.92
  inertia=0.1
  locking_coeff=350
  locking_coeffient=350
  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.07
   z=0.72
  restlen=0.455
  minlen=0.30
  maxlen=0.60
  k=39200
  bump_rate=6600
  rebound_rate=6600
  anti_pitch=0.15
  roll_center
  {
    x=0
    y=-.4
    z=0
  }
}
susp_rear
{
   y=0.05
   z=-1.35
 restlen=0.455
  minlen=0.30
  maxlen=0.60
  k=37000
  bump_rate=6600
  rebound_rate=6600
  anti_pitch=0.15
  roll_center
  {
    x=0
    y=-.35
    z=0
  }
}
susp0~susp_front
{
   x=0.83
}
susp1~susp_front
{
   x=-0.83
}
susp2~susp_rear
{
   x=0.83
}
susp3~susp_rear
{
   x=-0.83
}
tire_model_front
{
  damping_predict_lat=0.492
  damping_predict_long=0.018
}
tire_model_rear
{
  damping_predict_lat=0.504
  damping_predict_long=0.020
}
pacejka
{
    a0=1.2
    a1=-25
    a2=1800
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1950 ;1200
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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.12
    optimal_slipangle=0.173
}
wheel_front
{
  y=0
  z=1.0
  ackerman=1.1
  inertia=1.05
  width=0.205		
  slices=20
  tire_rate=240000
powered=0
  steering=1
  lock=61
  mass=18
  radius=.36
  rolling_coeff=0.015
  max_braking=2100
  braking_factor=1
  friction_road=1.7
  skidding~skidding_default
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=-0.1
  mass=18
  inertia=0.95
  radius=.36
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=310000
powered=1
  max_braking=1600
  braking_factor=1
  max_handbrake_torque=3000
  skidding~skidding_default
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=-.5
  toe=-.15
  model
  {
    file=left.dof
  }
  ;model_brake
  ;{
    ;file=bl.dof
  ;}
}
wheel1~wheel_front
{
  x=0
  camber=-.5
  toe=.15
  model
  {
    file=right.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
wheel2~wheel_rear
{
  x=0
  camber=-0.5
  toe=-0.004
  model
  {
    file=left.dof
  }
  ;model_brake
  ;{
    ;file=bl.dof
  ;}
}
wheel3~wheel_rear
{
  x=0
  camber=-0.5
  toe=0.004
  model
  {
    file=right.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
camera0
{
  name=Driver
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.44
    y=0.63
    z=-0.15
  }
  offset_to
  {

    x=0
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.65
    z=-0.25
  }
  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.65
    z=-0.25
  }
  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.65
    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
{
  skid
{
sample=skid.wav
sample2=skid.wav
}
horn
  {
      sample=horn.wav
    }
; outside sound section
  acc_all
  {
    attack=100
    decay=100
  }
  accelerate_in
  {
    ; Master volume for this set (0..1)
    volume=1.0
    smp0
    {
      sample=idlein.wav
      volume=10
      min=600
      max=1000
      natural=1000
    }
    smp1
    {
      sample=accin.wav
      min=10
      max=4000 
      natural=3000
      attack=000
      decay=1000
    }
    smp2
    {
      sample=accin2.wav
      min=4000
      max=7000 
      natural=3000
      attack=1000
      decay=000
    }
  }
  decelerate_in
  {
    volume=1.0
    smp0
    {
      sample=idlein.wav
      volume=10.0
      min=600
      max=1000
      natural=1000
      attack=0
      decay=0
    }
    smp1
    {
      sample=decin.wav
      min=10
      max=9000
      natural=3000
      attack=100
      decay=1000
    }
  }
  accelerate_out
  {
    ; Master volume for this set (0..1)
    volume=4.0
    smp0
    {
      sample=idle.wav
      volume=1
      min=600
      max=1200
      natural=1000
      attack=0
      decay=100
    }
    smp1
    {
      sample=accout.wav
      min=10
      max=5000 
      natural=3000
      attack=500
      decay=2000
    }
    smp2
    {
      sample=accout2.wav
      min=5000 
      max=7200
      natural=3000
      attack=1000
    }
  }
  decelerate_out
  {
    ; Master volume for this set (0..1)
    volume=4.0
    smp0
    {
      sample=idle.wav
      volume=10.0
      min=600
      max=1000
      natural=1000
      attack=0
      decay=100
    }
    smp1
    {
      sample=decout.wav
      min=10
      max=7000
      natural=3000
      attack=100
      decay=1000
    }
  }
  wind
  {
    pitch_scale=0.5
    pitch_offset=0.0
    smp0
    {
      sample=tire.wav
      volume=10
      min=0
      max=400
      natural=20
    }
  }
  skid
  {
    volume=.5
    pitch_scale=90.5
    sample=skid.wav
      natural=10
  }
} 