car
{
  name=Audi S4 B6
  year=2004
  credits= Thanks To Assetto Corsa
  comments=Maquina do aço
  id=audis4b6
  version=090b
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=4.75
    offset_z=-0.03
  }
  cg
  {
    x=0
    y=-0.268	;560mm		1.469 (height) * 38% ~ 0.56m
    z=0.135
  }
  ff_factor=0.2
}
body
{
  mass=1690	;170kg unsprung, 1755kg DIN mass, + driver 80kg + fuel 25kg = 1860kg
  restitution_coeff=0.25
  inertia
  {
    x=2800	;3055	;length 4841mm, width 1846mm, height 1469mm
    y=3300	;3684
    z=625	;773
  }
  x=0
  y=0
  z=0
  width=1.76
  height=1.0
  length=4.6
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
	{
		file=body.dof
	}
	model_incar
	{
		file=body.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
                  model_lightroad_l
                  {
                                    file=lightsin.dof
                   }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=reverse.dof
  }
  model_reverse_r
  {
    file=reverse.dof
}
}

steer
{
	x=0.345
	y=0.183
	z=0.438
	xa=15.9
	lock=1080				
	linearity=0.25
	model
	{
		file=volante.dof
		lod0_z=0
		lod_out=2
	}
}

engine
{
  mass=0
  idle_rpm=850
  max_rpm=7400
  max_torque=0.48
  curve_torque=torque.crv
  autoclutch_rpm=1250
  starter=1
  starter_torque=95
  start_stalled=1
  stall_rpm=550
  start_rpm=1250
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=7000
    shift_down_rpm=900
    time_to_declutch=15
    time_to_clutch=5
    time_in_neutral=140
    time_to_declutch_down=15
    time_to_clutch_down=5
    time_in_neutral_down=80
  }
  inertia
  {
    engine=0.40
    final_drive=0.13
  }
  braking_coeff=3.9
  }
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.09
  enable=0
}
abs
{
  max_velocity_ratio=1.2
  min_velocity_ratio=1.15
  enable=1
}
gearbox
{
  gears=8
  gear0
  {
    ratio=-3.75
    inertia=0.2
  }
  gear1
  {
    ratio=3.67
    inertia=0.1
  }
  gear2
  {
    ratio=2.05
    inertia=0.08
  }
  gear3
  {
    ratio=1.46
    inertia=0.06
  }
  gear4
  {
    ratio=1.13
    inertia=0.04
  }
  gear5
  {
    ratio=0.92
    inertia=0.02
  }
  gear6
  {
    ratio=0.78
    inertia=0.01
  }
  gear7
  {
    ratio=0.833
    inertia=0.01
  }
}
clutch
{
  max_torque=590
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.62
  inertia=0.05
  locking_coeff=155
}
aero
{
  body
  {
    center=0 0 0
    cx=0.30	
    area=2.26
  }
  wings=1
  wing0
  {
    name=overall body lift	; 13kg front, 19kg rear at 200kmh
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=45000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=37500
  }
}
susp_front
{
  y=-0.04
  z=1.38	;2889mm wheelbase
  restlen=0.50		;486mm, 1813/4kg per wheel = 435 +/- 5 kg
  minlen=0.3
  maxlen=0.56
  k=31500		;1.35NF
  bump_rate=1516	;1684 static critical damping ratio *0.55,926/ *0.7,1179/ *0.8,1347/ *0.9,1516
  rebound_rate=6659	;7403 static critical damping ratio *0.55,/4072 *0.7,5182/ *0.8,5922/ *0.9,6659
  bump_function=0
  bump_max=1684
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.776	;50mm RC
    z=0
  }
}
susp_rear
{
  y=-0.04
  z=-1.26
  restlen=0.485		;490mm
  minlen=0.28
  maxlen=0.515
  k=38750		;1.5NF
  bump_rate=1680	;1867 static critical damping ratio *0.5,934/ *0.65,1214/ *0.8,1494/ *0.9,1680
  rebound_rate=7390	;8211 static critical damping ratio *0.5,4106/ *0.65,5337/ *0.8,6569/ *0.9,7390
  bump_function=0
  bump_max=1867
  anti_pitch=0.08
  camber_change_per_m=0.05	;0.25 degrees per 0.1m deflection!
  roll_center
  {
    x=0
    y=-0.73	;100mm RC
    z=0
  }
}
susp0~susp_front
{
  x=0.81				;1580mm track
    toe_change_per_m=0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=-0.017		;5.78 degrees static caster -0.017!
}
susp1~susp_front
{
  x=-0.81
    toe_change_per_m=-0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=-0.017		;5.78 degrees static caster -0.017!
}
susp2~susp_rear
{
  x=0.81				;1566mm track
    toe_change_per_m=0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
}
susp3~susp_rear
{
  x=-0.81
    toe_change_per_m=-0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
}

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.25
    a1=-35
    a2=1450
    a3=2000
    a4=8
    a5=0.015
    a6=-0.25
    a7=0.1
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.5
    b1=-70
    b2=1550
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4	;0.25
    b11=-50	;-80
    b12=0	;350
    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.155
}
wheel_front
{
  y=0
  z=0
  max_braking=2300
  braking_factor=1
  steering=1
  lock=62
  powered=1
  mass=40		;24.75kg per wheel
  inertia=1.4
  radius=0.31
  width=0.255		;255/40 ZR19
  slices=20
  rolling_coeff=0.017
  friction_road=1
  tire_rate=260000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  max_braking=1200
  braking_factor=0.5
  steering=0
  powered=1
  mass=45		;26.4kg per wheel
  inertia=1.5
  radius=0.31
  width=0.285		;285/35 ZR19
  slices=20
  rolling_coeff=0.021
  friction_road=1
  max_handbrake_torque=1200
  tire_rate=250000
  pacejka~pacejka
  {
  a2=1550
  a3=2100
  a4=9
  b2=1550
  b4=350
  optimal_slipratio=0.11
  optimal_slipangle=0.175
  }
}
wheel0~wheel_front
{
  x=0
  camber=-1
  toe=-0
  ackerman=1.2
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=caliper_left.dof
    offset
    {
      z=0
    }
  }
}
wheel1~wheel_front
{
  x=0
  camber=-1
  toe=0
  ackerman=-1.2
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=caliper_right.dof
    offset
    {
      z=0
    }
  }
}
wheel2~wheel_rear
{
  x=0
  camber=-1.5
  toe=-1
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=caliper_left.dof
    offset
    {
      z=0
    }
  }
}
wheel3~wheel_rear
{
  x=0
  camber=-1.5
  toe=1
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=caliper_right.dof
    offset
    {
      z=0
    }
  }
}
camera0
{
	fov=50
  model=0
  name=chase
  wheels=1
  angle
  {
    x=0
    y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=1.0
    z=-6.8
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  src
  {
    mass=5
    k=320
    damping=80
    maxdist=2.5
  }
  dst
  {
    mass=1
    k=400
    damping=40
    maxdist=1.5
  }
}
camera1
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0.0
    y=-0.28751
    z=-12
  }
  angle
  {
    x=4.861111
    y=77.843800
    z=-11.322908
  }
  fov=25
  model=0
  wheels=1
  view=0
  name=Jim Seamus Cam
}
camera2

{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.1
    y=-0.5
    z=-6
  }
  angle
  {
    x=1.5
    y=18
    z=0
  }
  name=LowFrontAngle
  fov=50
}
camera3
{
  
	fov=60
	model=0
	wheels=2
	view=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.0
		y=-0.7
		z=-5
	}
	angle
	{
		x=4
		y=0
		z=0
}
camera4
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.38
    y=-0.28751
    z=-4.9994
  }
  angle
  {
    x=4.861111
    y=33.853992
    z=-14.322908
  }
  fov=55
  model=0
  wheels=1
  view=0
}
}
camera5
{
	name=roda
	model=0
	wheels=0
	view=0
	offset
	{
		x=-1.2
		y=0
		z=0.5
	}
	angle
	{
		x=0
		y=170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
  }
  fov=60
}
camera6
{
	name=ChaseClose
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=1.5
		z=-5
	}
	follow
	{
		pitch=0
		yaw=0
		roll=0
	}
	src
	{
		mass=6
		k=600
		damping=120
		maxdist=2
	}
	angle
	{
		x=5
		y=180
		z=0
  }
}
camera7
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0.810937
    y=-0.208334
    z=-4.760015
  }
  angle
  {
    x=8.055448
    y=-405.903503
    z=0.086801
  }
  name=Front corner
}
camera8
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=1.6
    y=-0.5
    z=-10
  }
  angle
  {
    x=0
    y=-45
    z=0
  }
  fov=35
}
camera9
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.29
    y=0.45
    z=-0.30
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
	}
}

audio
{
  	skid
  	{
    		sample=skid.wav
  	}
  	acc_all
  	{
    		attack=1300
    		decay=1300
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			sample=6_3_idle_ex.wav
      			min=0
      			max=2500
      			natural=2000
   				volume=0.7
    		}
    		smp1~audio.acc_all
    		{
      			sample=6_3_onlow_ex.wav
      			min=2500
      			max=5000
      			natural=4500
    		        volume=0.9
                }
    		smp2~audio.acc_all
    		{
      			sample=6_3_onmid_ex.wav
      			min=5000
      			max=8000
      			natural=7000
    		        volume=1
                }
                smp3~audio.acc_all
    		{
      			sample=6_3_onhigh_ex.wav
      			min=5000
      			max=8000
      			natural=9500
    		        volume=1.25 
                }  	
  	decelerate_out
  	{
    		volume=1.0
    		smp0~audio.acc_all
    		{
      			sample=6_3_idle_ex.wav
      			min=0
      			max=2500
      			natural=1000
   				volume=0.7
    		}
    		smp1~audio.acc_all
    		{
      			sample=6_3_onlow_ex.wav
      			min=2500
      			max=5000
      			natural=3000
    		        volume=0.9
                }
    		smp2~audio.acc_all
    		{
      			sample=6_3_onmid_ex.wav
      			min=5000
      			max=8000
      			natural=5000
    		        volume=1
                }
                smp3~audio.acc_all
    		{
      			sample=6_3_onhigh_ex.wav
      			min=5000
      			max=8000
      			natural=8000
    		        volume=1.25 
                }  	
}
wind
  {
    volume=1.5
    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
    }
  }
}