car
{
  name=Mercedes 0305
  id=mercbus0305
  version=090
  comments=Conversion and main body texture bake / map = MBW13
  credits=Model by Denis Dolgushev
  year=1982
  wheels=6
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=3.316
    length=12.2
  }
  cg
  {
    x=0
    y=0		;90 cm
    z=0		;44/56 %
  }
}

body
{
  mass=13700	;+700kg unsprung =13700 kg
  inertia
  {
    x=158000
    y=155000
    z=17000
  }
  model
  {
    file=body1.dof
  }
  model_incar
  {
    file=body1.dof
  }
  model_braking_l
  {
    file=
  }
  model_light_l
  {
    file=
  }
  width=2.712
  height=2.810	;+ ground clearance
  length=12.098
  manual_box=0
}

steer
{
  x=0.5350
  y=0.7800
  z=5.3500
  radius=10
  lock=900
  xa=70.19
  model
  {
    file=
  }
}

engine
{
  mass=0		
  max_rpm=3000
  idle_rpm=680
  stall_rpm=100
  start_rpm=620
  autoclutch_rpm=700
  starter=1
  starter_torque=200
  curve_torque=torque2.crv
  max_torque=790	  
  torque_reaction=2
  shifting
  {
    automatic=1
    shift_up_rpm=2800
    shift_down_rpm=1000
    time_to_declutch=400
    time_in_neutral=200
    time_to_clutch=400
    time_to_declutch_down=200
    time_in_neutral_down=200
    time_to_clutch_down=200
  }
  inertia
  {
    engine=2
  }
  braking_coeff=8
}
gearbox
{
  gears=9
  gear0
  {
    ratio=-5.970
    inertia=0.720
  }
  gear1
  {
    ratio=5.000
    inertia=0.510
  }
  gear2
  {
    ratio=4.430
    inertia=0.408
  }
  gear3
  {
    ratio=3.890
    inertia=0.304
  }
  gear4
  {
    ratio=3.000
    inertia=0.050  
  }
  gear5
  {
    ratio=2.7
    inertia=0.050 
  }
  gear6
  {
    ratio=2.3
    inertia=0.050 
  }
  gear7
  {
    ratio=1.8
    inertia=0.050
  }
  gear8
  {
    ratio=1.0
    inertia=0.050 
  }
}

clutch
{
  max_torque=850
}

handbrakes
{
  wheels=23
}

differential
{
  type=1
  inertia=1
  ratio=4.11
  locking_coeff=0
  output0=2
  output1=3
}

aero
{
  body
  {
    center=0 0 0
    cx=0.6
    area=7
  }
  wings=1
  wing0
  {
    name=lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-10
    center=0 0 0
    angle=0
    angle_offset=0
  }
}

antirollbar
{
  count=4
  arb0
  {
    susp_left=0
    susp_right=1
    k=0			
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=0
  }
  arb2
  {
    susp_left=2		
    susp_right=4
    k=500000
  }
  arb3
  {
    susp_left=3
    susp_right=5
    k=500000
  }
}
susp_front
{
  y=-0.18
  z=3.15
  restlen=0.36		
  minlen=0.0
  maxlen=0.36
  k=140000		
  bump_rate=13000	
  rebound_rate=29000	
  bump_function=0
  rebound_function=0
  anti_pitch=0
  roll_center
  {
    x=0
    y=-0.40	
    z=0
  }
}
susp_rear
{
  y=-0.18
  z=-2.55
  restlen=0.41		
  minlen=0.0
  maxlen=0.41
  k=70000		
  bump_rate=5400	
  rebound_rate=18000	
  bump_function=0
  rebound_function=0
  anti_pitch=0
  roll_center
  {
    x=0
    y=-0.30	
    z=0
  }
}
susp0~susp_front
{
  x=1.10
}
susp1~susp_front
{
  x=-1.10
}
susp2~susp_rear
{
  x=1.10
}
susp3~susp_rear
{
  x=-1.10
}
susp4~susp_rear
{
  x=0.85
}
susp5~susp_rear
{
  x=-0.85
}
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.5
  a1=-10
  a2=1300
  a3=30000
  a4=200
  a5=0.05
  a6=-0.2
  a7=-1
  a8=0
  a9=0
  a10=0
  a111=0
  a112=0 
  a12=0
  a13=0
  ; Longitudinal force
  b0=1.6
  b1=-20
  b2=1300
  b3=1
  b4=100
  b5=0
  b6=0
  b7=0
  b8=0
  b9=0.1
  b10=0
  b11=0
  b12=0
  ; Aligning moment
  c0=3
  c1=-1
  c2=1
  c3=-1
  c4=-3.6
  c5=0.2260
  c6=0.0004
  c7=0.22
  c8=-2.31
  c9=0
  c10=0
  c11=-0
  c12=-0
  c13=0
  c14=-0
  c15=-0
  c16=0
  c17=0
  optimal_slipratio=0.2
  optimal_slipangle=0.2
}
wheel_front
{
  x=0		;Michelin XZZ 11-22.5
  y=0
  z=0
  steering=1
  powered=0
  camber=0
  lock=80
  mass=150
  inertia=6
  radius=0.5075
  rolling_coeff=0.015
  max_braking=9500
  braking_factor=0.4
  tire_rate=900000	
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0		;inside rear wheels (w4 and w5) are invisible
  y=0		;only w2 and w3 are powered
  z=0		
  steering=0
  camber=0
  mass=100
  inertia=4
  radius=0.5075
  rolling_coeff=0.015
  max_braking=8500
  max_handbrake_torque=8000
  braking_factor=0.3	
  tire_rate=800000	
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  toe=-0.3
  model
  {
    file=leftfront.dof
  }
  model_brake
  {
    ;file=brake_lf.dof
  }
}
wheel1~wheel_front
{
  toe=0.3
  model
  {
    file=rightfront.dof
  }
  model_brake
  {
    ;file=brake_fr.dof
  }
}
wheel2~wheel_rear
{
  toe=-0
  powered=1
  model
  {
    file=leftrear.dof
  }
  model_brake
  {
    ;file=brake_bl.dof
  }
}
wheel3~wheel_rear
{
  toe=0
  powered=1
  model
  {
    file=rightrear.dof
  }
  model_brake
  {
    ;file=brake_br.dof
  }
}
wheel4~wheel_rear
{
  toe=-0
  powered=1
  model
  {
   ; file=leftrear.dof
  }
  model_brake
  {
   ; file=brake_bl.dof
  }
}
wheel5~wheel_rear
{
  toe=0
  powered=1
  model
  {
   ; file=wheel_rr.dof
  }
  model_brake
  {
   ; file=brake_br.dof
  }
}


camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
    x=-0.8
    y=1.3
    z=4.5
  }
  offset_to
  {
    x=-0.9
    y=-0.5
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  offset
  {
    x=0
    y=-1
    z=-14
  }
  angle
  {
    x=15
    y=180
    z=0
  }
  name=Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera2
{
  offset
  {
    x=-0.515626
    y=-1.20
    z=0.55
  }
  angle
  {
    x=2
    y=210
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera3
{
  follow
  {
    pitch=
    yaw=1
    roll=
  }
  offset
  {
    x=0.221878
    y=0.508334
    z=-10.635028
  }
  angle
  {
    x=16.388876
    y=-56.944256
    z=1.302094
  }
  name=Wheels
  fov=40
}
camera4
{
  offset
  {
    x=0.014061
    y=0.493751
    z=-15.585001
  }
  angle
  {
    x=18.055532
    y=728.819153
    z=0.260415
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.198437
    y=0.464583
    z=-16.320009
  }
  angle
  {
    x=9.444325
    y=-268.750336
    z=0.086801
  }
  name=High
  fov=40
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.037500
    y=0.489584
    z=-34.555015
  }
  angle
  {
    x=86.527802
    y=-308.854156
    z=11.718752
  }
  fov=60
}
camera7
{
  offset
  {
    x=-1.751565
    y=0.489580
    z=-0.495005
  }
  angle
  {
    x=0.083300
    y=-180.576736
    z=0.298599
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=35
}
camera8
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.000002
    y=-1.318743
    z=0.430004
  }
  angle
  {
    x=6.944441
    y=-360.0
    z=0.000000
  }
  fov=75
}
camera9
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.330
    y=-0.30410
    z=-0.189996
  }
  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
}


audio
{
  skid
  {
    ;sample=
  }
  horn
  {
    ;sample=horn.wav
  }
  shiftout
  {
    ;sample=shiftout.wav
  }
  shiftin
  {
    ;sample=shiftin.wav
  }
  accelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=0.7
      min=300
      max=650
      decay=100
      natural=900
    }
    smp1
    {
      sample=lo.wav
      volume=0.7
      min=600
      max=1200
      attack=150
      decay=300
      natural=2000
    }
    smp2
    {
      sample=mid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=3000
    }
    smp3
    {
      sample=hi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=4000
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=0.7
      min=300
      max=650
      decay=100
      natural=900
    }
    smp1
    {
      sample=lo.wav
      volume=0.7
      min=600
      max=1200
      attack=150
      decay=300
      natural=2000
    }
    smp2
    {
      sample=mid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=3000
    }
    smp3
    {
      sample=hi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=4000
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=0.7
      min=300
      max=650
      decay=100
      natural=900
    }
    smp1
    {
      sample=lo.wav
      volume=0.7
      min=600
      max=1200
      attack=150
      decay=300
      natural=2000
    }
    smp2
    {
      sample=mid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=3000
    }
    smp3
    {
      sample=hi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=4000
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=0.7
      min=300
      max=650
      decay=100
      natural=900
    }
    smp1
    {
      sample=lo.wav
      volume=0.7
      min=600
      max=1200
      attack=150
      decay=300
      natural=2000
    }
    smp2
    {
      sample=mid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=3000
    }
    smp3
    {
      sample=hi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=4000
    }
  }
  gearwhine
  {
    pitch_scale=0.5
    smp0
    {
      sample=trans.wav
      volume=1.0
      min=0
      max=1
      decay=500
      natural=110
    }
  }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=2
      min=0
      max=100
      natural=50
    }
  }
}
