car
{
   name=BMW 760Li
  year=2009(E66)
  credits=Converted by Napier
  comments=GH-GN60(85%resize)
  wheels=4
  id=bmwe66
  version=0655b
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow0.tga
    width=2.4
    length=5.200
    offset_z=-0.06
  }
 cg
 {
  x=0
  y=-0.18
  z=-0.20
 }
}
body
{
  mass=2100
  inertia
  {
    x=3215
    y=4230
    z=630
  }
  model
  {
    file=760Li.dof
  }
  model_incar
  {
    file=760Li.dof
  }
 model_braking_l
{
  file=brakes0.dof
}
 model_light_l
  {
  file=lights.dof
  }
 model_lightroad_l
 {
  file=lightsin.dof
}
  width=1.79
  height=1.12
  length=4.975
  manual_box=0
}
steer
{
  x=0.42
  y=0.28
  z=0.242
  radius=20
  xa=20
  lock=540
  linearity=0.3	;0.325	;3 turns lock to lock = 1080 degrees 15.4:1 steering ratio
  model
  {
      file=760_rwheel.dof
  }
}
lights
{
   Projected lights
  light0
  {
    texture=light.tga
     Field of view (vertical)
    fov=35
     Aspect (horizontal)
    aspect=10.5
     Distance to car
    z=1.2
     Pitching with respect to car (in degrees)
    pitch=100
     Fall-off distance
    far=1000
  }
  light1
  {
    texture=light0.tga
     Field of view (vertical)
    fov=35.0
     Aspect (horizontal)
    aspect=10.5
     Distance to car
    z=6
     Pitching with respect to car (in degrees)
    pitch=100
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.6865 0.0330 1.910
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare1
  {
    pos=0.6865 0.0330 1.910
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare2
  {
    pos=-0.6865 0.0330 1.910
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare3
  {
    pos=0.6460 -0.2672 2.0122
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare4
  {
    pos=-0.6460 -0.2672 2.0122
    color=1.0 0.7 0.55
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  flare5
  {
    pos=0.6460 -0.2672 2.0122
    color=1.0 0.7 0.55
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  flare6
  {
    pos=-0.6460 -0.2672 2.0122
    color=1.0 0.7 0.55
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  flare7
  {
    pos=0.6460 -0.2672 2.0122
    color=1.0 0.7 0.55
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  ; Brake lights
  flare8
  {
    rule=brake
    pos=-0.71 0.2586 -2.550
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.9
	intensity=0.5
	z_offset=-1000
  }
  flare9
  {
    rule=brake
    pos=0.71 0.2586 -2.550
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.9
	intensity=0.5
	z_offset=-1000
  }
  flare10
  {
    rule=brake
    pos=-0.71 0.2586 -2.550
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.9
	intensity=0.5
	z_offset=-1000
  }
  flare11
  {
    rule=brake
    pos=0.71 0.2586 -2.550
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.9
	intensity=0.5
	z_offset=-1000
  }
}
engine
{
  mass=0
  idle_rpm=800
  max_rpm=7000
  max_torque=390 
  curve_torque=torque.crv
  autoclutch_rpm=1025
  starter=1
  starter_torque=80
  start_stalled=1
  stall_rpm=400
  start_rpm=1200
  reaction=0
  shifting
  {
    automatic=1
    shift_up_rpm=6000
    shift_down_rpm=1500
    time_to_declutch=50
     time_to_clutch=50
     time_in_neutral=90
     time_to_declutch_down=146
     time_to_clutch_down=50
     time_in_neutral_down=90
  }
  inertia
  {
    engine=0.35
    final_drive=0.11
  }
  braking_coeff=2.85
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-3.72
    inertia=0.2
  }
  gear1
  {
    ratio=4.2
    inertia=0.1
  }
  gear2
  {
    ratio=2.48
    inertia=0.02
  }
  gear3
  {
    ratio=1.64
    inertia=0.06
  }
  gear4
  {
    ratio=1.2
    inertia=0.04
  }
  gear5
  {
    ratio=1
    inertia=0.02
  }
gear6
  {
    ratio=0.83
    inertia=0.02
  }
}
clutch
{
 	max_torque=520
}
handbrakes
{
   wheels=23
}
differential
{
   type=1
   ratio=2.9
   inertia=0.1
   locking_coefficient=65
   output0=2
   output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.3
    area=1.86
  }
  wings=0
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=46400
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=31800
   }
}
susp_front                    
{
  y=0.07
  z=1.316
  restlen=0.43		12.5cm ground clearance
  minlen=0.018
  maxlen=0.56
  k=54000		36936N/m
  bump_rate=5500 ;d=6700	
  rebound_rate=5500	
  bump_function=0
  bump_max=1200
  rebound_function=0
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.58	
    z=0
  }
}
susp_rear
{
  y=0.04
  z=-1.697
  restlen=0.43		
  minlen=0.18
  maxlen=0.56
  k=45300		
  bump_rate=4900	
  rebound_rate=4960 
  bump_function=0
  bump_max=1400
  rebound_function=0
  anti_pitch=0.1
  camber_change_per_m=0.45	;2.3 degree per 0.1m deflection
  roll_center
  {
    x=0
    y=-0.536	
    z=0
  }
}
susp0~susp_front
  {
    x=0.78
    toe_change_per_m=0.029		
    camber_change_steering=0.1062	
    caster_offset=-0.017
  }

susp1~susp_front
  {
    x=-0.78
    toe_change_per_m=-0.029  	
    camber_change_steering=-0.1062	
    caster_offset=-0.017		
  }

susp2~susp_rear
  {
    x=0.79
    toe_change_per_m=0.019		
  }

susp3~susp_rear
  {
    x=-0.79
    toe_change_per_m=-0.019		
  }

tire_model_front
{
; 	damping_predict_lat=0
; 	damping_predict_long=0
	relaxation_length_lat=1.0
	relaxation_length_long=1.0
}
tire_model_rear
{
	relaxation_length_lat=1.0
	relaxation_length_long=1.0
}
pacejka
{
    a0=1.2
    a1=-25
    a2=1200
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1200
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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.14
    c15=-1.029
    c16=0.27
    c17=-1.1

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}
wheel_front
{
  y=0
  z=0
  steering=1
  lock=55
  ackerman=1.2
  mass=30 
  inertia=1.1
  width=0.255
  radius=0.366
  rolling_coeff=0.015
  friction_road=1
  max_braking=3000 ;3000
  braking_factor=1
  tire_rate=245000
  camber=0
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=30
  inertia=1.3
  width=0.255
  radius=0.366
  rolling_coeff=0.015
  max_braking=2800 ;3000
  max_handbrake_torque=3500 ;3000
  braking_factor=0.8
  tire_rate=245000
  camber=0
  pacejka~pacejka
 {
  a2=1525
  a3=2100
  a4=9.5
  b2=1700
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
 }
wheel0~wheel_front
{
  x=0
  toe=-0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.1
  model
  {
    file=lf.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=caliper_left1.dof
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.1
  model
  {
    file=rf.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=caliper_right1.dof
  }
}
camera0
{
  name=Driver
  fov=67
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.4255
    y=0.56 ;0.56
    z=-0.332 ;-0.332
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.35
    y=0.56
    z=-0.24
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.56
    z=-0.37
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
offset
  {
    x=-0.044
    y=-0.53
    z=-1.49
  }
  angle
  {
    x=0
    y=200
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=
   ;cam4
   fov=78
   model=1
   wheels=0
   view=1
}
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  offset
  {
    x=0.029688
    y=-0.504162
    z=-6.870018
  }
  angle
  {
    x=15.694407
    y=179.652771
    z=0.000000
  }
  name=Behind
fov=68
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera5
{
  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
  }
}
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=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=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  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.0
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

audio
{
	skid
	{
		sample=skid.wav
	}
	acc_all
	{
		attack=4550
		decay=4550
	}

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=300
			max=1500
			natural=1200
			volume=5
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=1500
			max=3000
			natural=5000
			volume=5
		}
		smp2~audio.acc_all
		{
			sample=engine1.wav
			min=4000
			max=9000
			natural=5800
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=drive.wav
			min=500
			max=9000
			natural=2400
			volume=0.2
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=300
			max=1500
			natural=1200
			volume=5
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=1500
			max=4000
			natural=5000
			volume=5
		}
		smp2~audio.acc_all
		{
			sample=engine1.wav
			min=5000
			max=9000
			natural=5400
			volume=0.6
		}
	}

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=300
			max=1500
			natural=1200
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=1500
			max=3000
			natural=5000
			volume=1
		}
		smp2~audio.acc_all
		{
			sample=engine1.wav
			min=4000
			max=9000
			natural=5800
			volume=0.8
		}
		smp3~audio.acc_all
		{
			sample=drive.wav
			min=500
			max=9000
			natural=2400
			volume=0.1
		}
	}

	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=300
			max=1500
			natural=1200
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=1500
			max=3000
			natural=5000
			volume=0.7
		}
		smp2~audio.acc_all
		{
			sample=engine1.wav
			min=4000
			max=9000
			natural=5800
			volume=0.5
		}
		smp3~audio.acc_all
		{
			sample=drive.wav
			min=500
			max=9000
			natural=2400
			volume=0.1
		}
	}

	wind
	{
		volume=2
		pitch_scale=0
		pitch_offset=50
		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.1
  min_velocity_ratio=1.09
  enable=0
}

abs
{
  max_velocity_ratio=1.2
  min_velocity_ratio=1.1
  enable=1
}
ai
{
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.43
}