car
{
  name=dft30 bus
  id=dft_30
  version=053b20
  comments=converted by orges from omsi bus simulator
  credits=city bus
  year=2004 
  wheels=6
  skid
  {
    sample=skid.wav
  }
graphics
{
  shadow
  {
    model
    {
      file=
    }
    intensity=0.3
  }
  generic
  {
    model0
    {
      file=
    }
    model1
    {
      file=
    }
  }
}
  cg
  {
    x=0
    y=0		;90 cm
    z=0		;44/56 %
  }
}

body
{
  mass=5220 ;as per FVR spec sheet = "TARE MASS"
  inertia
  {
    x=158000
    y=155000
    z=17000
  }
  model
  {
    file=bus.dof
  }
  model_incar
  {
    file=bus.dof
  }
  model_braking_l
  {
    file=
  }
  model_light_l
  {
    file=
  }
  width=0.0
  height=0.0	
  length=0.000 ;0.0 = meters, hope this is using meters as the measurement!
  manual_box=0
}

steer
{
    x=0.760
    y=0.11
    z=4.87
  radius=10
  lock=900
  xa=70.19
  model
  {
    file=stw.dof
  }
}
;6SD1-TC - standard
engine
{
  mass=0		;Included in the body mass
  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	;790 Nm / 202 bhp
			;790 nm @ 1400 rpm
			;591 nm @ 2400 rpm ~ 75%
			;148.5 kw @ 2400 rpm ~ 202 hp
			;left out drivetrain loss for now, it's weak enough already
  torque_reaction=2
  shifting
  {
    automatic=0
    shift_up_rpm=2600
    shift_down_rpm=900
    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
{
  ;Based on Wilson 4-speed semi-automatic gearbox values, should be all correct.
  gears=5
  gear0
  {
    ratio=-5.970
    inertia=0.720
  }
  gear1
  {
    ratio=4.280
    inertia=0.510
  }
  gear2
  {
    ratio=2.430
    inertia=0.408
  }
  gear3
  {
    ratio=1.590
    inertia=0.304
  }
  gear4
  {
    ratio=1.000
    inertia=0.050  
  }
}

clutch
{
  max_torque=850
}

handbrakes
{
  wheels=23
}

differential
{
  type=1
  inertia=1
  ratio=4.11
		;Many different ratios were used (listed below)
		;3.31, 3.70, 4.11, 4.56, 5.14 
  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			;do these have anti-roll bars?
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=0
  }
  arb2
  {
    susp_left=2		;these keep rear wheels together, I don't know how well it works
    susp_right=4
    k=500000
  }
  arb3
  {
    susp_left=3
    susp_right=5
    k=500000
  }
}
susp_front
{
  y=-0.60
  restlen=0.36		
  minlen=0.0
  maxlen=0.36
  k=140000
  bump_rate=13000
  rebound_rate=29000
  bump_function='
  ;rebound_function=0
  anti_pitch=0
  roll_center
  {
    x=0
    y=-0.30	;50 cm
    z=0
  }
}
susp_rear
{
  y=-0.60
  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	;60 cm
    z=0
  }
}
susp0~susp_front
{
  x=1.1
  z=3.20
}
susp1~susp_front
{
  x=-1.1
  z=3.20
}
;dual wheels = narrow wheelbase compared to the front
susp2~susp_rear
{
  x=1.1
  z=-2.4
}
;dual wheels = narrow wheelbase compared to the front
susp3~susp_rear
{
  x=-1.1
  z=-2.4
}
;load axle
susp4~susp_rear
{
  x=1.1
  z=-4.1
}
;load axle
susp5~susp_rear
{
  x=-1.1
  z=-4.1
}
  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		
  y=0
  z=0
  steering=1
  powered=0
  camber=0
  lock=70
  mass=150
  inertia=6
  radius=0.5075
  rolling_coeff=0.015
  max_braking=8000
  braking_factor=0.4
  tire_rate=900000	
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0		
  y=0		
  z=0		
  steering=0
  camber=0
  mass=100
  inertia=4
  radius=0.5075
  rolling_coeff=0.015
  braking_factor=0.3	
  tire_rate=800000	
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  toe=-0.3
  model
  {
    file=front-right.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  toe=0.3
  model
  {
    file=front-left.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  toe=-0
  max_braking=4000
  max_handbrake_torque=4250
  powered=0
  model
  {
    file=rear-right.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  toe=0
  max_braking=4000
  max_handbrake_torque=4250
  powered=0
  model
  {
    file=rear-left.dof
  }
  model_brake
  {
    file=
  }
}
;load wheel - no power or diff applied
wheel4~wheel_rear
{
  toe=0
  max_braking=4000
  max_handbrake_torque=3000
  powered=1
  model
  {
    file=front-right.dof
  }
  model_brake
  {
    file=
  }
}
;load wheel - no power or diff applied
wheel5~wheel_rear
{
  toe=0
  max_braking=3000
  max_handbrake_torque=4250
  powered=1
  model
  {
    file=front-left.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.75
    y=0.56
    z=4.20
  }
  offset_to
  {
    x=0.34
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Left
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.75
    y=0.56
    z=4.25
  }
  offset_to
  {
    x=15.4
    y=0
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.75
    y=0.56
    z=4.25
  }
  offset_to
  {
    x=-12.6
    y=0.
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.1
    y=0.6
    z=3.3
  }
  offset_to
  {
    x=-2
    y=0.8
    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=-0.5
    z=-11
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior free
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-10
  }
  angle
  {
    x=10
    y=120
    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=-0.3
    z=-10
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=Passenger seat
  fov=70
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.3
    y=0.0
    z=-3.0
  }
  angle
  {
    x=10
    y=170
    z=0
  }
}
camera8
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=1.4
    y=0.06
    z=-0.6
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  view=0
  wheels=2
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.0
    y=-2.0
    z=-6.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}



audio
{
  skid
  {
    sample=skid.wav
  }
  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=1600
    }
    smp1
    {
      sample=lo.wav
      volume=0.7
      min=600
      max=1200
      attack=150
      decay=300
      natural=4000
    }
    smp2
    {
      sample=mid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=5000
    }
    smp3
    {
      sample=hi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=6700
    }
    smp4
    {
      sample=oddwhine.wav
      volume=0.5
      min=100
      max=1600
      decay=1800
      natural=900
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=0.9
      min=300
      max=650
      decay=350
      natural=1600
    }
    smp1
    {
      sample=lo.wav
      volume=0.7
      min=800
      max=1200
      attack=150
      decay=300
      natural=4000
    }
    smp2
    {
      sample=mid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=5000
    }
    smp3
    {
      sample=hi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=6700
    }
    smp4
    {
      sample=oddwhine.wav
      volume=0.3
      min=100
      max=10000
      natural=1000
    }
  }

  accelerate_in
  {
    smp0
    {
      sample=intidle.wav
      volume=0.7
      min=300
      max=650
      decay=100
      natural=1600
    }
    smp1
    {
      sample=intlo.wav
      volume=0.7
      min=800
      max=1200
      attack=150
      decay=300
      natural=4000
    }
    smp2
    {
      sample=lo.wav
      volume=0.3
      min=800
      max=1200
      attack=150
      decay=300
      natural=4000
    }
    smp3
    {
      sample=intmid.wav
      volume=0.8
      min=1400
      max=2000
      attack=300
      decay=500
      natural=5000
    }
    smp4
    {
      sample=mid.wav
      volume=0.4
      min=1400
      max=2000
      attack=300
      decay=500
      natural=5000
    }
    smp5
    {
      sample=inthi.wav
      volume=0.9
      min=2400
      max=10000
      attack=500
      natural=6700
    }
    smp6
    {
      sample=hi.wav
      volume=0.3
      min=2400
      max=10000
      attack=500
      natural=6700
    }
    smp7
    {
      sample=oddwhine.wav
      volume=0.4
      min=100
      max=4000
      decay=1800
      natural=1000
    }
  }

  decelerate_in
  {
    smp0
    {
      sample=intidle.wav
      volume=1.0
      min=300
      max=750
      decay=350
      natural=1600
    }
    smp1
    {
      sample=intlo.wav
      volume=0.2
      min=800
      max=1200
      attack=150
      decay=300
      natural=4000
    }
    smp2
    {
      sample=intmid.wav
      volume=0.3
      min=1400
      max=2000
      attack=300
      decay=500
      natural=5000
    }
    smp3
    {
      sample=inthi.wav
      volume=0.4
      min=2400
      max=10000
      attack=500
      natural=6700
    }
    smp4
    {
      sample=oddwhine.wav
      volume=0.8
      min=100
      max=4000
      decay=1800
      natural=1000
    }
  }

  gearwhine
  {
    pitch_scale=0.5
    smp0
    {
      sample=oddwhine2.wav
      volume=0.8
      min=0
      max=1
      decay=500
      natural=50
    }
  }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=2
      min=0
      max=100
      natural=50
    }
  }
}
