car
{
  name=Audi A8
  year=2011
  credits=AUDI V8 a 90º 254POL³ 4163cc 4.2l 372cv/6800rpm torque:£328pé/445Nm/3500rpm
  comments=FSI gas. 120bar drive-by-wire 8-velocidades tiptronic/sequencial QUATTRO(AWD), converted to CG by Eholov
  id=luxuryaudi
  version=090
  wheels=4
  skid
  {
    sample=Skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=5.9
    offset_z=-0.2
    offset=0
  }
  cg
  {
    x=0
    y=-0.155
    z=0.25
  }
}
body
{
  mass=1780
  inertia
  {
    x=3000
    y=3300
    z=650
  }
width=2.111
height=1.222
length=5.137
manual_box=1
	model
	{
		file=A8.dof
	}
	model_incar
	{
		file=A8.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
        model_lightroad_l
        {
                file=lightsin.dof
        }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=3.5
    ; Distance to car
    z=1.1
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=0.8
    ; Distance to car
    z=2.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
  x=0.39
  y=0.09
  z=0.53
  radius=10
  xa=18
  lock=550
  model
  {
    file=volante.dof
  }
}
engine
{
  mass=0
  max_rpm=8000
  idle_rpm=1100
  curve_torque=audi.crv
  max_torque=0.78
  autoclutch_rpm=1500
  starter=1
  starter_torque=159
  start_stalled=1
  stall_rpm=500
  start_rpm=1270
  reaction=0
  shifting
  {
 	fast=1
	automatic=1
	cut_throttle=1
	blip_throttle=0.9573
	shift_up_rpm=7000
	shift_down_rpm=3700
	time_to_declutch=67
	time_in_neutral=37.5
	time_to_clutch=7
	time_to_declutch_down=67
	time_in_neutral_down=13.5
	time_to_clutch_down=7
  }
  inertia
  {
    engine=0.38
    final_drive=0.1
  }
  braking_coeff=1.94
}
gearbox
{
	gears=9

	gear0
	{
		ratio=-3.317
		inertia=0.02
	}

	gear1
	{
		ratio=4.714
		inertia=0.037
	}

	gear2
	{
		ratio=3.143
		inertia=0.045
	}

	gear3
	{
		ratio=2.106
		inertia=0.057
	}

	gear4
	{
		ratio=1.667
		inertia=0.067
	}

	gear5
	{
		ratio=1.285
		inertia=0.0807
	}

	gear6
	{
		ratio=1.000
		inertia=0.907
	}
	gear7
	{
		ratio=0.839
		inertia=0.117
        }
	gear8
	{
		ratio=0.667
		inertia=0.06
	}
}
clutch
{
  max_torque=900
}
handbrakes
{
  wheels=23
}
differential
{
	type=1
	ratio=4.34
	inertia=0.15
	locking_coeff=50
	output2=2
	output3=3
}
abs
{
  enable=1
  max_velocity_ratio=1.7
  min_velocity_ratio=1.3
  min_velocity=3
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
}
aero
{
  body
  {
    center=0 0 0
    cx=0.32
    area=1.75
  }
  wings=2
  wing0
  {
    name=rearspoiler
    span=1
    cord=1
    coeff_drag=2.8
    coeff_down=28
    center=0 0.15 -1.25
    angle=1
    angle_offset=0
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=32000
  }
}
susp_front
{
  y=-0.095
  z=1.6
  restlen=0.46
  minlen=0.10
  maxlen=0.65
  k=40000		
  bump_rate=5500	
  rebound_rate=5500	
  bump_function=0
  bump_max=1300
  rebound_function=0
  anti_pitch=0.4
  camber_change_per_m=0.05
  roll_center
  {
    x=0
    y=-0.7
    z=0
  }
}
susp_rear
{
  y=-0.12
  z=-1.46
  restlen=0.44	
  minlen=0.0
  maxlen=0.9
  k=50000		
  bump_rate=5000	
  rebound_rate=4500	
  bump_function=0
  bump_max=1800
  rebound_function=0
  anti_pitch=0.1
  camber_change_per_m=0.2	
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
{
	x=0.835
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.835
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}
susp2~susp_rear
{
  x=0.835
}
susp3~susp_rear
{
  x=-0.835
}
tire_model_front
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
tire_model_rear
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
pacejka
{
  a0=1.3
  a1=-29
  a2=1350
  a3=1632
  a4=11
  a5=0
  a6=-0.04
  a7=-0.4
  a8=0.003
  a9=-0.002
  a10=0.16
  a111=-8; 0
  a112=0
  a12=17.8; 0
  a13=0
  b0=1.57
  b1=-48
  b2=1400
  b3=6.8
  b4=444
  b5=0
  b6=0.0034
  b7=-0.008
  b8=0.66
  b9=0
  b10=0
  b11=0
  b12=0
  c0=2.46
  c1=-2.77
  c2=-2.9
  c3=-0
  c4=-3.6
  c5=-0.1
  c6=0.0004
  c7=0.22
  c8=-2.31
  c9=3.87
  c10=0.0007
  c11=-0.05
  c12=-0.006
  c13=0.33
  c14=-0.04 
  c15=-0.4
  c16=0.092
  c17=0.0114
  optimal_slipratio=0.2
  optimal_slipangle=0.139626
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=1
  power_gearing=1.65
  camber=-1.2
  lock=40
  ackerman=1.31
  mass=22
  inertia=1.04
  radius=0.355
  rolling_coeff=0.015
  max_braking=2300
  braking_factor=0.75
  tire_rate=150000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=1
  camber=0
  mass=22
  inertia=1.04
  radius=0.355
  rolling_coeff=0.015
  max_braking=800
  braking_factor=0.6
  max_handbrake_torque=3000
  tire_rate=150000
  pacejka~pacejka
  {
    optimal_slipratio=0.11
    optimal_slipangle=0.18
  }
}
wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0
	camber=0.007	;-0.6
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=caliper_left.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=-1.15
	toe=0
	camber=0.007
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=caliper_right.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.21	;toe in, goes to out under bump like M3 Z axle
	camber=-0.588	;-1.5
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=caliper_left1.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.21	;toe in, goes to out under bump like M3 Z axle
	camber=-0.588
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=caliper_right1.dof
	}
}
audio
{
	skid
	{
		sample=skid.wav
	}
	acc_all
	{
		attack=4550
		decay=4550
	}

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=a1000.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
                smp1~audio.acc_all
                {
                        sample=idle.wav
                        min=2
                        max=1000
                        natural=1000
                        decay=500
                        volume=1
                }
                smp2~audio.acc_all
                {
                       volume=2
                       sample=accout.wav
                       min=1000
                       max=3000
                       natural=3000
                       attack=1000
                       decay=1000
                }
                smp3~audio.acc_all
                {
                      volume=2
                      sample=accout1.wav
                      min=3000
                      max=6000 
                      natural=3000
                      attack=1000
                      decay=1000
                }
                smp4~audio.acc_all
                {
                      volume=2
                      sample=accout2.wav
                      min=6000
                      max=9500 
                      natural=3000
                      attack=1000
                }
                smp5~audio.acc_all
                {
                      volume=.5
                      sample=sc.wav
                      min=5000
                      max=10500 
                      natural=5000
                      attack=2000
                }
		smp6~audio.acc_all
		{
			sample=a2000.wav
			min=2000
			max=2001
			natural=2000

			volume=1
		}
		smp7~audio.acc_all
		{
			sample=a3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp8~audio.acc_all
		{
			sample=a4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp9~audio.acc_all
		{
			sample=a5000.wav
			min=6000
			max=6001
			natural=5000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp10~audio.acc_all
		{
			sample=a7000.wav
			min=7000
			max=9001
			natural=7000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp11~audio.acc_all
		{
			sample=purr.wav
			min=2000
			max=10000
			natural=5000
			attack=2600
			volume=1.25
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=d1000.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
                smp1~audio.acc_all
                {
                        sample=decout.wav
                        min=2
                        max=10500
                        natural=3000
                        attack=100
                        decay=100
                        volume=1
                }
		smp2~audio.acc_all
		{
			sample=d2000.wav
			min=2000
			max=2001
			natural=2000

			volume=1
		}
		smp3~audio.acc_all
		{
			sample=d3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp4~audio.acc_all
		{
			sample=d4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp5~audio.acc_all
		{
			sample=d5000.wav
			min=6000
			max=6001
			natural=5000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp6~audio.acc_all
		{
			sample=d7000.wav
			min=7000
			max=9001
			natural=7000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp7~audio.acc_all
		{
			sample=purr.wav
			min=2000
			max=10000
			natural=5000
			attack=2600
			volume=0.55
		}
	}

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=a1000.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
                smp1~audio.acc_all
                {
                        sample=idle.wav
                        min=2
                        max=1000
                        natural=1000
                        decay=500
                        volume=1
                }
                smp2~audio.acc_all
                {
                       volume=2
                       sample=accout.wav
                       min=1000
                       max=3000
                       natural=3000
                       attack=1000
                       decay=1000
                }
                smp3~audio.acc_all
                {
                      volume=2
                      sample=accout1.wav
                      min=3000
                      max=6000 
                      natural=3000
                      attack=1000
                      decay=1000
                }
                smp4~audio.acc_all
                {
                      volume=2
                      sample=accout2.wav
                      min=6000
                      max=9500 
                      natural=3000
                      attack=1000
                }
                smp5~audio.acc_all
                {
                      volume=.5
                      sample=sc.wav
                      min=5000
                      max=10500 
                      natural=5000
                      attack=2000
                }
		smp6~audio.acc_all
		{
			sample=a2000.wav
			min=2000
			max=2001
			natural=2000

			volume=1
		}
		smp7~audio.acc_all
		{
			sample=a3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp8~audio.acc_all
		{
			sample=a4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp9~audio.acc_all
		{
			sample=a5000.wav
			min=6000
			max=6001
			natural=5000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp10~audio.acc_all
		{
			sample=a7000.wav
			min=7000
			max=9001
			natural=7000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp11~audio.acc_all
		{
			sample=purr.wav
			min=2000
			max=10000
			natural=5000
			attack=2600
			volume=1.25
		}
	}

	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=d1000.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
                smp1~audio.acc_all
                {
                        sample=decout.wav
                        min=2
                        max=10500
                        natural=3000
                        attack=100
                        decay=100
                        volume=1
                }
		smp2~audio.acc_all
		{
			sample=d2000.wav
			min=2000
			max=2001
			natural=2000

			volume=1
		}
		smp3~audio.acc_all
		{
			sample=d3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp4~audio.acc_all
		{
			sample=d4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp5~audio.acc_all
		{
			sample=d5000.wav
			min=6000
			max=6001
			natural=5000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp6~audio.acc_all
		{
			sample=d7000.wav
			min=7000
			max=9001
			natural=7000

			attack=2600
			decay=2600

			volume=1.25
		}
		smp7~audio.acc_all
		{
			sample=purr.wav
			min=2000
			max=10000
			natural=5000
			attack=2600
			volume=0.55
		}
	}

	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
		}
	}
}
camera0
{
  name=Driver
  fov=57
  model=1
  wheels=0
  view=1
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.39
    y=-0.35
    z=-0.05
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=57
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.39
    y=0.35
    z=-0.05
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=57
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.39
    y=0.35
    z=-0.05
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.2
    y=0.38
    z=-0.13
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  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
  }
}