;thx mich59 for french real colors
car
{
  name=Mercedes CL65 AMG
  year=2010
  credits=Convert by Seby & Radu
  comments= 
  id=cl65amg
  version=052b89
  wheels=4

  skid
  {
    sample=skid.wav
  }

  shadow
  {
    texture=shadow.tga
    width=1.92
    length=5
    offset_z=0.1
  }

  cg
  {
    x=0
    y=-0.155
    z=0.25
  }
}


;----------------------------------------------------------------------
;Body:}
body
{
  mass=2040	
  restitution_coeff=0.15
  inertia
  {
    x=3000
    y=3300
    z=650
  }
  model
  {
    file=mercedes.dof
  }
  model_incar
  {
    file=mercedes.dof
  }
  model_light_l
  {
    file=faruri.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  width=1.871
  height=1.1
  length=5.084
  manual_box=1
}

;----------------------------------------------------------------------
;Steer:

steer
{
  x=0.41
  y=0.10
  z=0.60
  radius=10
  linearity=0.2
  xa=20
  lock=800
  model
  {
    file=volan.dof
  }
}


;----------------------------------------------------------------------
;Engine:

engine
{
  mass=0
  idle_rpm=650
  max_rpm=8000
  max_torque=722    ;531
  
  sample=acc-320.wav
  sample_rpm=4800

  curve_torque=torque.crv
  autoclutch_rpm=1500
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=200
  start_rpm=650
  reaction=0
  shifting
  {
    automatic=1
    shift_up_rpm=5900
    shift_down_rpm=2000
    time_to_declutch=100
    time_to_clutch=100
  }
  inertia
  {
    engine=0.2
    final_drive=0.12
  }
  braking_coeff=1.3
}
;------------audio------------
audio
{
   skid
   {
      volume=1
      sample=skid.wav
   }

   acc_all
   {
      attack=1000
      decay=1000
   }

   accelerate_in
   {
      smp0
      {
         sample=IDLE - IN.wav
         volume=1
         min=300
         max=900
         natural=750
         decay=800
      }
      smp1
      {
         sample=LUGGING - IN.wav
         volume=3
         min=800
         max=2000
         natural=1600
         decay=700
      }
      smp2~audio.acc_all
      {
         sample=2000 - ACC - IN.wav
         volume=1
         min=2000
         max=3200
         natural=2000
         decay=1000
         attack=1000
      }
      smp3
      {
         sample=4000 - ACC - IN.wav
         volume=1.5
         min=3200
         max=5000
         natural=4000
         decay=800
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - IN.wav
         volume=0.9
         min=5300
         max=6800
         natural=6000
         attack=1500
         decay=800
      }
      smp5
      {
         sample=LIMITER - IN.wav
         volume=1
         min=7200
         max=20000
         natural=7500
         attack=300
      }
   }

   decelerate_in
   {
      smp0
      {
         volume=1
         sample=IDLE - IN.wav
         min=100
         max=900
         natural=750
         attack=500
         ;      decay=0
      }
      smp1
      {
         sample=2000 - DEC - IN.wav
         volume=1
         min=900
         max=2800
         natural=1500
         attack=1000
         decay=500
      }
      smp2~audio.acc_all
      {
         sample=4000 - DEC - IN.wav
         volume=.7
         min=2800
         max=4700
         natural=3500
         attack=1000
         decay=1000
      }
      smp3~audio.acc_all
      {
         sample=6000 - DEC - IN.wav
         volume=0.6
         min=4700
         max=8000
         natural=6000
         attack=1000
         decay=1000
      }
      smp4
      {
         sample=LIMITER - IN.wav
         volume=.7
         min=8000
         max=20000
         natural=7500
         decay=100
      }
   }

   accelerate_out
   {
      smp0
      {
         sample=IDLE - OUT.wav
         volume=1
         min=300
         max=1100
         natural=750
         decay=300
      }
      smp1
      {
         sample=LUGGING - OUT.wav
         volume=1
         min=1000
         max=2000
         natural=1600
         decay=500
      }
      smp2
      {
         sample=2000 - ACC - OUT.wav
         volume=1
         min=2000
         max=3500
         natural=2000
         decay=1000
         attack=1700
      }
      smp3~audio.acc_all
      {
         sample=4000 - ACC - OUT.wav
         volume=.7
         min=3500
         max=5000
         natural=4000
         decay=1000
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - OUT.wav
         volume=.6
         min=5000
         max=7000
         natural=6000
         attack=1000
         decay=10
      }
      smp5
      {
         sample=LIMITER - OUT.wav
         volume=.5
         min=7000
         max=20000
         natural=7500
         attack=10
      }
   }

   decelerate_out
   {
      smp0
      {
         volume=1
         sample=IDLE - OUT.wav
         min=100
         max=1000
         natural=750
         attack=100
         decay=1000
      }
      smp1~audio.acc_all
      {
         sample=1500 - DEC - OUT.wav
         volume=1
         min=1000
         max=3000
         natural=1500
         attack=1000
         decay=1000
      }
      smp2~audio.acc_all
      {
         sample=3000 - DEC - OUT.wav
         volume=1
         min=3000
         max=4000
         natural=3000
         attack=1000
         decay=1000
      }
      smp3~audio.acc_all
      {
         sample=6000 - DEC - OUT.wav
         volume=.6
         min=4000
         max=8000
         natural=6500
         attack=1000
         decay=1000
      }
      smp4
      {
         sample=LIMITER - OUT.wav
         volume=0.4
         min=8000
         max=20000
         natural=7500
         decay=100
      }
   }
   wind
   {
      smp0
      {
         volume=2
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
  gears=8
  gear0
  {
    ratio=-3.17
    inertia=0.9
  }
  gear1
  {
    ratio=3.6
    inertia=0.13
  }
  gear2
  {
    ratio=2.9
    inertia=0.09
  }
  gear3
  {
    ratio=2.2
    inertia=0.07
  }
  gear4
  {
    ratio=1.8
    inertia=0.05
  }
  gear5
  {
    ratio=1.5
    inertia=0.04
  }
  gear6
  {
    ratio=1.3
    inertia=0.03
  }
  gear7
  {
    ratio=1
    inertia=0.02
  }
  end_ratio=2.65
}

;----------------------------------------------------------------------
;Clutch:

clutch
{
  max_torque=900
}

abs
{
   max_velocity_ratio=1.7
   min_velocity_ratio=1.3
   min_velocity=3
   enable=1
}
traction_control
{
   max_velocity_ratio=1.1
   min_velocity_ratio=1.09
   min_velocity=3
   enable=1
}

;----------------------------------------------------------------------
;handbrakes:

handbrakes
{
  wheels=23
}

;----------------------------------------------------------------------
;Differential:

differential
{
  type=1
  ratio=2.65
  inertia=0.1
  locking_coeff=350
  locking_coeffient=350
  output0=2
  output1=3
}

;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.32
    area=1.75
  }
  wings=2
  wing0
  {
    name=rearspoiler
    span=1
    cord=1
    coeff_drag=2.8
    coeff_down=28
    center=0 0.15 -1.25
    angle=1
    angle_offset=0
  }
}
;----------------------------------------------------------------------
;Antirollbar

antirollbar 
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=36000	
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=34500
  }
}

;----------------------------------------------------------------------
;Suspension

susp_front
{
  y=-0.335
  z=1.85
  restlen=0.30
  minlen=0.17
  maxlen=0.325
  k=95000
  bump_rate=9500
  rebound_rate=9500
  anti_pitch=0.0
  roll_center
  {
    x=0
    y=-0.427
    z=0
  }
}
susp_rear
{
  y=-0.3
  z=-1.47
  restlen=0.30
  minlen=0.17
  maxlen=0.325
  k=95000
  bump_rate=9000
  rebound_rate=9500
  anti_pitch=0.0
  roll_center
  {
    x=0
    y=-0.372
    z=0
  }
}
susp0~susp_front
  {
    x=0.90
  }
susp1~susp_front
  {
    x=-0.90
  }
susp2~susp_rear
  {
    x=0.9
  }
susp3~susp_rear
  {
    x=-0.9
  }

;----------------------------------------------------------------------
;Tire model:


tire_model
{  
damping_predict_lat=0.0
  damping_predict_long=0.0
}
pacejka
{
              a1=-35
   	a4=10
   	a5=0.014
   	a6=-0.24
   	a7=1.0
   	a8=-0.03
   	a9=-0.0013
   	a10=-0.15
   	a111=-11
   	a112=-0.29
   	a12=17.8
   	a13=-2.4
   	b1=-70
   	b3=23.3
   	b4=400
   	b5=0.05
   	b6=0
   	b7=0.055
   	b8=-0.024
   	b9=0
   	b10=0
   	b11=0
   	b12=0
   	c0=2.2
   	c1=-3
   	c2=-3
   	c3=-1.26
   	c4=-4
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1
   	optimal_slipratio=0.11
   	optimal_slipangle=0.145
}
;----------------------------------------------------------------------
;Wheel front:

wheel_front
{
  y=0
  z=0
  ackerman=1.1
  steering=1
  lock=70
  powered=0
  mass=12.5
  inertia=0.8
  radius=.4
  rolling_coeff=0.015
  friction_road=3.9
  max_braking=1700
  max_handbrake_torque=1500
  braking_factor=1
  tire_rate=325000
  pacejka~pacejka
  {  
  }
}

wheel0~wheel_front
{
  x=0
  toe=0
  camber=0
  model
  {
   file=lf.dof
  }
  model_brake
  {
    file=
    offset
    {
	x=0.035
	y=0
	z=0
    }
  }
}

wheel1~wheel_front
{
  x=0
  toe=0
  camber=0
  model
  {
   file=rf.dof
  }
  model_brake
  {
    file=
    offset
    {
	x=-0.035
	y=0
	z=0
    }
  }
}

;----------------------------------------------------------------------
;Wheel rear:

wheel_rear
{
  y=0
  z=0
  steering=0
  powered=1
  mass=12.5
  inertia=0.8
  radius=.4
  rolling_coeff=0.015
  friction_road=3.95
  max_braking=1300
  max_handbrake_torque=3000
  braking_factor=1
  tire_rate=325000
  pacejka~pacejka
 {
  a0=1.6
  a1=-55
  a2=1800
  b0=1.6
  b1=-110
  b2=1900
  b4=475
  c0=2.2
  c1=-4.25
  c3=-1.42
  c4=-10.9
  optimal_slipratio=0.14
  optimal_slipangle=0.17
 }
}

wheel2~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
   file=lf1.dof
  }
  model_brake
  {
    file=
    offset
    {
	x=0.045
	y=0
	z=0
    }
  }
}

wheel3~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
   file=rf1.dof
  }
  model_brake
  {
    file=
    offset
    {
	x=-0.045
	y=0
	z=0
    }
  }
}

;-----------------------------------------------------------------------
;-----------------------------------------------------------------------
;Camera

camera0
{
  offset
  {
    x=0.059375
    y=-0.700001
    z=-4.715009
  }
  angle
  {
    x=6.666651
    y=-180.729126
    z=0.000000
  }
  name=Side view
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
}
camera1
{
  offset
  {
    x=0.029688
    y=-0.904162
    z=-6.870018
  }
  angle
  {
    x=15.694407
    y=179.652771
    z=0.000000
  }
  name=Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera2
{
  offset
  {
    x=0.0
    y=-1.0
    z=-1.0
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
  name=on front
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.021875
    y=-0.818750
    z=0.750000
  }
  angle
  {
    x=10.000000
    y=180.000000
    z=0.000000
  }
  name=BonnetView
  fov=75
}


camera4
{
  offset
  {
    x=0.014061
    y=-1.0
    z=-7.585001
  }
  angle
  {
    x=0.0
    y=728.819153
    z=0.0
  }
}
camera5
{
  offset
  {
    x=-0.151565
    y=0.489580
    z=-6.395005
  }
  angle
  {
    x=7.083300
    y=-143.576736
    z=3.298599
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=35
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.037500
    y=0.489584
    z=-4.555015
  }
  angle
  {
    x=86.527802
    y=-308.854156
    z=11.718752
  }
  fov=60
}
camera7
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.0
    y=-0.425410
    z=-0.719996
  }
  angle
  {
    x=-4.166675
    y=-179.652771
    z=0.000000
  }
  fov=65
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=2
  name=Inside Driver
}
camera8
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.385939
    y=-0.445410
    z=-0.319996
  }
  angle
  {
    x=-4.166675
    y=-179.652771
    z=0.000000
  }
  fov=65
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=2
  name=Inside Driver
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.4
    y=0.405410
    z=-0.0
  }
  offset_to
  {
    x=0.4
    y=0.405410
    z=5
  }
  angle
  {
    x=0.000000
    y=0.000000
    z=0.000000
  }
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  src
  {
    mass=6
    k=300
    damping=90
    maxdist=0.02
  }
  dst
  {
    mass=1
    k=200
    damping=70
    maxdist=.01
  }
}