car
{
   name=DAF LF

   year=2010
   credits=
   comments=Made by GTA IV unlocked by Teddymods (LFS) converted for racer by Racer Simulator Portugal
   id=DAFLF
   version=090b
   wheels=4
   skid
   {
      sample=skid.wav
   }
   
   cg
   {
      x=0
      y=0.3
      z=-0.13
   }
}
graphics
{
   ; Car models used
   shadow
   {
      model
      {
         ; Projected shadow model
         file=body.dof
         use_shaders=0
      }
   }
}
ai
{
   ;understeer_correct=20
   ;oversteer_correct=20
   grip_factor=1.5
}
body
{
   
   mass=1000
   ; Inertia values; X/Y/Z=pitch, yaw (heading), roll
   inertia
   {
      x=2700
      y=2900
      z=575
   }

   width=1.8
   height=1.1
   length=4.2

   manual_box=1

   ; 3D model of the car
   model
   {
      file=daf_LF.dof

   }
   model_incar
   {
      file=daf_LF.dof
   }
   model_lightroad_l
   {
    file=lights.dof
   }
  model_light_l
  {
    file=lights.dof
  }
  width=2.5
  height=2.9	
  length=12
  manual_box=0
}
model_reverse_l
        {
      file=wsteczny.dof
        }
 model_braking_l
   {
     file=brakes.dof
   }
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=1.2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}

steer
{
  x=0.79
  y=1.88
  z=2.3
  radius=10
  lock=1090
  xa=60.19
  model
  {
    file=volante.dof
  }
}

engine
{
  mass=1000
  max_rpm=4000
  idle_rpm=300
  stall_rpm=100
  start_rpm=620
  autoclutch_rpm=700
  starter=1
  start_stalled=1
  starter_torque=200
  curve_torque=torque.crv
  max_torque=900	
  torque_reaction=1.2
  shifting
  {
    automatic=0
    shift_up_rpm=2400
    shift_down_rpm=900
    time_to_declutch=500
    time_in_neutral=160
    time_to_clutch=400
    time_to_declutch_down=200
    time_in_neutral_down=160
    time_to_clutch_down=500
  }
  inertia
  {
    engine=2
  }
  braking_coeff=8
}
;added a lower range first gear for hill starts mainly. 

 ; Speed limiter - velocity at which limiter kicks in (m/s)
speedlimiter
  {
    ; 80 km/h
    velocity=20
    ; Time (ms) to keep throttle cut when going above the limiter velocity
    time=100
 }

gearbox
{
  gears=9
  gear0
  {
    ratio=-5.970
    inertia=0.720
  }
  gear1
  {
    ratio=6.380
    inertia=0.510
  }
  gear2
  {
    ratio=4.280
    inertia=0.510
  }
  gear3
  {
    ratio=2.430
    inertia=0.408
  }
  gear4
  {
    ratio=1.590
    inertia=0.304
  }
  gear5
  {
    ratio=1.000
    inertia=0.050  
  }
gear6
  {
    ratio=0.900
    inertia=0.050  
  }
gear7
  {
    ratio=0.800
    inertia=0.050  
  }
gear8
  {
    ratio=0.700
    inertia=0.030  
  }
}
differential
{
   type=0
   ratio=5.91
   power_angle=0
   coast_angle=0
   clutches=2
   clutch_factor=1
   locking_coeff=0
   output0=2
   output1=3
   
}
clutch
{
   ; Specifies the capacity (amount of frictional torque) the clutch can generate (Nm).
   ; Keep this value above your engine's maximum torque generation (engine.max_torque), or the clutch will slip when reaching that peak.
   ; Keeping it low, on the other hand, makes for smoother shifting, since the clutch isn't that grippy (less chances to stall too).
   max_torque=800
}

handbrakes
{
   ; Defines the wheels where the handbrake is applied. (rear wheels)
   wheels=23
}


aero
{
   body
   {
      center=0 0 0
      cx=0.67
      area=1.82
   }
   wings=1
   wing0
   {
      name=Rear
      span=1.4
      cord=0.1
      angle=0
      angle_offset=1
      coeff_drag=1
      coeff_down=10
      center=0.000 0.000 -2.000
   }
}

antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=10000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=-10000
   }
}


susp_front
{
   caster_offset=-0.01
   camber_change_steering=.0
   camber_change_per_m=.35
   y=0.70
  z=1.785
   ; Size of suspension when in rest
   restlen=0.63
   minlen=0.25
   maxlen=0.80
   radius=.04
   slices=5
   k=22900
   bump_rate=2850
   rebound_rate=4450
   anti_pitch=0.5
   ; Roll center
   roll_center
   {
      x=0
      y=-0.67
      z=0
   }
}
susp_rear
{
   caster_offset=-0.01
   ;camber_change_per_m=.5
   ; Relative location (to body)
   y=0.80
  z=-3.500
   ; Size of spring when in rest (used as size of suspension actually)
   restlen=0.63
   minlen=0.25
   maxlen=0.80
   k=42700
   bump_rate=2250
   rebound_rate=3850
   anti_pitch=0.5
   ; Roll center (lateral forces are applied here; relative to suspension)
   roll_center
   {
      x=0
      y=-0.63
      z=0
   }
   ; Gfx (check if used)
   radius=.04
   slices=5
}
susp0~susp_front
{
   x=1.27
   roll_center
   {
      x=0
      y=-0.67
      z=0
   }
}
susp1~susp_front
{
   x=-1.27
   roll_center
   {
      x=0
      y=-0.67
      z=0
   }
}
susp2~susp_rear
{
   x=1.17
   roll_center
   {
      x=0
      y=-0.67
      z=0
   }
}
susp3~susp_rear
{
   ; Relative location (to body)
   x=-1.17
   roll_center
   {
      x=0
      y=-0.67
      z=0
   }
}

;----------------------------------------------------------------------------
; Wheels
;----------------------------------------------------------------------------

tire_model_front
{
   damping_predict_lat=0.572
   damping_predict_long=0.023
}
tire_model_rear
{
   damping_predict_lat=0.560
   damping_predict_long=0.022
}

;----------------------------------------------------------------------------
; Pacejka
;----------------------------------------------------------------------------

pacejka
{
    a0=1.5
    a1=-65
    a2=1975
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=1.0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-70
    b2=1900
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.25
    b11=-80
    b12=350
    c0=2.3
    c1=-3.8
    c2=-3.14
    c3=-1.16
    c4=-7.2
    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.11
    optimal_slipangle=0.159
}

wheel_front
{
   steering=1

   ; Max wheel rotation
   lock=80
   ; Mass in kilograms
   mass=20.2
   ackerman=1.2
   inertia=1.1
   radius=0.565
   width=.40
   slices=20
   powered=0
   tire_rate=520000

   ; Angle de pincement
   toe=0
   ; Carrossage Avant -0.5°
   camber=3

   ; Braking capability in Nm (torque)
   max_braking=4250
   ; Brake factor (determines brake balance)
   braking_factor=0.7
   pacejka~pacejka
   {
   }
}
wheel0~wheel_front
{
   x=0
   y=0
   z=-0.50
  model
  {
      file=leftfront.dof
  }
   ackerman=1.2
   mass=20.2
   radius=0.565
   tire_rate=166713
   pacejka~pacejka
   {
   }
}
wheel1~wheel_front
{
   x=0
   y=0
   z=-0.50
  model
  {
      file=rightfront.dof
  }
   ackerman=1.2
   mass=20.2
   radius=0.565
   tire_rate=166713
   pacejka~pacejka
   {
   }
}
wheel_rear
{
   y=0.00
   z=0.00

   steering=0

   ; Mass in kilograms (add car body)
   mass=18.2
   inertia=1.1
   radius=0.565
   width=.40
   slices=20
   camber=-0.5
   max_handbrake_torque=6000
   ; Braking capability in Nm (torque)
   max_braking=1750
   ; Brake factor (determines brake balance)
   braking_factor=0.25


   ; Vertical tire spring rate (when the wheel is loaded, it acts as a spring) in N/m (not N/cm)
   tire_rate=520000

   pacejka~pacejka
   {
   }
}
wheel2~wheel_rear
{
   x=0
   y=0
   z=0
  model
  {
      file=leftback.dof
  }
   ackerman=1.2
   mass=20.2
   radius=0.565
   tire_rate=166713
   pacejka~pacejka
   {
   }
}
wheel3~wheel_rear
{
   x=0
   y=0
   z=0
  model
  {
      file=rightback.dof
  }
   ackerman=1.2
   mass=20.2
   radius=0.565
   tire_rate=166713
   pacejka~pacejka
   {
   }
}

;----------------------------------------------------------------------------
; Cameras
;----------------------------------------------------------------------------


 camera0
{
  name=Driver
  fov=62
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.78
  y=2.4
  z=1.6
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=0
  wheels=0
  view=1
   offset
  {
   x=0.78
  y=2.4
  z=1.6
  }
  offset_to
  {
    x=10
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=0
  wheels=0
  view=1
  offset
  {x=0.78
  y=2.4
  z=1.6
  }
  offset_to
  {
    x=-10
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
   name=Driver, left
  fov=65
  model=0
  wheels=0
  view=1
   offset
  {
   x=0.00
  y=2.4
  z=2.0
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  offset
  {
    x=0
    y=0.5
    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
    y=0.489584
    z=-34.555015
  }
  angle
  {
    x=86.527802
    y=-308.854156
    z=11.718752
  }
  fov=60
}
camera7
{
  offset
  {
    x=-1.751565
    y=-1.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
    y=-4
    z=-7
  }
  angle
  {
    x=2
    y=180
    z=0
  }
  fov=75
name=BUS MIDDLE
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.2
    z=1.1
  }
  angle
  {
    x=0
    y=0
    z=0.000000
  }
  fov=65
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=2
  name=REAR BUMPER VIEW
}

}
;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
  skid
  {
    sample=sounds/skid.wav
  }
  horn
  {
    sample=sounds/horn.wav
  }
  shiftout
  {
    sample=sounds/shift.wav
  }
  shiftin
  {
    sample=sounds/shiftin.wav
  }
  throttle_off
  {
      sample=
  }
  accelerate_out
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=1.5
      min=100
      max=1000
      attack=0
      decay=1000
      natural=2000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.2
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=5000
    }
    smp2
    {
      sample=sounds/trb_loop.wav
      volume=0.8
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=1.5
      min=100
      max=1000
      attack=0
      decay=1500
      natural=2000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=0.8
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=5000
    }
    smp2
    {
      sample=sounds/exhaust.wav
      volume=0.8
      min=2800
      max=3000
      attack=1000
      decay=0
      natural=5000
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=1.5
      min=100
      max=1000
      attack=0
      decay=500
      natural=2000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.2
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=5000
    }
    smp2
    {
      sample=sounds/trb_loop.wav
      volume=0.8
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=1.5
      min=100
      max=1000
      attack=0
      decay=1500
      natural=2000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=0.8
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=5000
    }
    smp2
    {
      sample=sounds/exhaust.wav
      volume=0.8
      min=2800
      max=3000
      attack=1000
      decay=0
      natural=5000
    }
  }
  gearwhine
  {
    smp0
    {
      sample=
      volume=1.0
      min=1
      max=2
      decay=500
      natural=300
    }
  }
  wind
  {
    smp0
    {
      sample=sounds/wind2.wav
      volume=0.5
      min=1
      max=2
      decay=100
      natural=30
    }
  }
}