car
{
  name=Ford Model B Roadster
  year=1932
  credits=Convert by Priban from Gta San Andreas
  comments=409 Turbo-Fire V8 340 hp custom
  id=ford_model_b
  version=0655
  wheels=4

  skid
  {
    sample=skid.wav
  }

graphics
{
   ; Car models used
   shadow
   {
      model
      {
         ; Projected shadow model
         file=ford.dof
         use_shaders=0
      }
   }
}

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

;----------------------------------------------------------------------
;Body:}
body
{
  mass=1500
  restitution_coeff=0.25
  inertia
  {
    x=2510	
    y=2750		
    z=470	
  }
  model
  {
    file=ford.dof
    offset
    {
    x=0.0
    y=0.0
    z=0.0
    }
  }
  model_incar
  {
    file=ford.dof
  }
model_reverse_r
  {
    file=
  }
  model_light_l
  {
    file=
    offset
    {
    x=0.0
    y=0.09
    z=0.0
    }
  }
model_reverse_r
  {
    file=
  }
  model_braking_l
  {
    file=brake.dof
    offset
    {
    x=0.0
    y=0.00
    z=0.0
    }
  }
  model_reverse_r
  {
    file=
  }
  model_lightroad_l
  {
  file=lights.dof
  }
  width=1.798
  height=1.417
  length=4.818
  manual_box=1
}
model_reverse_r
  {
    file=
  }
wipers
{
  ; Windscreen wipers
  count=1
  wiper0
  {
    x=-0.28
    y=0.35
    z=-1.64
    xa=-75
    min_angle=5
    max_angle=-85
    model
    {
      file=
    }
  }
}

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

steer
{
  x=0.30
  y=0.92
  z=-0.05
  xa=45
  lock=900
  linearity=0.2
  model
  {
    file=swheel.dof
  }
}


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

engine
{
  ; Position (stub gfx)
  x=0
  y=.2
  z=1.42
  size=.25
  mass=333.39
  max_rpm=5000
  idle_rpm=775
  autoclutch_rpm=0
  curve_torque=torque.crv
  max_torque=425
  torque_reaction=1
  starter=1
  starter_torque=150
  start_stalled=1
  stall_rpm=250
  start_rpm=900
  shifting
  {
    automatic=0
    shift_up_rpm=4800
    shift_down_rpm=1150
    time_to_declutch=100
    time_to_clutch=300
    time_in_neutral=0
  }
  ; Inertia of engine parts
  inertia
  {
    ; Rotational inertia of engine parts (kg*m^2)
    engine=0.73
    final_drive=1.25
  }
  braking_coeff=1.94
  friction=0
  ;sample=engine.wav
  ;sample_rpm=3200
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=83.0
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine
  bsfc=6.0e-5
  ;bsfc=6.944e-5
}
gearbox
{
   gears=4
   ; M
   gear0
   {
      ratio=-14.52
      inertia=0.21
   }
   gear1
   {
      ratio=3.63
      inertia=0.13
   }
   gear2
   {
      ratio=1.69
      inertia=0.09
   }
   gear3
   {
      ratio=1.0
      inertia=0.09
   }
}
clutch
{
   max_torque=650
}
handbrakes
{
   wheels=23
}
differential
{
   type=0
   inertia=0.2
   ratio=4.54 
   locking_coefficient=75
   locking_coeff=75
   clutches=2
   clutch_factor=1
   power_angle=0
   coast_angle=0
   output0=2
   output1=3
}
abs
{
   max_velocity_ratio=1.7
   min_velocity_ratio=1.3
   enable=0
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.09
  enable=0
}
;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.30
    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=12400
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=6100
  }
}

;----------------------------------------------------------------------
;Suspension front

susp_front   
{
  y=0.51
  z=1.75
  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=-0.53
    z=0
  }
}

susp0~susp_front
{
  x=0.71
}

susp1~susp_front
{
  x=-0.71
}

;----------------------------------------------------------------------
;Suspension rear


susp_rear  
{
  y=0.515
  z=-1.25
  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=-0.53
    z=0
  }
}

susp2~susp_rear
{
  x=0.72
}

susp3~susp_rear
{
  x=-0.72
}

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


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:

wheel_front
{
  y=-0.07
  z=-0.2
  camber=0.0
  steering=1
  powered=0
  lock=57
  ackerman=1.1
  mass=15
  inertia=1.05
  width=.185
  radius=0.35
  rolling_coeff=0.015
  friction_road=1.7
  max_braking=2500
  braking_factor=1
  tire_rate=240000
  pacejka~pacejka
  { 
  }
}

wheel0~wheel_front
{
  x=0
  toe=0
  model
  {
    file=leve-p.dof
  }
  model_brake
  {
    file=
  }
  pacejka~pacejka
  {
  }
}

wheel1~wheel_front
{
  x=0
  toe=0
  model
  {
    file=prave-p.dof
  }
  model_brake
  {
    file=
  }
  pacejka~pacejka
  {
  }
}

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

wheel_rear
{
  y=0
  z=-0.12
  camber=-0.5
  steering=0
  powered=1
  mass=15
  inertia=0.95
  radius=0.39
  width=.185
  rolling_coeff=0.015
  friction_road=1.7
  braking_factor=1
  max_braking=1550
  max_handbrake_torque=3000
  tire_rate=270000
  pacejka~pacejka
  {
  }
}

wheel2~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=leve-z.dof
  }
  model_brake
  {
    file=
  }
  pacejka~pacejka
  {
  }
}

wheel3~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=prave-z.dof
  }
  model_brake
  {
    file=
  }
  pacejka~pacejka
  {
  }
}

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

camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.3
    y=1.3
    z=-0.7
  }
  offset_to
  {
    x=0.34
    y=-0.0
    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=1
  view=0
  wheels=0
  offset
  {
    x=0.3
    y=1.3
    z=-0.7
  }
  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=1
  view=0
  wheels=0
  offset
  {
    x=0.3
    y=1.3
    z=-0.7
  }
  offset_to
  {
    x=-10.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=1.3
    z=-0.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=-5
  }
  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=-5
  }
  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.5
    z=-5
  }
  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=-1.2
    z=-0.7
  }
  angle
  {
    x=5
    y=170
    z=0
  }
}
camera8
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=1.4
    y=0.00
    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
    y=-1.2
    z=0.5
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
  skid
	{
	volume=2
        sample=skid.wav
        sample2=skid.wav
	}
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shift.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_in
  {
    volume=3
    smp0~audio.acc_all
    {
      sample=sounds\idle.wav
      min=50
      max=6250
      natural=1050
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow.wav
      min=500
      max=2250
      natural=2625
    }
    smp2~audio.acc_all
    {
      sample=sounds\onverylow.wav
      min=1751
      max=3525
      natural=2625
    }
    smp3~audio.acc_all
    {
      sample=sounds\onlow.wav
      min=2275
      max=8350
      natural=3575
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh.wav
      min=3550
      max=9500
      natural=4200
    }
  }
  decelerate_in
  {
    volume=3
    smp0~audio.acc_all
    {
      sample=sounds\idle.wav
      min=50
      max=4300
      natural=1050
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow.wav
      min=938
      max=6025
      natural=3825
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow.wav
      min=2001
      max=5175
      natural=4750
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid.wav
      min=4026
      max=5950
      natural=4200
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh.wav
      min=5200
      max=9500
      natural=4200
    }
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=sounds\idleEX.wav
      min=50
      max=5250
      natural=1050
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylowEX.wav
      min=500
      max=2250
      natural=2725
    }
    smp2~audio.acc_all
    {
      sample=sounds\onverylowEX.wav
      min=1751
      max=3775
      natural=2725
    }
    smp3~audio.acc_all
    {
      sample=sounds\onlowEX.wav
      min=2275
      max=9350
      natural=3675
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhighEX.wav
      min=3800
      max=9500
      natural=4300
    }
  }
  decelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=sounds\idleEX.wav
      min=50
      max=5300
      natural=1050
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylowEX.wav
      min=938.5
      max=4150
      natural=3925
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlowEX.wav
      min=2001
      max=5425
      natural=4850
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmidEX.wav
      min=4151
      max=6075
      natural=4300
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhighEX.wav
      min=5450
      max=9500
      natural=4300
    }
  }
  wind
	{
		volume=2
		pitch_scale=0
		pitch_offset=50
		smp0
		{
			sample=wind1.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=wind2.wav
			min=50
			max=51
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=wind3.wav
			min=75
			max=76
			attack=33
			decay=33
			natural=80
		}
	}
}