car
{
  name=Land Rover Range Rover Vogue SE
  id=rrlrccs1
  version=053b6
  comments=Converted with permission (2008/9)
  credits=MBW13 Conversion
  year=1990
  wheels=4
  ff_factor=0.4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=12
  }
  cg
  {
    x=0
    y=0		; cm
    z=0		;44/56 %
  }
}

body
{
  ; Weight of the car's body (kg)
  ; This excludes wheels, driver and fuel
  mass=1450
  ; Inertia values; X/Y/Z=pitch, yaw (heading), roll
  inertia
  {
    x=1730
    y=1950
    z=590
  }
  ; Collision box
  width=2.03
  height=.8
  length=4.46
  ; Define bounding box manually?
  manual_box=0
  ; Moving bounding box around
  box_offset=0 0 0
  model
  {
    file=county.dof
    offset
    {
      x=0
      y=0
      z=0
    }
  }
}
steer
{
  x=0.65 ;left to right
  y=0.875 ;height
  z=2.825 ;front to back orientation
  radius=30
  lock=20000
  linearity=0.833
  xa=70.00
  model
  {
    file=
  }
}
engine
{
  ; Position (stub gfx)
  x=0
  y=.2
  z=-1.0
  size=.25
  ; Weight of engine
  mass=10
  ; Idle rpm
  idle_rpm=900
max_rpm=5000
  ; RPM at which to start disengaging the clutch (when autoclutch is active;
  ; see racer.ini).
  ; Automatically press clutch when below autoclutch_rpm?
  autoclutch=1
  ; The (auto)clutch will be fully disengaged when the rpm hits idle_rpm, and starts being pressed at autoclutch_rpm.
  autoclutch_rpm=1500
  ; Engine RPM -> maximum torque curve (normalized 0..1 curve)
  curve_torque=torque2.crv
  ; Maximum torque (multiplier for the torque curve)
  max_torque=280
  ; Reaction of engine torque through body roll (0..1)
  torque_reaction=0.0
  ; Starter engine; present?
  starter=1
  ; Torque generated by starter engine (Nm) to get engine running
  starter_torque=25
  ; When starting the game, is the engine pre-started?
  start_stalled=0
  ; RPM at which to stall the engine
  stall_rpm=600
  ; Make sure start_rpm is larger than stall_rpm
  start_rpm=800
  shifting
  {
    ; Automatic gearbox? May in the future be overruled by the user.
    automatic=0	
    ; Fast shifting? If 0, gearbox stays in neutral while ShiftUp is pressed.
    ; If 1, the entire shift process will proceed without waiting for ShiftUp release
    fast=0
    ; RPMs at which to shift; make sure shift_down_rpm>shift_up_rpm
    shift_up_rpm=3000
    shift_down_rpm=2000
    ; Automatic shifting duration
    time_to_declutch=200
    time_to_clutch=200
    ; Time spent in neutral halfway shift
    time_in_neutral=300
    ; Shifting down separate times
    time_to_declutch_down=200
    time_in_neutral_down=500
    time_to_clutch_down=200
    ; Blip throttle when shifting down? 0=no (uses actual throttle), >0=throttle amount during downshift
    blip_throttle=0
    ; Cut throttle when up/down-shifting? (throttle is held at 0)
    cut_throttle=1
  }
  ; Inertia of engine parts
  inertia
  {
    ; Rotational inertia of engine parts (kg*m^2)
    engine=0.09
    final_drive=0.12
  }
  braking_coeff=0.34
  ; Engine friction (NYI)
  friction=0
  ; Audio - obsolete for Racer v0.5.1+ (see 'audio' tree)
  sample=engine.wav
  sample_rpm=5200
  ; RPM jitter effect when shifting
  jitter
  {
    ; RPM variance is dependent on rpm and amplitude below
    amplitude=0
    ; Time to last (ms); randomly selected so totalTime=time_min+rand(time_var)
    time_min=100
    time_var=500
    ; Frequency; randomly selected so freq=frequency_min+rand(frequency_var)
    frequency_min=4
    frequency_var=9
  }
}
traction_control
{
  enable=1
  ; Allowed front/rear wheel speed ratio (1.1=10% difference allowed)
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=0
}
abs
{
  ; Anti-lock braking system
  enable=1
  ; Allowed front/rear wheel speed ratio
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=0.1
}
gearbox
{
  ;ZFHP22 Gearbox
  gears=5
  gear0
  { ratio=-6.00
    inertia=0.9
  }
  gear1
  { ratio=2.480
    inertia=0.13
    engine_map=1.0
  }
  gear2
  { ratio=1.480
    inertia=0.09
    engine_map=1.0
  }
  gear3
  { ratio=1.000
    inertia=0.07
    engine_map=1.0
  }
  gear4
  { ratio=0.728
    inertia=0.05
    engine_map=1.0
  }
}
clutch
{
  ; Maximum friction the clutch can generate (Nm)
  max_torque=500
}
;end gear ratio adapted for Racer - as per lack of spliter ratio changer - gap too large if using correct ratios
handbrakes
{
  wheels=23
}
differentials
{
	count=1
	diff0
	{
		type=1
  		inertia=1.5
  		ratio=6.211305
  		locking_coeff=100
  		output0=2
	  	output1=3
	}
}
aero
{
  body
  {
    center=0 0 0
    cx=0.6
    area=7
  }
  wings=1
  wing0
  {
    name=lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-10
    center=0 0 0
    angle=0
    angle_offset=0
  }
}

antirollbar
{
  count=0
  ; The anti-roll bars add forces to the suspension as follows:
  ; diff=compression_left-compression_right
  ; force=diff*k
  ; So it's linearly related to the difference in suspension compression
  arb0
  {
    susp_left=0
    susp_right=1
    k=100
  }
}
; Suspension defaults

susp_default
{
  ; Relative location (to body)
  y=0.4
  z=1.3
  ; Bumpstops (length of 0.07 is normal; default is no bumpstops)
  bumpstop_len=0
  ; Bumpstop maximum rate (N/m at full compression)
  bumpstop_k=100000
  ; Spring coefficient (N/m); determines force when spring is pulled/pushed
  k=17400
  ; Damper bump function; 0=linear, 1=exp, 2=digressive, 3=sqrt
  bump_function=0
  ; Damper bump rate (F_damp=bump_rate*bump_function(wheelVerticalVelocitY))
  bump_rate=2600
  ; Damper max value (only used if bump_function=digressive)
  bump_max=3000
  ; Rebound rate (N/m/s)
  rebound_rate=2850
  ; Gfx (nyi)
  model
  {
    file=
  }
  ; Geometrical effects
  ; Bump steer; toe change in radians per meter of suspension deflection
  toe_change_per_m=0
  ; Camber change in radians per meter deflection
  camber_change_per_m=0
  ; Camber change ratio; degrees of camber / degrees of wheel rotation
  camber_change_steering=0
  ; Mechanical trail; adds to force feedback directly when steering and driving.
  caster_offset=0
  ; NYI
  caster_angle=0
  kingpin_offset=0
  kingpin_angle=0
}
; Suspension front defaults (where different from susp_default)
susp_front~susp_default
{
  z=1.525
  k=16400
  ; Size of spring when in rest (used as size of suspension actually)
  restlen=0.5
  minlen=0.0
  maxlen=1.0
  ; Roll center (lateral forces are applied here; relative to suspension)
  roll_center
  {
    x=0
    y=0
    z=0
  }
}
susp_rear~susp_default
{
  z=-1.15
  k=19900
  ; Size of spring when in rest (used as size of suspension actually)
  restlen=0.55
  minlen=0.0
  maxlen=1.0
  bump_rate=3100
  rebound_rate=3350
  ; Roll center (lateral forces are applied here; relative to suspension)
  roll_center
  {
    x=0
    y=0
    z=0
  }
}
susp0~susp_front
{
  x=0.8
}
susp1~susp_front
{
  x=-.8
}
susp2~susp_rear
{
  x=.8
}
susp3~susp_rear
{
  x=-.8
}
tire_model
{
  ; SAE 950311 low-speed tire implementation
  ; Relaxation length laterally (in m)
  relaxation_length_lat=0.91
  ; Relaxation length longitudinally (in m)
  relaxation_length_long=.091
  ; Damping lat/long speed (in m/s, same for longitudinal and lateral)
  damping_speed=0.15
  ; Strength of damping; too little and the car keeps vibrating (low freq.)
  damping_coefficient_lat=35
  damping_coefficient_long=1
}
pacejka_default
{
  ; Pacejka constants for all tires
  ; Use per-wheel though!
  ; Lateral force
  a0=1.799
  a1=0
  a2=1688
  a3=4140
  a4=6.026
  a5=0
  a6=-0.3589
  a7=1
  a8=0
  a9=-0.006111
  a10=-0.03224
  a111=0
  a112=0
  a12=0
  a13=0
  ; Longitudinal force
  b0=1.65
  b1=500
  b2=1688
  b3=0
  b4=229
  b5=0
  b6=0
  b7=0
  b8=-10
  b9=0
  b10=0
  ; Aligning moment
  c0=2.068
  c1=-6.49
  c2=-21.85
  c3=0.416
  c4=-21.31
  c5=0.02942
  c6=0
  c7=-1.197
  c8=5.228
  c9=-14.84
  c10=0
  c11=0
  c12=-0.003736
  c13=0.03891
  c14=0
  c15=0
  c16=0.639
  c17=1.693
  ; Optimal values (used in Gregor Veble's slip combination method)
  optimal_slipratio=0.2
  ; Optimal slip angle in radians (=degrees/52.29578)
  optimal_slipangle=0.139626
}
wheel_common
{
  ; Position of contact patch center wrt suspension
  x=0
  y=0
  z=0
  ; Mass in kilograms; add car body
  mass=20
  ; Rotational inertia (along spin axis)
  inertia=2.3
  radius=.39
  width=.3
  ; Camber in degrees; negative is lean inward (to the car)
  camber=0
  ; Brakes
  inboard_brakes=0
  ; Ackerman factor (default=1); exaggerates steering in one direction
  ackerman=1
  ; Reverse steering (toe remains unchanged, ackerman is reversed as well)
  reverse_steering=0
  ; Brakedisc temperature
  brake_heating=0.0003
  brake_dissipation=0.0005
  brake_max_temp=1000
}
wheel0~wheel_common
{
  ; Rotates when steering?
  steering=1
  ; Max wheel rotation (90 means from 45 degrees left to 45 degrees right)
  lock=40
  ; Toe in degrees
  toe=0
  ; Rolling resistance
  rolling_coeff=0.015
  ; Braking capability in Nm (torque)
  max_braking=4000
  ; Brake factor (determines brake balance)
  braking_factor=.68
  ; Hand braking capability in Nm (torque)
  max_handbrake_torque=400
  ; Friction with different surfaces; default is 1.0
  friction_road=1.7
  ; Vertical tire spring rate (when the wheel is loaded, it acts as a spring)
  ; In N/m (! not N/cm)
  tire_rate=140000
  OBSOLETE_skidding
  {
    ; Slip ratio
    long_start=0.2
    long_max=1.0
    ; Negative slip ratio
    long_start_n=0.2
    long_max_n=1.0
    ; Lateral; slip velocity
    lat_start=0.2
    lat_max=2.0
  }
  model
  {
    ; Use a 3D model instead of stub graphics
    file=left.dof
  }
  pacejka~pacejka_default
  {
  }
}
wheel1~wheel_common
{
  ; Rotates when steering?
  steering=1
  ; Max wheel rotation
  lock=40
  ; Toe in degrees
  toe=0
  friction_road=1.7
  ; Rolling resistance
  rolling_coeff=0.015
  tire_rate=140000
  ; Braking capability in Nm (torque)
  max_braking=4000
  ; Brake factor (determines brake balance)
  braking_factor=.68
  ; Hand braking capability in Nm (torque)
  max_handbrake_torque=400
  skidding
  {
    ; Slip ratio
    long_start=0.2
    long_max=1.0
    ; Negative slip ratio
    long_start_n=0.2
    long_max_n=1.0
    ; Lateral; slip velocity
    lat_start=0.2
    lat_max=2.0
  }
  model
  {
    file=right.dof
  }
  pacejka~pacejka_default
}
wheel2~wheel_common
{
  steering=0
  ; Toe in degrees
  toe=0
  ; Rolling resistance
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=140000
  ; Braking capability in Nm (torque)
  max_braking=4000
  ; Brake factor (determines brake balance)
  braking_factor=.32
  ; Hand braking capability in Nm (torque)
  max_handbrake_torque=400
  skidding
  {
    ; Slip ratio
    long_start=0.2
    long_max=1.0
    ; Negative slip ratio
    long_start_n=0.2
    long_max_n=1.0
    ; Lateral; slip velocity
    lat_start=0.2
    lat_max=2.0
  }
  model
  {
    ; Use a 3D model instead of stub graphics
    file=left.dof
  }
  pacejka~pacejka_default
}
wheel3~wheel_common
{
  steering=0
  ; Toe in degrees
  toe=0
  ; Rolling resistance
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=140000
  ; Braking capability in Nm (torque)
  max_braking=4000
  ; Brake factor (determines brake balance)
  braking_factor=.32
  ; Hand braking capability in Nm (torque)
  max_handbrake_torque=400
  skidding
  {
    ; Slip ratio
    long_start=0.2
    long_max=1.0
    ; Negative slip ratio
    long_start_n=0.2
    long_max_n=1.0
    ; Lateral; slip velocity
    lat_start=0.2
    lat_max=2.0
  }
  model
  {
    file=right.dof
  }
  pacejka~pacejka_default
}
camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.75
    y=0.75
    z=4.50
  }
  offset_to
  {
    x=0.97
    y=-0.5
    z=15
  }
  src
  {
    mass=1
    k=1000
    damping=50
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Left
  fov=60
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.87
    y=0.74
    z=4.75
  }
  offset_to
  {
    x=10
    y=0
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=60
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.87
    y=0.74
    z=4.75
  }
  offset_to
  {
    x=-10
    y=0
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.67
    y=0.75
    z=4.70
  }
  offset_to
  {
    x=-2
    y=0
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=180
    z=0
  }
}
camera5
{
  name=Free chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=60
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=2.0
    y=-0.4
    z=1.5
  }
  angle
  {
    x=0
    y=-180
    z=0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-30
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-2.75
    z=4.10
  }
  angle
  {
    x=0
    y=180
    z=0
  }
}

audio
{
  skid
  {
    sample=sounds/skid.wav
  }
  horn
  {
    sample=
  }
  shiftout
  {
    sample=
  }
  shiftin
  {
    sample=
  }
  throttle_off
  {
      sample=
  }
  accelerate_out
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=0.8
      min=100
      max=1500
      attack=0
      decay=1000
      natural=1000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.0
      min=1400
      max=10000
      attack=1000
      decay=0
      natural=3000
    }
    smp2
    {
      sample=sounds/trb_loop.wav
      volume=0.2
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=0.8
      min=100
      max=1500
      attack=0
      decay=1000
      natural=1000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.0
      min=1400
      max=10000
      attack=1000
      decay=0
      natural=3000
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=0.8
      min=100
      max=1500
      attack=0
      decay=1000
      natural=1000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.0
      min=1400
      max=10000
      attack=1000
      decay=0
      natural=3000
    }
    smp2
    {
      sample=sounds/trb_loop.wav
      volume=0.2
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=sounds/fj40-idle.wav
      volume=0.8
      min=100
      max=1500
      attack=0
      decay=1000
      natural=1000
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.0
      min=1400
      max=10000
      attack=1000
      decay=0
      natural=3000
    }
    smp2
    {
      sample=sounds/trb_loop.wav
      volume=0.2
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  }
  gearwhine
  {
    smp0
    {
      sample=
    }
  }
  wind
  {
    smp0
    {
      sample=
      volume=5.5
      min=0
      max=3000
      natural=1000
    }
  }
}