car
{
  name=Land Rover Range Rover Vogue SE
  id=rrlrccs1
  version=090
  comments=Converted with permission (2008/9)
  credits=MBW13/Splashonda/Cosmo/Sergiogon
  year=1990
  wheels=4
  ff_factor=1
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=5.2
  }
  cg
  {
    x=0
    y=0
    z=0		
  }
}

body
{
  mass=1986
  inertia
  {
    x=1730
    y=1950
    z=590
  }
  ;width=1.829
  ;height=1.803
  ;length=4.45
  ; Define bounding box manually?
  manual_box=0
  ; Moving bounding box around
  box_offset=0 0 0
  model
  {
    file=county.dof
  }
  model_incar
  {
    file=int.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakelight.dof
  }
  model_reverse_r
  {
    file=rlight.dof
  }
}
steer
{
  x=0.495
  y=0.66 
  z=-0.1
  radius=30
  lock=1080
  linearity=0.833
  xa=21
  model
  {
    file=sw.dof
  }
}
engine
{
  ; Position (stub gfx)
  x=0
  y=.2
  z=1.2
  size=.25
  mass=150
  idle_rpm=900
  max_rpm=5000
  autoclutch=1
  autoclutch_rpm=1500
  curve_torque=torque.crv
  max_torque=160
  ;319Nmx0.50=aprox.160. This is the only way to have the correct ammount of power with 4wd
  torque_reaction=0.5
  starter=1
  starter_torque=85
  start_stalled=1
  stall_rpm=500
  start_rpm=1200
  shifting
  {
    automatic=0	
    shift_up_rpm=4000
    shift_down_rpm=2000
    time_to_declutch=200
    time_to_clutch=200
    time_in_neutral=300
    time_to_declutch_down=200
    time_in_neutral_down=300
    time_to_clutch_down=200
    blip_throttle=0
    cut_throttle=1
  }
  inertia
  {
    engine=0.09
    final_drive=0.12
  }
  braking_coeff=0.34
  friction=0
  sample=engine.wav
  sample_rpm=5200
  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
  }
}
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
{
  gears=8
  gear0
  { ratio=-3.7
    inertia=0.9
  }
  gear1
  { ratio=3.32
    inertia=0.13
    engine_map=1.0
  }
  gear2
  { ratio=2.13
    inertia=0.09
    engine_map=1.0
  }
  gear3
  { ratio=1.4
    inertia=0.07
    engine_map=1.0
  }
  gear4
  { ratio=1.0
    inertia=0.05
    engine_map=1.0
  }
  gear5
  { ratio=0.77
    inertia=0.03
    engine_map=1.0
  }
  gear6
  { ratio=6.64
    inertia=0.2
    engine_map=1.0
  }
  gear7
  { ratio=-7.02
    inertia=0.2
    engine_map=1.0
  }
}
clutch
{
  max_torque=500
}
handbrakes
{
  wheels=23
}
differentials
{
	count=1
	diff0
	{
		type=1
  		inertia=1.5
  		ratio=3.54
  		locking_coeff=100
  		output0=2
	  	output1=3
	}
}
aero
{
  body
  {
    center=0 0 0
    cx=0.45
    area=2.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
  arb0
  {
    susp_left=0
    susp_right=1
    k=0
  }
}
susp_default
{
  bumpstop_len=0
  bumpstop_k=100000
  bump_function=0
  toe_change_per_m=0
  camber_change_per_m=0
  camber_change_steering=0
  caster_offset=0
  caster_angle=0
  kingpin_offset=0
  kingpin_angle=0
}
susp_front~susp_default
{
  y=0
  z=1.2
  k=26400
  restlen=0.5
  minlen=0.0
  maxlen=0.6
  bump_rate=4600
  bump_max=4800
  rebound_rate=4850
  roll_center
  {
    x=0
    y=-0.4
    z=0
  }
}
susp_rear~susp_default
{
  y=0.07
  z=-1.5
  k=29900
  restlen=0.55
  minlen=0.0
  maxlen=0.73
  bump_rate=5100
  bump_max=5000
  rebound_rate=5350
  roll_center
  {
    x=0
    y=-0.3
    z=0
  }
}
susp0~susp_front
{
  x=0.8
}
susp1~susp_front
{
  x=-0.8
}
susp2~susp_rear
{
  x=0.8
}
susp3~susp_rear
{
  x=-0.8
}
tire_model_front
{
damping_predict_lat=0.572
damping_predict_long=0.023
}
tire_model_rear
{
damping_predict_lat=0.560
damping_predict_long=0.022
}

pacejka_default
{
   ; Lateral force
   a0=1.6
   a1=-20
   a2=1320
   a3=2100
   a4=20
   a5=0.014
   a6=-0.24
   a7=1.0
   a8=-0.03
   a9=-0.0013
   a10=-0.15
   a111=-4
   a112=-0.29
   a12=17.8
   a13=-2.4
   ; Longitudinal force
   b0=1.5
   b1=-40
   b2=1410
   b3=23.3
   b4=250
   b5=0.05
   b6=0
   b7=0.055
   b8=-0.024
   b9=0.014
   b10=0.26
   b11=-103.71
   b12=0
   ; Aligning moment
   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.11
   optimal_slipangle=0.157
}
wheel_common
{
  ; Position of contact patch center wrt suspension
  x=0
  y=0
  z=0
  mass=35
  ; Rotational inertia (along spin axis)
  inertia=2.3
  radius=.39
  width=.3
  camber=0
  ; Brakes
  inboard_brakes=0
  ackerman=1
  brake_heating=0.0003
  brake_dissipation=0.0005
  brake_max_temp=1000
}
wheel0~wheel_common
{
  steering=1
  powered=1
  lock=45
  toe=0
  rolling_coeff=0.015
  max_braking=3000
  friction_road=1.7
  tire_rate=140000
  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=left.dof
  }
  pacejka~pacejka_default
  {
  }
}
wheel1~wheel_common
{
  steering=1
  powered=1
  lock=45
  toe=0
  friction_road=1.7
  rolling_coeff=0.015
  tire_rate=140000
  max_braking=3000
  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
  powered=1
  toe=0
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=140000
  max_braking=2200
  max_handbrake_torque=4000
  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=left.dof
  }
  pacejka~pacejka_default
  {
  }
}
wheel3~wheel_common
{
  steering=0
  powered=1
  toe=0
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=140000
  max_braking=2200
  max_handbrake_torque=4000
  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=65
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.48
    y=0.98
    z=-0.6
  }
  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=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.48
    y=0.98
    z=-0.6
  }
  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=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.48
    y=0.98
    z=-0.6
  }
  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.1
    y=0.98
    z=-0.6
  }
  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 Close
  model=0
  wheels=0
  view=0
  fov=60
  offset
  {
    x=0
    y=1.7 ;1.2
    z=-5.2 ;-4.2
  }
  src
  {
    mass=6
    k=600
    damping=120
    maxdist=2
  }
}
camera5
{
   	offset
   	{
      		x=0.00
      		y=1.50
      		z=-5.5 ;-6.00
   	}
   	angle
   	{
      		x=15.50
      		y=180.00
      		z=0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=1
      		roll=0
   	}
 	src
 	{
  		mass=5
  		k=50
  		damping=100
  		maxdist=2
 	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
   	fov=60
	name=Chase
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=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=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.1
    z=0.3
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
   acc_all
   {
      attack=2000
      decay=2000
   }
   accelerate_out
   {
      smp0~audio.acc_all
      {
         sample=1_idle.wav
         min=0
         max=1550
         attack=0
         natural=1000
         volume=4
      }
      smp1~audio.acc_all
      {
         sample=engine.wav
         min=0
         max=1550
         attack=0
         natural=3500
         volume=4
      }
      smp2~audio.acc_all
      {
         sample=1_high.wav
         min=1500
         max=8100
         natural=12000
         volume=4
      }
      smp3~audio.acc_all
      {
         sample=1_high.wav
         min=8000
         max=9500
         decay=0
         natural=8000
         volume=4
      }
   }
   decelerate_out
   {
      volume=2
   }
   accelerate_in
   {
      volume=2
      smp0~audio.acc_all
      {
         sample=idle_in2.wav
         min=0
         max=600
         attack=0
         natural=1000
         volume=2
      }
      smp1~audio.acc_all
      {
         sample=low_in2.wav
         min=0
         max=10000
         attack=0
         natural=5500
         volume=2
      }
   }
   decelerate_in
   {
      volume=1
      smp0~audio.acc_all
      {
         sample=idle_in2.wav
         min=0
         max=600
         attack=0
         natural=1000
         volume=2
      }
      smp1~audio.acc_all
      {
         sample=low_in2.wav
         min=0
         max=10000
         attack=0
         natural=5500
         volume=1
      }
   }
   gearwhine
   {
      ; Master volume for this set
      volume=1
      ; Pitch input is shaft rotational velocity in radians/sec
      pitch_scale=0.0015
      pitch_offset=10
      ; Acceleration; outside of the car
      smp0~audio.acc_all
      {
         ; All engine samples depend on engine RPM
         sample=gearwhine.wav
         min=0
         max=10000
         ; RPM of used sample
         natural=20000
      }
   }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=60
    ; Aspect (horizontal)
    aspect=4
    ; Distance to car
    z=1.5
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=70
  }
  OLD_light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=3.0
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=20
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine. 7/11-alcool, 5.2e-5 8.5/13.5-gasol
  bsfc=7.5e-5
}