;=
car
{
  name=Citroen Berlingo
  year=2003
  credits=Model/Textures : Skybh, INI : Skybh/Cosmo°, Thanks to jeeP
  id=citroenberlingo
  version=090
  comments=1.9D 71ch Multispace
  wheels=4
  acc_factor=1
  plates=
  speed_class=
  shadow
  {
    texture=textures/shadow.tga
    width=2.80
    length=5.70
    intensity_dark=0.7
    intensity_light=0.3
  }
  cg
  {
    x=0
    ;67 cm (~38%)
    y=-0.208
    z=0.2910
    ;z=-0.20
  }
  ff_factor=1.00
  ff_gain=1.00
  ff_damping=0
  ff_friction=0.5
  ff_inertia=0.4
  ff_stickfriction=0.50
}
scripts
{
  load=
}
abs
{
  enable=0
  braking_factor=1
  max_velocity_ratio=1.06
  min_velocity_ratio=1.05
  min_velocity=6
}
traction_control
{
  enable=0
  max_velocity_ratio=1.10
  min_velocity_ratio=1.06
  min_velocity=6
}
ai
{
  cg_factor=0
  grip_factor=1
  max_velocity=1000
  rain_performance_ratio=0
  rc_factor=0
  safetycar_performance_ratio=0
  snow_performance_ratio=0
  spring_lat_factor=0
  spring_dir_factor=0
  stability_reduces_velocity=0
  steering_factor=0
  oversteer_correct=10
  understeer_correct=10
  yellow_performance_ratio=0
}
body
{
  ; mass=1045
  mass=1117
  ;mass=1645
  ;1522kg
  inertia
  {
    ; no payload
    x=1880
    y=1950
    z=545
    ; with 600 kg payload
    ; x=2490
    ; y=2550
    ; z=550
  }
  yaw_damper
  {
    k=
    max_torque=
    threshold=
  }
  width=1.81
  height=1.45
  length=4.70
  manual_box=0
  box_offset=0.0
  model
  {
    file=body.dof
    offset
    {
      x=0.000
      y=0.000
      z=0.000
    }
  }
  model_incar
  {
    file=body.dof
  }
  model_collide
  {
    file=coll.dof
  }
  model_braking_l
  {
    file=stop_p.dof
    ; offset
    ; {
    ; x=0
    ; y=0
    ; z=0
    ; }
  }
  model_lightroad_l
  {
    file=lights_in.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_reverse_r
  {
    file=recul.dof
  }
}
steer
{
  x=0.346
  y=0.04
  z=0.53
  xa=30
  lock=1188
  ;3.3 turns lock-to-lock
  linearity=1.086
  model
  {
    file=volant_c.dof
  }
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=0
  idle_method=1
  idle_throttle=0
  idle_rpm=775
  max_rpm=5350
  rev_limiter_time=5
  min_warn_rpm=4800
  max_warn_rpm=4800
  autoclutch=0
  autoclutch_rpm=0
  launch_control=0
  curve_torque=courbes/engine_torque_DW8.crv
  max_torque=1.0
  torque_reaction=0
  starter=1
  starter_torque=125
  start_stalled=0
  enable_stall=1
  stall_rpm=400
  start_rpm=1000
  braking_coeff=0
  braking_offset=0
  braking_torque_curve=courbes/engine_braking_DW8.crv
  friction=0
  cylinders=4
  cylinder_angle=0
  rumble_amplitude=7000
  rumble_maxrpm=2000
  inertia
  {
    ; Inerties : 2.0Hdi = 0.245, 1.6HDi = 0.195, 1.9D = 0.23
    engine=0.23
  }
  jitter
  {
    amplitude=0
    frequency_min=0
    frequency_var=5
    time_min=0
    time_var=500
  }
  shifting
  {
    automatic=0
    blip_throttle=0
    cut_throttle=0
    fast=0
    shift_up_rpm=4600
    shift_down_rpm=1300
    time_to_declutch=200
    time_in_neutral=0
    time_to_clutch=200
    time_to_declutch_down=200
    time_in_neutral_down=0
    time_to_clutch_down=200
    cut_ignition=1
  }
  speedlimiter
  {
    time=2
    velocity=22.222
  }
}
fuel
{
  bsfc=4.05e-5
  max=66
  type=1
}
clutch
{
  max_torque=150
}
gearbox
{
  gears=6
  init_gear=0
  gear0
  {
    ratio=-3.457
    inertia=0.02
    engine_map=1.0
    warning_sound
    {
      duration=0
      freq=0
      rpm=0
    }
  }
  gear1
  {
    ratio=3.454
    inertia=0.02
    engine_map=1.0
    warning_sound
    {
      duration=0
      freq=0
      rpm=0
    }
  }
  gear2
  {
    ratio=1.869
    inertia=0.04
    engine_map=1.0
    warning_sound
    {
      duration=0
      freq=0
      rpm=0
    }
  }
  gear3
  {
    ; 1.6HDi
    ratio=1.280
    ; 1.9D
    ; ratio=1.28
    inertia=0.06
    engine_map=1.0
    warning_sound
    {
      duration=0
      freq=0
      rpm=0
    }
  }
  gear4
  {
    ; 1.6HDi
    ratio=0.951
    ; 1.9D
    ;BV Courte
    ;ratio=0.745
    ;BV longue
    ;ratio=0.822
    ; ratio=0.951
    inertia=0.08
    engine_map=1.0
    warning_sound
    {
      duration=0
      freq=0
      rpm=0
    }
  }
  gear5
  {
    ; 1.6HDi
    ; ratio=0.659
    ;1.9D
    ;BV Courte
    ;ratio=0.745
    ;BV longue
    ;ratio=0.659
    ratio=0.744
    inertia=0.10
    engine_map=1.0
    warning_sound
    {
      duration=0
      freq=0
      rpm=0
    }
  }
}
handbrakes
{
  wheels=23
}
differentials
{
  count=1
  diff0
  {
    type=0
    ; 1.6HDi
    ; ratio=3.95
    ; 1.9D
    ; ratio=4.53
    ratio=4.529
    ; 2.0HDi
    ; ratio=3.79
    inertia=0.02
    friction=53
    output0=0
    output1=1
  }
  ; diff0
  ; {
  ; type=3
  ; preload=25000000
  ; power_ratio=3.25
  ; coast_ratio=1.75
  ; 1.6HDi
  ; ratio=3.95
  ; 1.9D
  ; ratio=4.53
  ; ratio=4.16
  ; 2.0HDi
  ; ratio=3.79
  ; inertia=0.02
  ; friction=53
  ; output0=0
  ; output1=1
  ; }
}
aero
{
  body
  {
    center=0 0 -0.03
    cx=0.370
    area=2.63
  }
  draft
  {
    scale_lat_rear=0.2
    scale_lon_rear=1
    scale_lat_front=0.01
    scale_lon_front=0.4
  }
  wings=2
  wing0
  {
    name=Front axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 1.2575
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Rear axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 -1.4355
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  ; 3.0°/g
  ; 67.5% front
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    ;k=60000
    k=34500
  }
  arb1
  {
    susp_left=2
    susp_right=3
    ;k=20000
    k=775
  }
}
susp_front
{
  y=-0.14
  z=1.2575
  minlen=0.28
  restlen=0.52
  maxlen=0.50
  warplen=0.424
  k=39500
  damper_curve=courbes/suspension_damper_front.crv
  bumpstop_len=0.020
  bumpstop_k=50000
  bumpstop_damping=5000
  reboundstop_len=0.010
  reboundstop_k=40000
  reboundstop_damping=5000
  anti_pitch=0.25
  susp_y_change_per_rad=0
  model
  {
    file=vide.dof
  }
  roll_center
  {
    x=0
    ;~12cm
    y=-0.735
    z=0
  }
}
susp_rear
{
  y=-0.16
  z=-1.4355
  minlen=0.25
  restlen=0.56
  maxlen=0.53
  warplen=0.463
  ;k=19400		;1.49 Hz
  k_curve=courbes/suspension_spring_rear_vu.crv
  damper_curve=courbes/suspension_damper_rear_vu.crv
  bumpstop_len=0.005
  bumpstop_k=30000
  bumpstop_damping=2500
  reboundstop_len=0.005
  reboundstop_k=30000
  reboundstop_damping=3000
  anti_pitch=0.75
  susp_y_change_per_rad=0
  model
  {
    file=vide.dof
  }
  roll_center
  {
    x=0
    ;~20 cm
    y=-0.713
    z=0
  }
}
susp0~susp_front
{
  x=0.718
  ;1557 mm front track
  toe_change_per_m=0
  caster_angle=0.0639
  ;
  ;
  ;4.30°
  ;
  ;
  caster_offset=-0.012
  camber_change_per_m=0.184
  camber_change_steering=0.042
  kingpin_angle=0
  kingpin_offset=0
}
susp1~susp_front
{
  x=-0.718
  toe_change_per_m=0
  caster_angle=0.0639
  ;
  ;
  ;4.30°
  ;
  ;
  caster_offset=-0.012
  camber_change_per_m=0.184
  camber_change_steering=-0.042
  kingpin_angle=0
  kingpin_offset=0
}
susp2~susp_rear
{
  x=0.726
  toe_change_per_m=0
  caster_angle=0
  caster_offset=0
  camber_change_per_m=0.00
  camber_change_steering=0
  kingpin_angle=0
  kingpin_offset=0
}
susp3~susp_rear
{
  x=-0.726
  toe_change_per_m=0
  caster_angle=0
  caster_offset=0
  camber_change_per_m=0.00
  camber_change_steering=0
  kingpin_angle=0
  kingpin_offset=0
}
pacejka
{
  ; 175/65 R14
  ; Pacejka constants (Pacejka96 model)
  model=0
  ; Lateral coefficients
  a0=1.10
  a1=-49
  a2=1135
  a3=1625
  a4=5.25
  a5=0.00000
  a6=0.00000
  a7=0.20000
  a8=0.00000
  a9=0.00000
  a10=0.00000
  a111=0.00000
  a112=0.00000
  a12=0.00000
  a13=0.00000
  ; Longitudinal coefficients
  b0=1.10000
  b1=-38.00000
  b2=1130.00000
  b3=10.00000
  b4=300.00000
  b5=0.08000
  b6=0.00000
  b7=0.00000
  b8=0.50000
  b9=0.00000
  b10=0.00000
  ; Aligning moment coefficients
  c0=3.25000
  c1=-1.00000
  ;c2=-5.40000
  c2=-4
  c3=0.00000
  c4=-2.00000
  c5=-0.08000
  c6=0.00000
  c7=-0.09000
  c8=0.00000
  c9=0.00000
  c10=0.00000
  c11=0.00000
  c12=0.00000
  c13=0.00000
  c14=-0.04000
  c15=0.00000
  c16=0.00000
  c17=0.00000
  ; Statistical data (SR, SA in radians)
  ;optimal_slipratio=0.24828
  ;optimal_slipangle=0.18777
  optimal_slipangle=0.161
  optimal_slipratio=0.200
  ;Values from default's car.ini
  fz_min=0
  fz_max=1e6
  slipangle_min=-99
  slipangle_max=99
  slipratio_min=-99
  slipratio_max=99
  camber_min=-99
  camber_max=99
  lyka=1.0
  lxal=1.0
}
wheels
{
  reverse_steering=0
  rolling_coeff=0.009
  inertia=0.538
  width=0.175
  radius=0.29155
  inboard_brakes=0
  max_braking=3000
  brake_dissipation=0.0005
  brake_max_temp=650
  tire_damping=2500
  tire_damping_lowspeed=250
  tire_damping_threshold=5
  load_filter_frequency=0
  ;surface_height_filter_damping=0
  surface_height_filter_frequency=0
  fz_filter_frequency=70
  fz2_filter_frequency=30
  fy_filter_frequency=70
  fx_filter_frequency=0
  noise_filter_damping=0
  noise_filter_frequency=0
  pacejka~pacejka
  {
  }
  tire_model
  {
    damping_coefficient_lat=0.7
    damping_coefficient_long=0.7
    damping_predict_lat=0
    damping_predict_long=0
    damping_speed=0.15
    relaxation_length_lat=0.5
    relaxation_length_long=0.05
  }
  contact_patch_width=0.1
  contact_patch_length=0.1
  friction_circle_method=10
  slide_force_scale=1.0
  ; noronha
  ; {
  ; enable=0
  ; kt=300000
  ; ks=100000
  ; relaxation_t=0
  ; relaxation_s=0
  ; }
}
wheel_front~wheels
{
  x=0
  y=0
  z=0
  ackerman=1.15
  steering=1
  reverse_steering=0
  powered=1
  lock=58.976
  mass=45
  braking_factor=0.85
  max_handbrake_torque=0.0
  tire_rate=240000
  brake_heating=0.0001
}
wheel_rear~wheels
{
  x=0
  y=0
  z=0
  ackerman=0.0
  steering=0
  lock=0
  mass=37
  braking_factor=0.15
  max_handbrake_torque=6500
  tire_rate=260000
  brake_heating=0.00006
}
wheel0~wheel_front
{
  camber=0.988
  toe=0.00
  model
  {
    file=rg_t.dof
  }
  model_brake
  {
    file=vide.dof
  }
}
wheel1~wheel_front
{
  camber=0.988
  toe=0.00
  model
  {
    file=rd_t.dof
  }
  model_brake
  {
    file=vide.dof
  }
}
wheel2~wheel_rear
{
  toe=-0.266
  camber=-1.216
  model
  {
    file=rg_t.dof
  }
  model_brake
  {
    file=vide.dof
  }
}
wheel3~wheel_rear
{
  toe=0.266
  camber=-1.216
  model
  {
    file=rd_t.dof
  }
  model_brake
  {
    file=vide.dof
  }
}
;
;lod
;{
;  lod0_z=30
;}
;
camera0
{
  steering_wheel=1
  show_helmet=1
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  angle
  {
    x=6
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.3650
    y=0.3550
    z=-0.079
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  head_physics
  {
    ; Springs (given a head of ~6kg)
    lateral
    {
      k=2500
      damp=110
      min=-10
      max=10
    }
    vertical
    {
      k=2000
      damp=225
      min=-10
      max=10
    }
    longitudinal
    {
      k=1100
      damp=380
      min=-10
      max=10
    }
    yaw
    {
      k=1700
      damp=380
      min=-10
      max=10
    }
    pitch
    {
      k=700
      damp=150
      min=-10
      max=10
    }
    roll
    {
      k=1700
      damp=380
      min=-10
      max=10
    }
  }
}
camera1
{
  name=Driver, left
  fov=55
  model=1
  wheels=0
  view=1
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.4100
    y=0.435
    z=-0.195
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.4100
    y=0.435
    z=-0.195
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.4100
    y=0.435
    z=-0.195
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=1.15
    z=-4.20
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=12
    y=0
    z=0
  }
  src
  {
    mass=1
    k=300
    damping=8
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=300
    damping=8
    maxdist=1.5
  }
}
camera5
{
  name=Cote
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=-0.41
    y=-0.5
    z=-6.15
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=15
    y=270
    z=0
  }
}
camera6
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera7
{
  name=Side
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=-0.74
    y=-0.3
    z=-5.51
  }
  angle
  {
    x=0
    y=-145
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera8
{
  name=Bonnet
  fov=45
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.84
    y=-0.19
    z=-5.75
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=11
    y=-215
    z=-15
  }
}
camera9
{
  name=Bonnet
  fov=45
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.19
    y=-0.19
    z=-4.64
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=-8
    y=-38
    z=-15
  }
}
audio
{
  skid
  {
    smp0
    {
      volume=0.12
      sample=audio/skid_low.wav
      min=0.2
      max=0.2
      attack=0.15
      decay=0.55
    }
    smp1
    {
      volume=1.0
      sample=audio/skid_high.wav
      min=0.6
      max=0.6
      attack=0.55
      decay=1.6
    }
  }
  horn
  {
    sample=horn.wav
  }
  acc_all
  {
    ;attack=1350
    ;decay=1350
    volume=0.250
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio\dw8\idle.wav
      min=600
      max=1000
      attack=0
      decay=600
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=audio\dw8\max.wav
      min=1100
      max=4000
      attack=200
      decay=2000
      natural=4900
    }
    smp2~audio.acc_all
    {
      sample=audio\dw8\max.wav
      min=2300
      max=6000
      attack=200
      decay=4000
      natural=4900
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio\dw8\idle.wav
      min=600
      max=1000
      attack=0
      decay=600
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=audio\dw8\max.wav
      min=1100
      max=6000
      attack=200
      decay=4000
      natural=4900
    }
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=audio\dw8\idle_int.wav
      min=600
      max=1000
      attack=0
      decay=600
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=audio\dw8\max_int.wav
      min=1100
      max=4000
      attack=200
      decay=2000
      natural=4900
    }
    smp2~audio.acc_all
    {
      sample=audio\dw8\max_int.wav
      min=2300
      max=6000
      attack=200
      decay=4000
      natural=4900
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=audio\dw8\idle_int.wav
      min=600
      max=1000
      attack=0
      decay=600
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=audio\dw8\max_int.wav
      min=1100
      max=6000
      attack=200
      decay=4000
      natural=4900
    }
  }
  wind
  {
    volume=4
    pitch_scale=1.75
    pitch_offset=0
    smp0
    {
      sample=audio/wind1.wav
      min=35
      max=36
      attack=30
      decay=33
      natural=80
    }
    smp1
    {
      sample=audio/wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=audio/wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}
damage
{
  chassis
  {
    damage=0.0
    fade=0.0000
    speed_factor=0.00005
    force_factor=0.0000002
    damage_factor=0.0
    damage_engine_factor=0.5
    damage_engine_from=0.99
    damage_engine_to=0.0
    damage_engine_time=5000
    texture_damage
    {
      enable=0
      ; ray_lod=0
      ; dent_factor=1.0
      ; dent_linearity=1.8
      ; radius_factor=15.0
      ; radius_min=1
      ; uv_randomness=0.2f;
    }
  }
}
graphics
{
  shadow
  {
    intensity=
    model
    {
      ;file=coupe.dof
      ;use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=ant.dof
    }
    model1
    {
      file=int_tole.dof
    }
    model2
    {
      file=panneaux.dof
    }
    model3
    {
      file=tbd.dof
    }
    model4
    {
      file=sieges.dof
    }
    model5
    {
      file=cloison.dof
    }
    model6
    {
      file=citroen.dof
    }
    model7
    {
      file=bg_citroen.dof
    }
    model8
    {
      file=portes_citroen.dof
    }
    model9
    {
      file=portes.dof
    }
    model10
    {
      file=2pt.dof
    }
    model11
    {
      file=driver.dof
    }
    model12
    {
      ; file=cloison.dof
    }
    model13
    {
      file=cl_g.dof
    }
    model14
    {
      file=cl_d.dof
    }
    model15
    {
      file=warnings.dof
    }
    model16
    {
      file=sans_ab.dof
    }
  }
}
lights
{
  light0
  {
    texture=textures/lights.tga
    fov=55
    aspect=5
    z=2
    pitch=0
    far=120
    ;color=1.8 1.8 1.72
  }
}
rear_flare
{
  color=32 1.6 1.6
  normal=0 -0.10 -1
  z_offset=-3000
  size_factor=0.25
  billboard=1
}
rear_flare_brake
{
  color=32 4.8 1.6
  normal=0 -0.10 -1
  z_offset=-3000
  size_factor=0.50
  billboard=1
  rule=brake
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.600 -0.123 1.71
    color=44 44 40
    normal=0 0 1
    z_offset=-3000
    size_factor=0.4
  }
  flare1
  {
    pos=0.600 -0.123 1.71
    color=44 44 40
    normal=0 0 1
    z_offset=-3000
    size_factor=0.4
  }
  flare2~rear_flare_brake
  {
    pos=-0.754 -0.24 -1.915
  }
  flare3~rear_flare_brake
  {
    pos=0.754 -0.24 -1.915
  }
  flare4~rear_flare
  {
    pos=-0.754 -0.24 -1.915
  }
  flare5~rear_flare
  {
    pos=0.754 -0.24 -1.915
  }
}
particles
{
  backfire
  {
    exhaust0
    {
      pos=0.5634 -0.4373 -2.30
      normal=0 0 0
    }
    exhaust1
    {
      pos=-0.5634 -0.4373 -2.30
      normal=0 0 0
    }
    type=backfire
    min_rpm=15000
    max_rpm=19000
    ;likeliness_percentage=50
  }
}
animation
{
  flash_lights=0
}
