car
{
  name=Mercedes benz 0405
  year=1994(vmax:90 km/h;0-100:he cant :D)
  credits=Converted by Fabikan75.
  comments=Poj:6870 cc;Moc:213 KM(157 kW) przy 2400 obr./min. Mmo:850 Nm przy 1600 obr./min. 
  id=mb0405
  wheels=4
  version=090b
  ff_factor=0.3
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=12
  }
  cg
  {
    x=0
    y=0		; cm
    z=0		;44/56 %
  }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=body.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=bancos.dof
		}
		model1
		{
		file=interior.dof
		}
		model2
		{
		file=porta_frente1.dof
		}
		model3
		{
		file=porta_frente2.dof
		}
		model4
		{
		file=porta_tras1.dof
		}
		model5
		{
		file=porta_tras2.dof
		}
		model6
		{
		file=
		}
		model7
		{
		file=
		}
		model8
		{
		file=
		}
		model9
		{
		file=
		}
	}	
}
body
{
  mass=6500	;+500 kg unsprung = 7000 kg
  inertia
  {
    x=120000
    y=100000
    z=12000
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_braking_l
  {
    file=
  }
  model_light_l
  {
    file=
  }
  width=2.4
  height=3.08	
  length=11.6
  manual_box=0
}

steer
{
  x=0.825
  y=0.43
  z=5.35
  radius=10
  lock=1080
  linearity=0.25
  xa=70.19
  model
  {
    file=volante.dof
  }
}

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=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=0
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=0
  }
 }
susp_front
{
  y=-0.3
  z=3.34
  restlen=0.25
  minlen=0.0
  maxlen=0.25
  k=150000
  bump_rate=4000
  rebound_rate=10000
  bump_function=3
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0
  caster_offset=0.0
  roll_center
  {
    x=0
    y=-0.70	; cm
    z=0
  }
}
susp_rear
{
  y=-0.3
  z=-2.80
  restlen=0.25
  minlen=0.0
  maxlen=0.25
  k=200000
  bump_rate=6000
  rebound_rate=12000
  bump_function=3
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0
  camber_change_steering=0
  roll_center
  {
    x=0
    y=-0.60	; cm
    z=0
  }
}
susp0~susp_front
{
  x=1.1
  camber_change_steering=0.0
  toe_change_per_m=0.0
}
susp1~susp_front
{
  x=-1.1
  camber_change_steering=-0.0
  toe_change_per_m=-0.0
}
susp2~susp_rear
{
  x=1.1
  toe_change_per_m=0.0
}
susp3~susp_rear
{
  x=-1.1
  toe_change_per_m=-0.0
}

pacejka
{
  ; Lateral force
  a0=1.4
  a1=-12
  a2=1350
  a3=30000
  a4=200
  a5=0.05
  a6=-0.2
  a7=-1
  a8=0
  a9=0
  a10=0
  a111=-0.6
  a112=0 
  a12=0
  a13=0
  ; Longitudinal force
  b0=1.5
  b1=-16
  b2=1400
  b3=0	;1
  b4=300
  b5=0
  b6=0
  b7=0
  b8=0
  b9=0	;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.25
}
wheel_front
{
  x=0
  y=0
  z=0
  steering=1
  powered=0
  camber=0
  lock=70
  mass=100
  inertia=6
  radius=0.5075
  rolling_coeff=0.010
  max_braking=15000
  braking_factor=0.50
  tire_rate=700000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0
  y=0
  z=0
  powered=1
  steering=0
  camber=0
  mass=150
  inertia=6
  radius=0.5075
  rolling_coeff=0.010
  max_braking=15000
  max_handbrake_torque=15000
  braking_factor=0.50
  tire_rate=1000000
  pacejka~pacejka
  {
  a0=1.4
  a1=-8
  a2=1400
  a3=40000
  a111=-1.0
  b0=1.5
  b1=-12
  b2=1450
  }
}
wheel0~wheel_front
{
  toe=-0.3
  model
  {
    file=frontleft.dof
  }
  model_brake
  {
    ;file=
  }
}
wheel1~wheel_front
{
  toe=0.3
  model
  {
    file=frontright.dof
  }
  model_brake
  {
    ;file=
  }
}
wheel2~wheel_rear
{
  toe=-0
  model
  {
    file=rearleft.dof
  }
  model_brake
  {
    ;file=
  }
}
wheel3~wheel_rear
{
  toe=0
  model
  {
    file=rearright.dof
  }
  model_brake
  {
    ;file=
  }
}

camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.87
    y=0.74
    z=4.50
  }
  offset_to
  {
    x=0.87
    y=-0.5
    z=15
  }
  src
  {
    mass=1
    k=1000
    damping=50
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Left
  fov=60
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.87
    y=0.74
    z=4.50
  }
  offset_to
  {
    x=10
    y=0
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=60
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.87
    y=0.74
    z=4.50
  }
  offset_to
  {
    x=-10
    y=0
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.67
    y=0.75
    z=4.70
  }
  offset_to
  {
    x=-2
    y=0
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=180
    z=0
  }
}
camera5
{
  name=Free chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=60
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=2.0
    y=-0.4
    z=1.5
  }
  angle
  {
    x=0
    y=-180
    z=0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
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=-30
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.2
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

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
    }
  }
}
