 car
{
   name=Audi A6 C5 1.9 TDI (Avant)
	year=1997(0-100:12,9s;vmax:191 km/h)
	credits=Model By ?, convert by MariuszGTV, edit by Fabikan75
        comments=Dis:1896cc;Pow:110KM(81 kW)@4150rpm;Tor:235Nm@1900rpm;R4 Diesel.
	id=a666tdi19
       version=065
       wheels=4
       shadow
       {
           texture=shadow.tga
           width=2.4
           length=5.2
           offset_z=0.0
           offset=0
       }
       cg
       {
          x=0
          y=-0.3
          z=0.1
       }
}

::::::::::::::::::::::::::::::::::::::KOROSERIA::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
body
{
  	mass=1470
  	inertia
  	{
    		x=1855
    		y=1959
    		z=409
  	}
  	model
  	{
    		file=1.dof
  	}
  	model_incar
  	{
    		file=1.dof
  	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lights.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
        width=1.810
	height=1.479
	length=4.796
  	manual_box=1
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.53 0.02 1.97
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.4
	intensity=1
        hor_scale=2
  }
  flare1
  {
    pos=0.53 0.02 1.97
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.4
	intensity=1
        hor_scale=2
  }
  flare2
  {
    pos=-0.53 0.02 1.97
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.4
	intensity=1
        hor_scale=2
  }
  flare3
  {
    pos=0.53 0.02 1.97
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.4
	intensity=1
        hor_scale=2
  }
}
graphics
{
  intensity=1
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=2.dof
    }
    model1
    {
      file=3.dof
    }
    model2
    {
      file=4.dof
    }
    ;monograme logo
    model3
    {
      file=5.dof
    }
    model4
    {
      file=6.dof
    }
    ;Commandes vitres et retros
    model5
    {
      file=.dof
    }
    ;Sièges avant
    model6
    {
      file=7.dof
    }
    ;Feux arrière (phase 1 ou 2?)
    model7
    {
      file=8.dof
    }
    ;Face avant (phase 1 ou 2?)
    model8
    {
      file=e35e85e12.dof
    }
    ;Avec anti brouillard (Oui ou non?)
    model9
    {
      file=10.dof
    }
    ;Option(becquet ou barres de toit)
    model10
    {
      file=11.dof
    }
    ;Conducteur (Oui ou non?)
    model11
    {
      file=9.dof
    }
    ;Logos
    model12
    {
      file=125.dof
    }
    ;Nombre de vitres electriques
    model13
    {
      file=85.dof
    }
    ;repetiteurs latereaux (Oui ou non?)
    model14
    {
      file=35.dof
    }
    ;poignés (Oui ou non?)
    model15
    {
      file=1.dof
    }
    ;accoudoirs avant
    model16
    {
      file=75.dof
    }
    ;logo moteur
    model17
    {
      file=53.dof
    }
    ;compteur
    model18
    {
      file=3.dof
    }
    ;pot d'echappement
    model19
    {
      file=4.dof
    }
    ;commande de boite
    model20
    {
      file=banquette.dof
    }
    model21
    {
      file=vide.dof
    }
    ;(phares xenon?)
    model22
    {
      file=capteurs.dof
    }
    model23
    {
      file=colone.dof
    }
    model24
    {
      file=details.dof
    }
  }
}
:::::::::::::::::::::::::::::::::ABS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
steer
{
	x=0.365
	y=0.2
	z=0.40
	xa=20
	lock=900				
	linearity=0.3
	model
	{
		file=sw.dof
		lod0_z=0
		lod_out=2
	}
}

engine
{
  mass=0
  idle_rpm=750
  max_rpm=5000
  max_torque=235
  
  sample=acc-320.wav
  sample_rpm=4800

  curve_torque=torque.crv
  autoclutch_rpm=1750
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=500
  start_rpm=750
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=4700
    shift_down_rpm=900
    time_to_declutch=65
    time_to_clutch=65
  }
  inertia
  {
    engine=0.39
    final_drive=1.25
  }
  braking_coeff=2.5
}

;----------------------drivetrain----------------------

gearbox 
{
	gears=6

	gear0
	{
		ratio=-3.6
		inertia=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=4  
		inertia=0.03
		linearity=1
	}

	gear2
	{
		ratio=2.35
		inertia=0.04
		linearity=1.2
	}

	gear3
	{ 
		ratio=1.63   
		inertia=0.05
		linearity=1.4
	}

	gear4
	{
		ratio=1.2
		inertia=0.06
		linearity=1.6
	}

	gear5
	{
		ratio=0.96
		inertia=0.08
		linearity=1.8
	}
}

differential
{
	type=1
	ratio=3.197
	inertia=0.16
	locking_coeff=25
   	output0=0
   	output1=1
}
abs
{
  enable=1
  braking_factor=1
  max_velocity_ratio=1.100
  min_velocity_ratio=1.095
  min_velocity=3.61
}
traction_control
{
  	enable=1
  	min_velocity=1.667
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
}
clutch
{
	max_torque=250 
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.33
		area=2.03
	}
	wings=1
	wing0
	{
		name=lift
		span=1
		cord=1
		coeff_drag=0
		coeff_down=0
		center=0 0 0
		angle=0
		angle_offset=10
	}
}

antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=41000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=34000
	}
}

susp_front
{
	y=0
	z=1.29
	restlen=0.411			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=60000		;@ static load and 1.316 NF SR
	bump_rate=4200		;0.7	1944
	rebound_rate=4600	;0.7	6531
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	x=1
	y=0
	z=-1.26
	restlen=0.370			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=60000		;@ static load and 1.502 NF SR
	bump_rate=4600		;0.75	1852
	rebound_rate=4200	;0.8	5191
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.554	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.77
	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.77
	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.77
}
susp3~susp_rear
{
	x=-0.77
}

;----------------------tyres----------------------

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=1300
	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=1300
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.11
	optimal_slipangle=0.145
}

skidding_default
{
	long_start=0.1
	long_max=1.0
	long_start_n=0.1
	long_max_n=1.0
	lat_start=0.1
	lat_max=1.0
}

;----------------------wheels----------------------

wheel_front
{
	y=0
	z=0.013
	steering=1
	powered=1
	lock=58
	mass=35
	inertia=1.4
	radius=0.33
        width=0.225		
	rolling_coeff=0.0180
	max_braking=2000 ;1600
	braking_factor=1
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	x=0
	y=0
	z=-0.2
	steering=0
	powered=0
	power_gearing=0.33	;67% rear drive, no diff, equal drive :eek:
	mass=35
	inertia=1.35
	radius=0.33
        width=0.225		;225/40 ZR18
	rolling_coeff=0.0180
	max_braking=1400
	braking_factor=1
	max_handbrake_torque=18400
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}

wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0
	camber=0.007	;-0.6
	model
	{
		file=left.dof
	}
	model_brake
	{
		file=f.dof
	}
}

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

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

wheel3~wheel_rear
{
	x=-3
	y=0
	toe=0.21	;toe in, goes to out under bump like M3 Z axle
	camber=-0.588
	model
	{
		file=right.dof
	}
	model_brake
	{
		file=.dof
	}
}

;	------------------ Artyfishul Intellygents -----------------
     
ai
{
	grip_factor=1.1
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
camera0
{
   name=Inside
   fov=90
   model=1
   wheels=0
   view=1

   offset
   {
       x=0.38
    y=-0.46
    z=0.04
   }
   angle
   {
      x=7
      y=180
      z=0
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    
       x=0.38
    y=0.46
    z=0.04
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
     
       x=0.38
    y=0.46
    z=0.04
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
    
       x=-0.38
    y=0.48
    z=0.04
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow

  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}

	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  offset
  {
    x=0.0
    y=1.3
    z=-3.5
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.65
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
  skid
  {
    volume=0.8
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=v8/horn.wav
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=r4tdipumporpd/idle.wav
      min=1
      max=2300
      attack=1200
      decay=1000
      natural=2300
      volume=0.21
    }
    smp1~audio.acc_all
    {
      sample=r4tdipumporpd/low.wav
      min=1000
      max=4600
      attack=1000
      decay=1000
      natural=11000
      volume=0.15
    }
    smp2~audio.acc_all
    {
      sample=r4tdipumporpd/mid.wav
      min=2000
      max=3000
      attack=1000
      decay=1000
      natural=21000
    }
    smp3~audio.acc_all
    {
      sample=r4tdipumporpd/hi.wav
      min=3000
      max=7700
      attack=1000
      decay=1000
      natural=32000
    }
    smp4~audio.acc_turbo
    {
     sample=r4tdipumporpd/turbo.wav
     min=1500
     max=5800
     natural=1800
     volume=0.2
    }
  } 
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=r4tdipumporpd/idle.wav
      min=1
      max=2300
      attack=1200
      decay=1000
      natural=2300
      volume=0.21
    }
    smp1~audio.acc_all
    {
      sample=r4tdipumporpd/low.wav
      min=1000
      max=4600
      attack=1000
      decay=1000
      natural=11000
      volume=0.15
    }
    smp2~audio.acc_all
    {
      sample=r4tdipumporpd/mid.wav
      min=2000
      max=3000
      attack=1000
      decay=1000
      natural=21000
    }
    smp3~audio.acc_all
    {
      sample=r4tdipumporpd/hi.wav
      min=3000
      max=7700
      attack=1000
      decay=1000
      natural=32000
    }
    smp4~audio.acc_turbo
    {
     sample=r4tdipumporpd/turbo.wav
     min=1500
     max=5800
     natural=1800
     volume=0.2
    }
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=r4tdipumporpd/idlein.wav
      min=1
      max=2300
      attack=1200
      decay=1000
      natural=2300
      volume=0.21
    }
    smp1~audio.acc_all
    {
      sample=r4tdipumporpd/lowin.wav
      min=1000
      max=4600
      attack=1000
      decay=1000
      natural=11000
      volume=0.15
    }
    smp2~audio.acc_all
    {
      sample=r4tdipumporpd/miin.wav
      min=2000
      max=3000
      attack=1000
      decay=1000
      natural=21000
    }
    smp3~audio.acc_all
    {
      sample=r4tdipumporpd/hiin.wav
      min=3000
      max=7700
      attack=1000
      decay=1000
      natural=32000
    }
    smp4~audio.acc_turbo
    {
     sample=r4tdipumporpd/turboin.wav
     min=1500
     max=5800
     natural=1800
     volume=0.2
    }
  }
decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=r4tdipumporpd/idlein.wav
      min=1
      max=2300
      attack=1200
      decay=1000
      natural=2300
      volume=0.21
    }
    smp1~audio.acc_all
    {
      sample=r4tdipumporpd/lowin.wav
      min=1000
      max=4600
      attack=1000
      decay=1000
      natural=11000
      volume=0.15
    }
    smp2~audio.acc_all
    {
      sample=r4tdipumporpd/miin.wav
      min=2000
      max=3000
      attack=1000
      decay=1000
      natural=21000
    }
    smp3~audio.acc_all
    {
      sample=r4tdipumporpd/hiin.wav
      min=3000
      max=7700
      attack=1000
      decay=1000
      natural=32000
    }
    smp4~audio.acc_turbo
    {
     sample=r4tdipumporpd/turboin.wav
     min=1500
     max=5800
     natural=1800
     volume=0.2
    }
  }
  gearwhine
  {
    smp0
    {
      sample=v8/tw-extonhigh.wav
      volume=0.1
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0
    {
      sample=v8/wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
    }
  }
}

