

car
{
  name=Audi A4 B5 2.6 (Avant)
  year=1997(0-100:9s.;vmax:218 km/h)
  credits=Converted By Fabikan75;Model By Mariuszgtv
  comments=Poj:2598cc;Moc:150KM(110kW) przy 5500 obr.\min.;Mmo:225Nm przy 3500 obr.\min.
  wheels=4
  id=avantv6
  version=065
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=
    width=0
    length=0
  }
  cg
  {
    x=0
    y=-0.14
    z=0.20
  }
  ff_factor=0.45
}
graphics 
{
  shadow 
  {
    texture=czarne.tga
    model
    {
      file=body.dof
    }
  }

	generic
	{
		model0
		{
		file=body.dof
		}
		model1
		{
		file=body2.dof
		}
		model2
		{
		file=.dof
		}
		model3
		{
		file=.dof
		}
		model4
		{
		file=.dof
		}
	}
}
}
body
{
  mass=1300		
  inertia
  {
    x=2450
    y=2500
    z=470
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=
  }
 model_light_l
  {
    file=lon.dof
  }
  model_braking_l
  {
    file=stop.dof
  }
  model_reverse_l
  {
    file=re.dof
  }
  width=1.733
  height=1.417
  length=4.479
  manual_box=1
    }  
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=1.3
    ; 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=1.3
    ; Distance to car
    z=1.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
  x=0.35
  y=0.25
  z=0.35
  radius=10
  xa=20
  lock=1458
  linearity=1
  model
  {
     file=steer.dof
  }
}
engine
{
  size=0
  	mass=0
  	stall_rpm=450
  	start_rpm=1000
  	idle_rpm=750
  	autoclutch_rpm=2500
  	max_rpm=6500

  	curve_torque=torque.crv
  	max_torque=225
        torque_reaction=1
  	idle_method=1
  	starter=1
  	starter_torque=95
  	start_stalled=1
    enable_stall=1
  shifting
  {
    automatic=0
    shift_up_rpm=7400
    shift_down_rpm=1000
    time_to_declutch=375
    time_to_clutch=175
    time_in_neutral=50
    time_to_declutch_down=375
    time_to_clutch_down=175
    time_in_neutral_down=50
  }
  inertia
  {
    engine=0.26
    final_drive=0.1
  }
  braking_coeff=1.5
  ;sample=
  ;sample_rpm=
}
gearbox
{
	gears=6

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

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

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

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

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

	gear5
	{
		ratio=1.32
		inertia=0.08
		linearity=1.8
  }
}
clutch
{
  max_torque=400
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.2
  inertia=0.1
  locking_coeff=135
  output0=0
  output1=1
}
aero
{
  body
  {
    center=0 0 0
    cx=0.05
    area=0.05
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5.3
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=38500
  }
}
susp_front
{
  y=-0.07
  z=1.2
  restlen=0.308
  minlen=0.15							
  maxlen=0.45
  k=25000
  bump_rate=1750
  rebound_rate=4250
  bump_function=0
  bump_max=1755
  rebound_function=3
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.35
    z=0
  }
}
susp_rear
{
  y=-0.03
  z=-1.43
  restlen=0.308		
  minlen=0.15										
  maxlen=0.45										
  k=25000		
  bump_rate=2250
  rebound_rate=5000
  bump_function=3
  bump_max=2250
  rebound_function=0
  anti_pitch=0.08
  camber_change_per_m=0.05
  roll_center
  {
    x=0
    y=-0.35
    z=0
  }
}
susp0~susp_front
  {
    x=0.73
    toe_change_per_m=0.029	
    camber_change_steering=0.1062
    caster_offset=-0.017
  }
susp1~susp_front
  {
    x=-0.73
    toe_change_per_m=-0.029
    camber_change_steering=-0.1062
    caster_offset=-0.017
  }
susp2~susp_rear
  {
    x=0.73
    toe_change_per_m=0.019
  }
susp3~susp_rear
  {
    x=-0.73
    toe_change_per_m=-0.019	
  }
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.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
{
  steering=1
  powered=1
  lock=65
  mass=20
  inertia=1.5
  radius=0.38
  rolling_coeff=0.0180
  friction_road=1
  max_braking=1500
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  steering=0
powered=0
  mass=20
  inertia=1.5
  radius=0.38
  rolling_coeff=0.0205
  friction_road=1
  max_braking=550
  max_handbrake_torque=1500
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  a2=1500
  a3=2100
  a4=9.5
  b2=1550
  b4=350  
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.2247
  toe=0.36
  camber=-0.33
  model
  {
    file=fp.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-1.25	;-1.82
  model
  {
    file=fp.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Close Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera1
{
  offset
  {
    x=-0.006250
    y=3.
    z=-7.495010
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=180.000000
  }
  name=High Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera2
{
 offset
 {
  x=0
  y=0.15
  z=2.70000
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Hi-Speed Bumper Cam
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=85
 model=2
 wheels=0
 view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.7
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood Cam
  fov=60
  model=0
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Effect Cam 1
}

camera5
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0.0
  y=-0.25
  z=-5.5
 }
 angle
 {
  x=6.0
  y=30.853992
  z=0.0
 }
 name=Effect Cam 2
 fov=60
 model=0
 wheels=1
 view=1
}
camera6
{
 follow
 {
  pitch=0
  yaw=1
  roll=0
 }
 offset
 {
  x=0
  y=0
  z=-9
 }
 angle
 {
  x=3.861111
  y=33.853992
  z=-14.322908
 }
 fov=80
 model=0
 wheels=1
 view=0
 name=Effect Cam 3
}
camera7
{
 offset
 {
  x=1.150625
  y=0.2
  z=0.350000
 }
 angle
 {
  x=-2.00
  y=-175.472336
  z=-7.017359
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=0
 view=0
 name=Effect Cam 4 - Wheel
}
camera8
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=0.25
  z=-9
 }
 angle
 {
  x=10
  y=150
  z=0
 }
 fov=25
 model=0
 wheels=1
 view=0
 name=Effect Cam 5
}
camera9
{
	name=Driver
	fov=60
	model=0
	wheels=0
	view=1
	name=Inside
	fov=55

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.358
		y=0.5
		z=-0.10
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=1.000000
		y=180.000000
		z=0.000000
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
audio
{
  	skid
  	{
    		sample=skid.wav
		sample2=skid.wav
  	}
  	acc_all
  	{
    		attack=1300
    		decay=1300
  	}
              accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Idle.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1
		}
		smp2~audio.acc_all
		{
			sample=3000.wav
			min=3000
			max=3001
			natural=3000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp4~audio.acc_all
		{
			sample=5000.wav
			min=5000
			max=5001
			natural=5000
			volume=1
			;attack=1300
		}
		smp5~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=6001
			natural=6000
			volume=1
		}
		smp6~audio.acc_all
		{
			sample=7000.wav
			min=7000
			max=7001
			natural=6500
			volume=1
		}
	}
               decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Idle.wav
			min=1000
			max=1001
			natural=800
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=1800
			volume=1
		}
		smp2~audio.acc_all
		{
			sample=3000.wav
			min=3000
			max=3001
			natural=2800
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=3800
			volume=1
		}
		smp4~audio.acc_all
		{
			sample=5000.wav
			min=5000
			max=5001
			natural=4800
			volume=1
			;attack=1300
		}
		smp5~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=6001
			natural=5800
			volume=1
		}
		smp6~audio.acc_all
		{
			sample=7000.wav
			min=7000
			max=7001
			natural=6300
			volume=1
		}
	}
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
    }
  }
}

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=0
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.6 0.06 1.85
	;normal=0 0 1
	normal=-0.05 -0.02 0.6
	z_offset=-3000
	size_factor=2
  }
  flare1
  {
    pos=0.6 0.06 1.85
	normal=0.05 -0.02 0.6
	z_offset=-3000
	size_factor=2
  }
}