car
{
  name=Lamborghini Murcielago
  id=lamborghini_murcielago_v2
  comments=580Hp, 0-60mph in 3.4 seconds, AWD, 1650 kg, 205mph top speed.
  credits=Model/Textures: Deyan, Ini/Sounds/Shaders/Import/Updates: Mr Whippy, Gauges: Blo0m, Testing: Cosmo
  version=090
  wheels=4
  year=2001
  shadow
  {
    texture=shadow.tga
    length=5.540
    width=3.300
    offset_z=0.32
    intensity_dark=0.75
    intensity_light=0.25
  }
  cg
  {
    x=0
    y=0
    ; 42% front / 58% rear
    ;424mm high
    z=0
  }
  ff_factor=0.65
  ff_gain=0.65
  ff_damping=0
  ff_friction=1
  ff_inertia=1
  ff_stickfriction=1
}
ai
{
  grip_factor=1.1
  max_velocity=
  oversteer_correct=10
  understeer_correct=10
}
abs
{
  enable=1
  braking_factor=1.2
  max_velocity_ratio=1.34
  min_velocity_ratio=1.17
  min_velocity=1
}
traction_control
{
  enable=0
  max_velocity_ratio=1.0500000
  min_velocity_ratio=1.0499999
  min_velocity=5
}
body
{
  ;
  ;	!!! does not yet include driver mass !!!
  ;
  ; 1816kg kerb mass incl. fuel
  ; +75kg driver
  ; -200kg unsprung mass
  ;
  mass=1691
  ; estimated using IH8COPS' inertia calculator
  inertia
  {
    x=2000
    y=2150
    z=430
  }
  model
  {
    file=body.dof
    offset
    {
      x=0
      y=0
      z=0
    }
  }
  model_braking_l
  {
    file=brakelight.dof
  }
  model_collide
  {
    file=
  }
  model_light_l
  {
    file=lights_front.dof
  }
  model_light_r
  {
    file=lights_rear.dof
  }
  ;
  ;	!!! collision box dimensions off? better to use mesh !!!
  ;
  length=4.323
  width=1.943
  height=0.4
  manual_box=1
  box_offset=0.000 0.000 0.000
}
steer
{
  x=0
  y=0
  z=0
  radius=0
  xa=0
  ; 3.5 turns lock-to-lock
  lock=1260
  linearity=0.714
  model
  {
    file=
  }
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=0
  idle_method=1
  idle_throttle=0
  idle_rpm=900
  min_warn_rpm=7250
  max_warn_rpm=7750
  max_rpm=7800
  rev_limiter_time=75
  start_rpm=2200
  stall_rpm=500
  autoclutch=1
  autoclutch_rpm=2200
  launch_control=1
  starter=1
  starter_torque=200
  start_stalled=0
  enable_stall=1
  curve_torque=torque_580.crv
  ; front 15% / rear 85% torque split
  max_torque=0.85
  torque_reaction=0.5
  braking_coeff=
  braking_offset=0
  braking_torque_curve=braking.crv
  friction=0
  cylinders=12
  cylinder_angle=60
  rumble_amplitude=0
  rumble_maxrpm=8100
  inertia
  {
    engine=0.28
  }
  jitter
  {
    amplitude=0.4
    frequency_min=6
    frequency_var=5
    time_min=250
    time_var=750
  }
  shift_egear
  {
    automatic=0
    blip_throttle=0.6
    cut_throttle=1
    fast=1
    shift_up_rpm=7700
    shift_down_rpm=3500
    time_to_declutch=75
    time_in_neutral=0
    time_to_clutch=175
    time_to_declutch_down=75
    time_in_neutral_down=0
    time_to_clutch_down=175
  }
  shift_manual
  {
    automatic=0
    blip_throttle=0
    cut_throttle=0
    fast=0
    shift_up_rpm=7700
    shift_down_rpm=3500
    time_to_declutch=125
    time_in_neutral=0
    time_to_clutch=225
    time_to_declutch_down=125
    time_in_neutral_down=0
    time_to_clutch_down=225
  }
  shift_free
  {
    automatic=0
    blip_throttle=0
    cut_throttle=0
    fast=0
    shift_up_rpm=7700
    shift_down_rpm=3500
    time_to_declutch=0
    time_in_neutral=0
    time_to_clutch=0
    time_to_declutch_down=0
    time_in_neutral_down=0
    time_to_clutch_down=0
  }
  shifting~engine.shift_free
  {
  }
  speedlimiter
  {
    velocity=20
    time=25
  }
}
fuel
{
  bsfc=7.5e-5
  max=100
  type=0
}
clutch
{
  max_torque=825
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-2.592
    inertia=0.12
    engine_map=1.00
  }
  gear1
  {
    ratio=2.941
    inertia=0.12
    engine_map=1.2
  }
  gear2
  {
    ratio=2.056
    inertia=0.1
    engine_map=1.4
  }
  gear3
  {
    ratio=1.520
    inertia=0.08
    engine_map=1.6
  }
  gear4
  {
    ratio=1.179
    inertia=0.06
    engine_map=1.8
  }
  gear5
  {
    ratio=1.030
    inertia=0.04
    engine_map=2.00
  }
  gear6
  {
    ratio=0.914
    inertia=0.02
    engine_map=2.20
  }
}
differentials
{
  count=1
  diff0
  {
    ;LSD type with 45% rear, 25% front
    ;1=viscous, 2=salibury, 3=lsd
    type=3
    ratio=3.124
    inertia=0.05
    output0=2
    output1=3
    friction=210
    ;//Viscous
    ;locking_coeff=150
    ;//Salisbury
    ;power_angle=45
    ;coast_angle=70
    ;clutches=1
    ;clutch_factor=1
    ;preload=35
    ;//LSD
    preload=35
    power_ratio=2.64
    coast_ratio=1.32
  }
}
handbrakes
{
  wheels=23
}
aero
{
  body
  {
    center=0.000 0.000 0.000
    cx=0.33
    area=1.970
  }
  draft
  {
    scale_lat_rear=0.4
    scale_lon_rear=1
    scale_lat_front=0.08
    scale_lon_front=0.2
  }
  wings=2
  wing0
  {
    ; 34kg @ 200km/h
    name=front_axle
    span=1.0
    cord=1.0
    coeff_drag=0
    coeff_down=10.107
    center=0.000 0.000 1.599
    angle=0
    angle_offset=1
  }
  wing1
  {
    ; 1kg @ 200km/h
    name=rear_axle
    span=1.0
    cord=1.0
    coeff_drag=0
    coeff_down=0.297
    center=0.000 0.000 -1.066
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=58000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=33000
  }
}
susp_front
{
  y=0.000
  z=1.599
  restlen=0.219
  minlen=0.020
  maxlen=0.180
  warplen=0.118
  k=31500
  damper_curve=damper_front.crv
  bumpstop_len=0.070
  bumpstop_k=125000
  bumpstop_damping=5000
  reboundstop_len=0.010
  reboundstop_k=100000
  reboundstop_damping=5000
  anti_pitch=0.15
  roll_center
  {
    x=0
    ; ~0.040m
    y=-0.388
    z=0
  }
}
susp0~susp_front
{
  x=0.8175
  camber_change_per_m=0.075
  camber_change_steering=0.092
  ; -5.780°
  caster_angle=0.101
  caster_offset=-0.035
  ; -5.000°?
  kingpin_angle=-0.087
  kingpin_offset=0.010
  toe_change_per_m=0.000
  model
  {
    file=
  }
}
susp1~susp_front
{
  x=-0.8175
  camber_change_per_m=0.075
  camber_change_steering=-0.092
  ; -5.780°
  caster_angle=0.101
  caster_offset=-0.035
  ; -5.000°
  kingpin_angle=-0.087
  kingpin_offset=-0.010
  toe_change_per_m=0.000
  model
  {
    file=
  }
}
susp_rear
{
  y=0.000
  z=-1.066
  restlen=0.204
  minlen=0.010
  maxlen=0.180
  warplen=0.129
  k=63000
  damper_curve=damper_rear.crv
  bumpstop_len=0.070
  bumpstop_k=75000
  bumpstop_damping=5000
  reboundstop_len=0.010
  reboundstop_k=100000
  reboundstop_damping=5000
  anti_pitch=0.15
  roll_center
  {
    x=0
    ; ~0.080m
    y=-0.374
    z=0
  }
}
susp2~susp_rear
{
  x=0.8475
  camber_change_per_m=0.150
  camber_change_steering=0
  caster_angle=0
  caster_offset=0
  kingpin_angle=0
  kingpin_offset=0
  toe_change_per_m=-0.25
  model
  {
    file=
  }
}
susp3~susp_rear
{
  x=-0.8475
  camber_change_per_m=0.150
  camber_change_steering=0
  caster_angle=0
  caster_offset=0
  kingpin_angle=0
  kingpin_offset=0
  toe_change_per_m=0.25
  model
  {
    file=
  }
}
;tire_model
;{
;	damping_predict_lat=0
;	damping_predict_long=0
;	relaxation_length_lat=1.0
;	relaxation_length_long=0.1
;}
pacejka
{
  a0=1.28
  a1=-28
  a2=1275
  a3=1900
  a4=8
  a5=0.015
  a6=-0.25
  a7=0.1
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=0
  a112=-0.29
  a12=17.8
  a13=-2.4
  b0=1.36
  b1=-40
  b2=1275
  b3=40
  b4=240
  b5=0.08
  b6=-0.05
  b7=0.05
  b8=-0.025
  b9=0.015
  b10=0.4
  b11=-50
  b12=0
  c0=2.315
  c1=-4
  c2=-3
  c3=-1.6
  c4=-6
  c5=0
  c6=0
  c7=0.02
  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
  ; 3650N tyre load
  optimal_slipratio=0.10
  ; 8.0 + 0.7deg for optimum Mz ~ 8.7deg
  optimal_slipangle=0.14
  ; Tuning of combined slip - influence of slip ratio on Fy
  lyka=0.5
  ; Influence of slip angle on Fx
  lxal=1.0
}
; 245/35R18
wheel_front
{
  y=0
  z=0
  steering=1
  reverse_steering=0
  lock=70
  ackerman=1.16
  powered=1
  power_gearing=0.276
  mass=50
  inertia=2.0
  radius=0.31435
  width=0.245
  rolling_coeff=0.010
  max_braking=2100
  max_handbrake_torque=0
  braking_factor=0.8
  inboard_brakes=0
  brake_dissipation=0.00007
  brake_heating=0.00002
  brake_max_temp=750
  tire_rate=275000
  tire_damping=300
  tire_damping_lowspeed=2500
  tire_damping_threshold=5
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=-1.2
  toe=-0.2
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=flb.dof
  }
}
wheel1~wheel_front
{
  x=0
  camber=-1.2
  toe=0.2
  model
  {
    file=fr.dof
  }
  model_brake
  {
    file=frb.dof
  }
}
; 335/30ZR18
wheel_rear
{
  y=0
  z=0
  steering=0
  reverse_steering=0
  lock=0
  ackerman=0
  mass=50
  inertia=2.5
  radius=0.3291
  width=0.335
  rolling_coeff=0.010
  max_braking=1620
  max_handbrake_torque=5000
  braking_factor=0.2
  inboard_brakes=0
  brake_dissipation=0.00007
  brake_heating=0.00002
  brake_max_temp=750
  tire_rate=275000
  tire_damping=300
  tire_damping_lowspeed=2500
  tire_damping_threshold=5
  pacejka~pacejka
  {
    a0=1.28
    a1=-45
    a2=1510
    a3=2750
    a4=8
    b0=1.52
    b1=-53
    b2=1510
    b4=165
    c0=2.365
    c3=-2
    c4=-6
    ; 5250N tyre load
    optimal_slipratio=0.10
    ; 6.34 + 0.7deg for optimum Mz ~ 7.0deg
    optimal_slipangle=0.11
  }
}
wheel2~wheel_rear
{
  x=0
  camber=-1.6
  toe=0.95
  model
  {
    file=rl.dof
  }
  model_brake
  {
    file=rlb.dof
  }
}
wheel3~wheel_rear
{
  x=0
  camber=-1.6
  toe=-0.95
  model
  {
    file=rr.dof
  }
  model_brake
  {
    file=rrb.dof
  }
}
animation
{
  flash_lights=0
}
flares
{
  ; front lights
  flare0
  {
    color=50 50 60
    hor_scale=1
    intensity=1
    normal=0.000 0.000 1.000
    pos=-0.700 0.140 2.080
    rule=
    size_factor=0.5
    z_offset=-5000
  }
  flare1
  {
    color=50 50 60
    hor_scale=1
    intensity=1
    normal=0.000 0.000 1.000
    pos=0.700 0.140 2.080
    rule=
    size_factor=0.5
    z_offset=-5000
  }
  ; rear lights
  flare2
  {
    color=20 4 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=-0.750 0.330 -1.750
    rule=
    size_factor=0.3
    z_offset=-1000
  }
  flare3
  {
    color=20 4 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=0.750 0.330 -1.750
    rule=
    size_factor=0.3
    z_offset=-1000
  }
  ; brake lights
  flare4
  {
    color=20 4 4
    hor_scale=1
    intensity=0.5
    normal=0.000 0.000 -1.000
    pos=0.000 0.630 -0.350
    rule=brake
    size_factor=0.3
    z_offset=-1000
  }
  flare5
  {
    color=20 4 4
    hor_scale=1
    intensity=0.5
    normal=0.000 0.000 -1.000
    pos=-0.750 0.330 -1.750
    rule=brake
    size_factor=0.3
    z_offset=-1000
  }
  flare6
  {
    color=20 4 4
    hor_scale=1
    intensity=0.5
    normal=0.000 0.000 -1.000
    pos=0.750 0.330 -1.750
    rule=brake
    size_factor=0.3
    z_offset=-1000
  }
}
particles
{
  backfire
  {
    exhaust0
    {
      pos=0.073 -0.013 -1.940
      normal=0.000 0.400 -1.000
    }
    exhaust1
    {
      pos=-0.073 -0.013 -1.940
      normal=0.000 0.400 -1.000
    }
    type=backfire
    min_rpm=4500
    max_rpm=7800
    likeliness_percentage=15
  }
}
lights
{
  light0
  {
    aspect=5
    color=10.00 10.00 12.00
    far=150
    fov=20
    texture=light.tga
    pitch=0
    z=1.0
  }
}
wipers
{
  count=0
}
;graphics
;{
;	shadow
;	{
;		intensity=1
;		model
;		{
;			file=
;			use_shaders=0
;		}
;	}
;}
camera0
{
  ; Head physics
  fov=65
  model=0
  name=bonnet
  wheels=0
  offset
  {
    x=0
    y=0.6
    z=1.2
  }
  angle
  {
    x=0
    y=0
    z=0
  }
  head_physics
  {
    ; Springs (given a head of ~6kg)
    lateral
    {
      k=8500
      damp=350
      min=-10
      max=10
    }
    vertical
    {
      k=1000
      damp=225
      min=-10
      max=10
    }
    longitudinal
    {
      k=1700
      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
    }
  }
}
Xcamera0
{
  ; From Racer v0.8.18
  fov=65
  model=0
  name=bonnet
  wheels=0
  offset
  {
    x=0
    y=-0.8
    ;y=-0.6
    z=1
  }
  angle
  {
    x=10
    y=180
    z=0
  }
  name=Chase Far
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
Xcamera0
{
  fov=65
  model=0
  name=bonnet
  wheels=0
  angle
  {
    ;x=0
    x=5
    y=180
    ;y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=0
    z=0
    ;y=-1.2
    ;z=2.2
    ;y=-0.65
    ;z=1.39
  }
  offset_to
  {
    x=0
    y=0
    z=-1
  }
}
camera1
{
  fov=70
  model=2
  name=bumper
  wheels=0
  angle
  {
    x=0
    y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=-0.3
    z=2.3
  }
}
camera2
{
  fov=70
  model=0
  name=roof
  wheels=0
  angle
  {
    x=5
    y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=-1.5
    y=-0.9
    z=0.5
  }
}
camera3
{
  fov=50
  model=0
  name=chase_fixed
  wheels=1
  angle
  {
    x=5.5
    y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=-0.95
    z=-6.92
  }
}
camera4
{
  fov=50
  model=0
  name=chase
  wheels=1
  angle
  {
    x=0
    y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=1.6
    z=-6.8
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  src
  {
    mass=5
    k=320
    damping=80
    maxdist=2.5
  }
  dst
  {
    mass=1
    k=400
    damping=40
    maxdist=1.5
  }
}
camera5
{
  fov=60
  model=0
  name=front_wheel
  wheels=1
  angle
  {
    x=0
    y=200
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=1.4
    y=-0.5
    z=-2.7
    ;y=-0.1
    ;z=-0.6
  }
}
camera6
{
  fov=60
  model=0
  name=rear_wheel
  wheels=1
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=1.4
    y=-0.8
    z=-3.5
    ;x=1.4
    ;y=-0.2
    ;z=-0.5
  }
}
camera7
{
  fov=30
  model=0
  name=front
  wheels=1
  angle
  {
    x=0.1
    y=0
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=-0.35
    z=-8
  }
}
camera8
{
  fov=30
  model=0
  name=side
  wheels=1
  angle
  {
    x=13.5
    y=270
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0.3
    y=0
    z=-12
  }
}
camera9
{
  fov=20
  model=0
  name=free
  wheels=1
  angle
  {
    x=25
    y=20
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=0
  }
  offset
  {
    x=0
    y=0.2
    z=-15
  }
}
audio
{
  horn
  {
    sample=horn.wav
  }
  skid
  {
    volume=1
    smp0
    {
      volume=0.3
      sample=skid_01.wav
      min=0.3
      max=0.3
      attack=0.2
      decay=0.4
    }
    smp1
    {
      volume=0.6
      sample=skid_02.wav
      min=0.6
      max=20
      attack=0.4
      decay=0
    }
  }
  acc_all
  {
    attack=2600
    decay=2600
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=1000
      max=1000
      natural=1000
      volume=0.6
      decay=650
    }
    smp1~audio.acc_all
    {
      sample=onlow.wav
      min=1000
      max=3000
      natural=3000
      volume=0.7
    }
    smp2~audio.acc_all
    {
      sample=onmid.wav
      min=5000
      max=5000
      natural=5000
      volume=0.8
    }
    smp3~audio.acc_all
    {
      sample=onhigh.wav
      min=7000
      max=9000
      natural=7000
      volume=0.9
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=1000
      max=1000
      natural=1000
      volume=0.4
      decay=650
    }
    smp1~audio.acc_all
    {
      sample=offlow.wav
      min=1000
      max=3000
      natural=3000
      volume=0.25
    }
    smp2~audio.acc_all
    {
      sample=offmid.wav
      min=5000
      max=5000
      natural=5000
      volume=0.3
    }
    smp3~audio.acc_all
    {
      sample=offhigh.wav
      min=7000
      max=9000
      natural=7000
      volume=0.35
    }
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=1000
      max=1000
      natural=1000
      volume=0.6
      decay=650
    }
    smp1~audio.acc_all
    {
      sample=onlow.wav
      min=1000
      max=2000
      natural=3000
      volume=0.7
    }
    smp2~audio.acc_all
    {
      sample=onmid.wav
      min=4000
      max=6000
      natural=5000
      volume=0.8
      decay=650
    }
    smp3~audio.acc_all
    {
      sample=onhigh.wav
      min=6500
      max=9000
      natural=7000
      volume=0.9
      attack=650
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=1000
      max=1000
      natural=1000
      volume=0.4
      decay=650
    }
    smp1~audio.acc_all
    {
      sample=offlow.wav
      min=1000
      max=2000
      natural=3000
      volume=0.25
    }
    smp2~audio.acc_all
    {
      sample=offmid.wav
      min=4000
      max=5500
      natural=5000
      volume=0.3
    }
    smp3~audio.acc_all
    {
      sample=offhigh.wav
      min=7500
      max=9000
      natural=7000
      volume=0.35
    }
  }
  gearwhine
  {
    smp0
    {
      sample=gearwhine.wav
      volume=0.3
      min=1
      max=150
      decay=133
      natural=200
    }
    smp1
    {
      sample=gearwhine.wav
      volume=0.2
      min=250
      max=2000
      attack=133
      natural=400
    }
  }
  wind
  {
    pitch_scale=0
    pitch_offset=80
    smp0
    {
      sample=wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
      volume=0.5
    }
    smp1
    {
      sample=wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
      volume=1
    }
    smp2
    {
      sample=wind3.wav
      min=75
      max=150
      attack=33
      decay=33
      natural=80
      volume=2
    }
  }
}
