car
{
  name=Renault Laguna II phase 2
  year=2005
  credits=Skybh
  id=laguna2phase2
  version=090
  comments=1870cm3 dCi F9Q 759 115ch à 4250tr/min, 250Nm à 1600tr/min, boite DP0 055
  wheels=4
  ff_factor=0.8
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=textures/shadow.tga
    width=2.4
    length=5.06
    offset_z=-0.06
  }
  cg
  {
    x=0
    y=-0.22	;53,7 cm (~38%)
    z=0.365	;64,1% devant
  }
}
graphics
{
  intensity=1
  shadow
  {
    model
    {
      file=ombre.dof
      use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=interieur.dof
    }
    model1
    {
      file=dessous_.dof
    }
    model2
    {
      file=phare_hallo.dof
    }
    ;monograme logo
    model3
    {
      file=tbd_2.dof
    }
    model4
    {
      file=cdes.dof
    }
    ;Commandes vitres et retros
    model5
    {
      file=sieges.dof
    }
    ;Sièges avant
    model6
    {
      file=feux_2.dof
    }
    ;Feux arrière (phase 1 ou 2?)
    model7
    {
      file=av_2.dof
    }
    ;Face avant (phase 1 ou 2?)
    model8
    {
      file=grille_std.dof
    }
    ;Avec anti brouillard (Oui ou non?)
    model9
    {
      file=lave_ph.dof
    }
    ;Option(becquet ou barres de toit)
    model10
    {
      file=conducteur.dof
    }
    ;Conducteur (Oui ou non?)
    model11
    {
      file=sigles_b1.dof
    }
    ;Logos
    model12
    {
      file=4ve.dof
    }
    ;Nombre de vitres electriques
    model13
    {
      file=repet.dof
    }
    ;repetiteurs latereaux (Oui ou non?)
    model14
    {
      file=poignes_cc.dof
    }
    ;poignés (Oui ou non?)
    model15
    {
      file=acc.dof
    }
    ;accoudoirs avant
    model16
    {
      file=19dci.dof
    }
    ;logo moteur
    model17
    {
      file=cpt.dof
    }
    ;compteur
    model18
    {
      file=ech.dof
    }
    ;pot d'echappement
    model19
    {
      file=bvm6.dof
    }
    ;commande de boite
    model20
    {
      file=banquette.dof
    }
    model21
    {
      file=phare_xen.dof
    }
    ;(phares xenon?)
    model22
    {
      file=capteurs.dof
    }
    model23
    {
      file=colone.dof
    }
    model24
    {
      file=details.dof
    }
  }
}
lights
{
  light0
  {
    texture=textures/light.tga
    fov=55
    aspect=5
    z=2
    pitch=0
    far=120
    color=10 10 13
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.636 -0.095 2.00
    color=44 44 60
    ;normal=0 0 1
    normal=-0.05 -0.1 0.6
    z_offset=-3000
    size_factor=2
  }
  flare1
  {
    pos=0.636 -0.095 2.00
    color=44 44 60
    normal=0.05 -0.1 0.6
    z_offset=-3000
    size_factor=2
  }
  ;anti brouillard
  flare2
  {
    pos=-0.63 -0.40 2.08
    normal=-0.05 -0.1 0.6
    color=42 40 35
    size_factor=0
    z_offset=-3000
  }
  flare3
  {
    pos=0.63 -0.40 2.08
    normal=0.05 -0.1 0.6
    color=42 40 35
    size_factor=0
    z_offset=-3000
  }
  ;Feux stop
  flare4
  {
    rule=brake
    pos=-0.586 0.097 -2.14
    normal=0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  flare5
  {
    rule=brake
    pos=-0.526 0.097 -2.14
    normal=-0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  flare6
  {
    rule=brake
    pos=0.586 0.097 -2.14
    normal=0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  flare7
  {
    rule=brake
    pos=0.526 0.097 -2.14
    normal=-0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  ;feux arriere
  flare8
  {
    pos=-0.586 0.097 -2.14
    normal=0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  flare9
  {
    pos=-0.526 0.097 -2.14
    normal=-0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  flare10
  {
    pos=0.586 0.097 -2.14
    normal=0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
  flare11
  {
    pos=0.526 0.097 -2.14
    normal=-0.05 0 -0.5
    color=40 10 10
    size_factor=0.3
    z_offset=-1000
  }
}
particles
{
  backfire
  {
    exhaust0
    {
      pos=0.5921 -0.4747 -2.037
      normal=0 0 0
    }
    exhaust1
    {
      pos=0.5682 -0.4749 -2.07
      normal=0 0 0
    }
    type=backfire
    min_rpm=5000
    max_rpm=9000
    likeliness_percentage=650
  }
  smoke_exhaust
  {
    exhaust0
    {
      pos=0.5921 -0.4747 -2.037
      normal=0 0 0
    }
    exhaust1
    {
      pos=0.5682 -0.4749 -2.07
      normal=0 0 0
    }
    type=backfire
    min_rpm=5000
    max_rpm=5000
    likeliness_percentage=1
  }
}
body
{
  mass=1224 ;Masse à vide en ordre de marche : 1385kg
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.986	;1986 mm
  height=1.33	;1332 mm
  length=4.12	;4118 mm
  manual_box=0
  model
  {
    file=berline.dof
  }
  model_incar
  {
    file=berline.dof
  }
  model_braking_l
  {
    file=brakes_b.dof
  }
  model_light_l
  {
    file=lights_b.dof
  }
  model_lightroad_l
  {
    file=lum_cpt.dof
  }
  model_collide
  {
    file=ombre.dof
  }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re_b.dof
  }
  model_reverse_r
  {
    file=re_b.dof
  }
}
steer
{
  x=0.3948
  y=0.07
  z=0.5853
  xa=22
  lock=1152		;3.2 turns lock-to-lock, 10.50 m turning circle
  linearity=0.78         ;900/1152 = 0.78
  model
  {
    file=volant.dof
  }
}
engine
{
  mass=0
  idle_rpm=825   ;F9Q 750
  rev_limiter_time=2
  max_rpm=4850 ;régime maxi en charge.    
  curve_torque=courbes/couple.crv
  max_torque=1.000
  autoclutch=1
  idle_method=1
  idle_throttle=0.0
  torque_reaction=0
  rumble_amplitude=25
  rumble_maxrpm=4000
  cylinders=4
  cylinder_angle=0
  autoclutch_rpm=0
  launch_control=0
  starter=1
  starter_torque=300
  stall_rpm=580
  start_rpm=900
  start_stalled=1
  min_warn_rpm=4400
  max_warn_rpm=4700
  shifting
  {
    automatic=0
    fast=1
    shift_up_rpm=2320
    shift_down_rpm=1200
    time_to_declutch=25
    time_in_neutral=25
    time_to_clutch=20
    time_to_declutch_down=12
    time_in_neutral_down=17
    time_to_clutch_down=20
  }
  inertia
  {
    engine=0.21 ;0.638
  }
  braking_coeff=2.25
  braking_torque_curve=courbes/C_A.crv
  rolling_friction_coeff=0
  friction=0
}
jitter
{
  amplitude=0
  time_min=100
  time_var=500
  frequency_min=4
  frequency_var=9
}
speedlimiter
{
  velocity=22.22
  time=10
}
jitter
{
  amplitude=0
  time_min=100
  time_var=500
  frequency_min=4
  frequency_var=9
}
fuel
{
  type=1  ;0=essence / 1=diesel
  max=70
  bsfc=4.6e-5 ;4.06e-5
}
clutch
{
  max_torque=250
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-2.724
    inertia=0.2
  }
  gear1
  {
    ratio=2.724
    inertia=0.1
  }
  gear2
  {
    ratio=1.449
    inertia=0.08
  }
  gear3
  {
    ratio=1
    inertia=0.06
  }
  gear4
  {
    ratio=0.710
    inertia=0.04
  }
}
handbrakes
{
  wheels=23
}
differential
{
  type=0
  ratio=2.84
  inertia=0.01
  locking_coeff=0
  friction=65
  output0=0
  output1=1
}
abs
{
  enable=1
  max_velocity_ratio=1.07
  min_velocity_ratio=1.02
  min_velocity=3.61  :13km/h
}
traction_control
{
  enable=1
  max_velocity_ratio=1.04
  min_velocity_ratio=1.035
  min_velocity=3.61
}
aero
{
  body
  {
    center=0 0 0
    cx=0.29
    area=2.15	;measured from model
  }
  wings=2
  wing0
  {
    name=Front axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 1.3125
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Rear axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 -1.3125
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=9100
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=8800
  }
}
susp_front
{
  y=-0.05
  z=1.3285
  restlen=0.53
  maxlen=0.47
  minlen=0.27	;0.3
  warplen=0.409
  k=32000		
  damper_curve=courbes/suspension_damper_front.crv
  bumpstop_len=0.050
  bumpstop_k=164000
  bumpstop_damping=3700
  reboundstop_len=0.010
  reboundstop_k=50000
  reboundstop_damping=1000
  toe_change_per_steering=7
  camber_change_per_steering=0.6
  camber_change_m=-0.04
  anti_pitch=0.12
  roll_center
  {
    x=0
    y=-0.55	
    z=0
  }
}
susp_rear
{
  y=-0.0165
  z=-1.4195     ;empattement 2748mm
  restlen=0.539  ;angle de 1,0055°
  maxlen=0.480
  minlen=0.280
  warplen=0.425
  k=18500		
  damper_curve=courbes/suspension_damper_rear.crv
  bumpstop_len=0.050
  bumpstop_k=96000
  bumpstop_damping=2200
  reboundstop_len=0.010
  reboundstop_k=50000
  reboundstop_damping=1000
  anti_pitch=0.9
  camber_change_per_m=0.075
  roll_center
  {
    x=0
    y=-0.585
    z=0
  }
}
susp0~susp_front
{
  x=0.7625	;1534 mm front track
}
susp1~susp_front
{
  x=-0.7625
}
susp2~susp_rear
{
  x=0.74	;1540 mm rear track
}
susp3~susp_rear
{
  x=-0.74
}
pacejka
{
  a0=1.4	
  a1=-46	;ps (from pacejkaseries.txt, 205/55 R16)
  a2=1300
  a3=2000
  a4=11
  a5=0.015
  a6=-0.25
  a7=1.0
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=0	;ps
  a112=-0.29
  a12=17.8
  a13=-2.4
  b0=1.5
  b1=-92	;ps doubled
  b2=1360
  b3=23.3
  b4=325
  b5=0.08
  b6=0.0
  b7=0.05
  b8=-0.024
  b9=0.015
  b10=0.25
  b11=-86
  b12=0.0
  c0=2.3
  c1=-3.8
  c2=-3.14
  c3=-1.0
  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.04
  c15=-1.029
  c16=0.27
  c17=-1.1
  optimal_slipratio=0.12
  optimal_slipangle=0.22
}
wheel_front
{
  x=0
  y=0
  z=0
  tire_damping=500
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
  steering=1
  camber=-0.2
  ackerman=1.2
  lock=67.89
  mass=30
  inertia=1
  rolling_coeff=0.009
  width=0.205
  radius=0.31595
  max_braking=2250
  braking_factor=0.75
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
;225/45 R17
wheel_rear
{
  x=0
  y=0
  z=0
  tire_damping=500
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
  steering=0
  camber=-0.40
  mass=50
  inertia=1
  rolling_coeff=0.009
  width=0.205
  radius=0.31595
  max_braking=2250
  max_handbrake_torque=4300
  braking_factor=0.25
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
;225/45 R17
wheel0~wheel_front
{
  toe=-0.1
  model
  {
    file=rg.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  toe=0.1
  model
  {
    file=rd.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  toe=-0.1
  model
  {
    file=rg.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  toe=0.1
  model
  {
    file=rd.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  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
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  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=1
  wheels=0
  view=0
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  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=Arriere
  fov=60
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.0
    y=0.4   ;offset=0.77 (in = -0.37)
    z=-4.79   ;offset=2.29 (in = -7.08)
  }
  angle
  {
    x=20
    y=-180
    z=0
  }
}
camera5
{
  name=Coté
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.4
    z=-5.8
  }
  angle
  {
    x=10
    y=-90
    z=0
  }
}
camera6
{
  name=Avant
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=0.04
    z=-6
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
camera8
{
  name=Far
  fov=45
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.42 ;-1.14 (0.72)
    y=-0.05 ;-0.85 (0.80)
    z=-5.02 ;-0.34 (-4.68)
  }
  angle
  {
    x=8
    y=227
    z=0
  }
}
camera9
{
  name=Hood
  fov=45 ;60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.22;0.68
    y=-0.16;0.32
    z=-7.36 ;-4.68
  }
  angle
  {
    x=0 ;5
    y=32 ;-43
    z=0
  }
}
audio
{
  skid
  {
    sample=audio/skid.wav
  }
  shiftout
  {
    sample=audio/shiftout.wav
  }
  shiftin
  {
    sample=audio/shiftin.wav
  }
  accelerate_out
  {
    smp0
    {
      sample=audio/idle.wav
      volume=1.1
      min=580
      max=1200
      decay=150
      attack=00
      natural=1500
    }
    smp1
    {
      sample=audio/hi.wav
      volume=0.7
      min=1200
      attack=25
      pitch_offset=1.2
      pitch_scale=0.4
      max=6000
      natural=4000
    }
    smp2
    {
      volume=0.15
      sample=audio/inject.wav
      min=1100
      max=4400
      natural=8500
      attack=5
      decay=400
    }
    smp3
    {
      sample=audio/4000.wav
      volume=0.45
      min=3600
      attack=600
      pitch_offset=1.2
      pitch_scale=0.4
      max=5900
      natural=4000
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=audio/mid.wav
      volume=1.1
      min=580
      max=2000
      decay=100
      natural=2575
    }
    smp1
    {
      sample=audio/hi4000.wav
      volume=0.4
      min=2000
      max=6000
      attack=100
      decay=5000
      natural=4000
    }
    smp2
    {
      sample=audio/4000.wav
      volume=0.45
      min=3600
      attack=600
      pitch_offset=1.2
      pitch_scale=0.4
      max=5900
      natural=4000
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=audio/lo_in.wav
      volume=0.5
      min=300
      max=2500
      decay=400
      attack=1
      natural=8000
    }
    smp1
    {
      sample=audio/hi4000.wav
      volume=0.245
      min=2500
      max=5000
      attack=400
      decay=1000
      natural=3800
    }
    smp2
    {
      volume=0.1
      sample=audio/inject.wav
      min=1100
      max=7000
      natural=8500
      attack=5
      decay=3000
    }
    smp3
    {
      sample=audio/4000_int.wav
      volume=0.245
      min=3600
      max=5000
      attack=500
      decay=1000
      natural=3800
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=audio/hi4000_int.wav
      volume=0.8
      min=300
      max=6800
      decay=500
      natural=3800
    }
    smp1
    {
      sample=audio/4000_int.wav
      volume=0.24
      min=3600
      max=5000
      attack=500
      decay=1000
      natural=3800
    }
  }
  gearwhine
  {
    smp0
    {
      sample=audio/tw-extonhigh.wav
      volume=0.05
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  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
    }
  }
}
