;
; Lambo
; See 'credits' below
; Reverse lights by DavidIau
;
car
{
  name=Lamborghini Murcielago
  year=2004
  id=lambomurcielagov1
  credits=Model/Textures: Deyan,Ini/Sounds/Shaders/Import: Mr Whippy,Gauges: Blo0m,Testing: LB and Made
  comments=580Hp, 0-60mph in 3.6seconds, AWD, 1650 kg, 205mph top speed. 
  version=090
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=3.3
    length=5.54
    offset_z=0.32
  }
  cg
  {
    x=0
    y=0	;0.41m CofG, 0.15m ride height
    z=0.05
  }
  ff_factor=2.0
  ; Factors influencing the controller setup screen's settings for steering wheel characteristics
  ff_friction=1.0
  ff_stickfriction=1.0
  ff_damping=1.0
  ff_inertia=1.0
  ; Overall gain on all above ff_* factors
  ff_gain=1.0
}
graphics
{
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=0
    }
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
    ; Color (multiplied with texture)
    color=40 40 40
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.64 0.15 2.2
    color=40 40 40
    ;normal=0 0 1
    normal=-0.05 -0.1 0.6
    z_offset=-3000
    size_factor=2
  }
  flare1
  {
    pos=0.64 0.15 2.2
    color=40 40 40
    normal=0.05 -0.1 0.6
    z_offset=-3000
    size_factor=2
  }
  ; Rear lights
  flare2
  {
    pos=-0.75 0.33 -1.75
    normal=-0.05 0 -0.5
    color=40 10 10
    size_factor=0.5
    z_offset=-1000
  }
  flare3
  {
    pos=0.75 0.33 -1.75
    normal=0.05 0 -0.5
    color=40 10 10
    size_factor=0.5
    z_offset=-1000
  }
  ; Brake lights
  flare4
  {
    rule=brake
    pos=-0.75 0.33 -1.75
    normal=0.05 0 -0.5
    color=40 10 10
    size_factor=0.8
    z_offset=-1000
  }
  flare5
  {
    rule=brake
    pos=0.75 0.33 -1.75
    normal=-0.05 0 -0.5
    color=40 10 10
    size_factor=0.8
    z_offset=-1000
  }
}
ai
{
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.2
  ;max_velocity=100
}
body
{
  mass=1760
  inertia
  {
    x=2310
    y=2810
    z=590
  }
  width=2.24
  height=0.7
  length=4.55
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=body.dof
    offset
    {
      ;y=0.5
    }
  }
  model_collide
  {
    ; 3D collision model (Newton only)
    file=collision.dof
  }
  model_incar
  {
    ;file=interior.dof
  }
  model_braking_l
  {
    file=brakelight.dof
  }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=reverse_light.dof
  }
  model_reverse_r
  {
    ;file=brakelight.dof
  }
  width=1.943
  height=0.8
  length=4.323
  manual_box=1
}
steer
{
  x=0.396
  y=0.074
  z=0.26
  radius=10
  xa=17.5
  lock=900
  ;lock=1260
  model
  {
    ;file=strwhl.dof
  }
  ; 3.5 turns lock to lock (1.75*(1/(real wheel lock/pc wheel lock))
  ; Put your controller lock in the control file (data/controls/default.ini?)
  linearity=1.0
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=0
  max_rpm=8000
  idle_rpm=1100
  ; Use idle throttle only at low rpm
  idle_method=1
  ; For idle_method=1, you can still supply an amount of throttle that is applied
  ; even when letting go of the pedal. Some fuel is then still applied while coasting
  ; full with a fully depressed pedal.
  ; Non-zero for carburator engines, 0 for diesels
  idle_throttle=0.05
  curve_torque=torque.crv
  ; can split 90% rear 10% front to 70% rear 30% front... set halfway at 80% rear 20% front
  max_torque=468
  ; Clutch automatically?
  autoclutch=1
  ; At which rpm? (0=automatically)
  autoclutch_rpm=0
  ;autoclutch_rpm=1250
  ; Go for high-torque rpm in 1st gear? (autoclutch_rpm must be 0)
  launch_control=0
  starter=1
  starter_torque=90
  start_stalled=0
  stall_rpm=400
  start_rpm=1250
  ; Reaction of engine torque through body roll (0..1)
  torque_reaction=1.0
  shifting
  {
    automatic=0
    shift_up_rpm=7000
    shift_down_rpm=3000
    time_to_declutch=325
    time_to_clutch=25
    ; Blip throttle when downshifting?
    blip_throttle=0.5
    ; Cut throttle when upshifting?
    cut_throttle=1
  }
  inertia
  {
    engine=0.35
    final_drive=0.1
  }
  ; Engine braking torque
  ;braking_coeff=3.3
  braking_torque_curve=engine_braking.crv
  rolling_friction_coeff=0
  friction=0
  sample=6000.wav
  sample_rpm=6000
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-2.529
    inertia=0.1
    engine_map=0.5
  }
  gear1
  {
    ratio=2.941
    inertia=0.06
    engine_map=1
  }
  gear2
  {
    ratio=2.056
    inertia=0.05
    engine_map=1.1
  }
  gear3
  {
    ratio=1.520
    inertia=0.04
    engine_map=1.2
  }
  gear4
  {
    ratio=1.179
    inertia=0.03
    engine_map=1.3
  }
  gear5
  {
    ratio=1.030
    inertia=0.02
    engine_map=1.4
  }
  gear6
  {
    ratio=0.914
    inertia=0.01
    engine_map=1.5
  }
}
clutch
{
  max_torque=650
}
handbrakes
{
  wheels=23
}
differential
{
  type=3
  preload=0
  power_ratio=3.0
  coast_ratio=2.0
  ratio=2.53
  output0=2
  output1=3
}
differential_OLD_VISCOUS
{
  type=1
  ratio=2.53
  inertia=0.15
  locking_coeff=275
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.33
    area=1.9	;1.85 for car, 0.05 for front wheel cross section...
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=0.3	;1kg downforce @ 200km/h
    center=0 -0.2 0
    angle=0
    angle_offset=10
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=1
    susp_right=0
    k=43200
  }
  arb1
  {
    susp_left=3
    susp_right=2
    k=19600
  }
}
susp_front
{
  y=0
  z=1.599
  restlen=0.142	;0.1m RL, 3625N load
  minlen=0.005
  maxlen=0.16
  bumpstop_len=0.04
  bumpstop_k=70000
  k=86150
  damper_curve=damper_front.crv
  bump_rate=6780	;static optimum damping 11286*0.6
  rebound_rate=10160	;static optimum damping 11286*0.9
  anti_dive=0.1
  anti_lift=0
  roll_center
  {
    x=0
    y=-0.375	;30mm RC, 305mm(wheel radius) + 100mm(rest length) = 405mm, 405mm - 30mm RC = *375mm*
    z=0
  }
}
susp_rear
{
  y=0
  z=-1.066
  restlen=0.146	;0.09m RL, 5005N load
  minlen=0.005
  maxlen=0.16
  bumpstop_len=0.04
  bumpstop_k=70000
  k=89375
  damper_curve=damper_rear.crv
  bump_rate=6750	;static optimum damping 13508*0.5
  rebound_rate=10800	;static optimum damping 13508*0.8
  anti_rise=0.15
  anti_squat=0.25
  roll_center
  {
    x=0
    y=-0.365	;50mm RC, 325mm(wheel radius) + 90mm(rest length) = 415mm, 415mm - 50mm RC = *365mm*
    z=0
  }
}

; Wheelbase 2665mm
; Front track 1635mm
; Rear track 1695mm
; Ground clearance 135mm
; Weight distribution 42% front, 58% rear

susp0~susp_front
  {
    x=0.8175
  }
susp1~susp_front
  {
    x=-0.8175
  }
susp2~susp_rear
  {
    x=0.8475
  }
susp3~susp_rear
  {
    x=-0.8475
  }
tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0
}
tire_model_rear
{
  damping_predict_lat=0
  damping_predict_long=0
}
pacejka
{
    a0=1.5
    a1=-40
    a2=1600
    a3=2600
    a4=8.7
    a5=0.014
    a6=-0.24
    a7=1.0
    a8=-0.03
    a9=-0.0013
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.5
    b1=-80
    b2=1950
    b3=23.3
    b4=390
    b5=0.05
    b6=0
    b7=0.055
    b8=-0.024
    b9=0.014
    b10=0.26
    c0=2.2
    c1=-3.9
    c2=-3.9
    c3=-1.26
    c4=-8.2
    c5=0.025
    c6=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.1
    optimal_slipangle=0.15
}
wheel_all
{
  ; Tire damping coefficient
  tire_damping=500
  ; Tire damping at low speed increases
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  ; Brakedisc temperature
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
}
wheel_front~wheel_all
{
  y=0
  z=0
  steering=1
  lock=48
  mass=30
  inertia=1.3
  radius=0.305
  rolling_coeff=0.01
  friction_road=1
  max_braking=2150
  braking_factor=1
  tire_rate=175000
  powered=1
  power_gearing=0.31	;20% front drive torque
  pacejka~pacejka
  {  
  }
;245/35ZR18
}
wheel_rear~wheel_all
{
  y=0
  z=0
  steering=0
  mass=30
  inertia=1.3
  radius=0.325
  rolling_coeff=0.011
  friction_road=1
  max_braking=850
  braking_factor=1
  tire_rate=175000
  max_handbrake_torque=850
  pacejka~pacejka
  {
  a0=1.4
  a1=-55
  a2=1800
  b0=1.5
  b1=-110
  b2=1700
  b4=370
  b5=0.1
  c1=-4.1
  c3=-1.36
  c4=-8.1
  optimal_slipratio=0.1
  optimal_slipangle=0.18
  }
;335/30ZR18
}
wheel0~wheel_front
{
  x=0
  toe=-0
  camber=-1
  ackerman=1.2
  model
  {
    file=fl.dof
    offset
    {
      x=-0.014
    }
  }
  model_brake
  {
    file=flb.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0
  camber=-1
  ackerman=1.2
  model
  {
    file=fr.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=frb.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.5
  camber=-1
  model
  {
    file=rl.dof
  }
  model_brake
  {
    file=rlb.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.5
  camber=-1
  model
  {
    file=rr.dof
  }
  model_brake
  {
    file=rrb.dof
  }
}
camera0
{
  offset
  {
    x=0
    y=-0.6
    z=-5.5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
  name=Chase Far
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera1
{
  offset
  {
    x=0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverLeft
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera2
{
  offset
  {
    x=-0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverRight
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.6
    z=1.4
  }
  angle
  {
    x=4
    y=180
    z=0
  }
  name=Inside Right Driver
  fov=70
}
camera4
{
  offset
  {
    x=-0.4
    y=0.45
    z=-7.5
  }
  angle
  {
    x=16
    y=130
    z=0.25
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.48
    y=0.50
    z=-3.9
  }
  angle
  {
    x=15
    y=-50
    z=2.5
  }
  name=Wheels
  fov=65
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.25
    y=0.75
    z=-4.8
  }
  angle
  {
    x=23
    y=-360
    z=20
  }
  fov=60
}
camera7
{
  offset
  {
    x=1.8
    y=0
    z=-0.4
    ;z=-0.6
  }
  angle
  {
    x=-2
    y=-140
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=60
}
camera8
{
  offset
  {
    x=0
    y=0
    z=-5
  }
  angle
  {
    x=2
    y=-130
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=65
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=-0.0
    z=-0.48
  }
  angle
  {
    x=3.055556
    y=9.305529
    z=7.552083
  }
  name=High
  fov=65
}

audio
{
  skid
  {
    ; Old style
    ;sample=skid.wav
    ;sample2=skid_lon.wav
    ; New style (multiple samples mixed)
    ; Master volume for this set
    volume=1
    ; Acceleration; outside of the car
    smp0
    {
      volume=1.0
      sample=skid.wav
      min=0.1
      max=0.6
      attack=0.09
      decay=1.0
    }
    smp1
    {
      volume=1.0
      sample=skid_lon.wav
      min=0.3
      max=20
      attack=0.2
      decay=0
    }
  }
  acc_all
  {
    attack=1300
    decay=1300
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=1
      max=1001
      natural=2000
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=3000.wav
      min=2000
      max=2001
      natural=3000
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=3600.wav
      min=3000
      max=3001
      natural=3600
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=5000.wav
      min=4000
      max=4001
      natural=5000
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=6000.wav
      min=5000
      max=5001
      natural=6000
      volume=1.1
    }
    smp5~audio.acc_all
    {
      sample=7000.wav
      min=6000
      max=6001
      natural=7000
      volume=1.2
    }
    smp6~audio.acc_all
    {
      sample=8000.wav
      min=7000
      max=9000
      natural=8000
      volume=1.3
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=1
      max=1001
      natural=2000
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=3000.wav
      min=2000
      max=2001
      natural=3000
      volume=1.2
    }
    smp2~audio.acc_all
    {
      sample=3600.wav
      min=3000
      max=3001
      natural=3600
      volume=1.2
    }
    smp3~audio.acc_all
    {
      sample=5000.wav
      min=4000
      max=4001
      natural=5000
      volume=1.2
    }
    smp4~audio.acc_all
    {
      sample=6000.wav
      min=5000
      max=5001
      natural=6000
      volume=1.3
    }
    smp5~audio.acc_all
    {
      sample=7000.wav
      min=6000
      max=6001
      natural=7000
      volume=1.4
    }
    smp6~audio.acc_all
    {
      sample=8000.wav
      min=7000
      max=9000
      natural=8000
      volume=1.5
    }
  }
  wind
  {
    volume=15
    pitch_scale=3
    pitch_offset=0
    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
    }
  }
}
traction_control
{
  max_velocity_ratio=1.2
  min_velocity_ratio=1.01
  enable=0
}
abs
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1
  enable=1
}
