car
{
  name=Audi 100 c4
  year=1994
  credits=Converted by orges from Gta San Andreas.
  comments=manual gearbox
  id=audi_100_c4
  version=0655
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=0.0
    length=0.0
  }
  cg
  {
    x=0
    y=-0.198
    z=0.02
  }
  ff_factor=0.20
}

graphics 
{
  shadow 
  {
    texture=
    model
    {
      file=
    }
  }

	generic
	{
		model0
		{
		file=
		}
		model1
		{
		file=
		}
		model2
		{
		file=
		}
		model3
		{
		file=
		}
    		model4
    		{
      		file=
    		}
    		model5
    		{
      		file=
    		}
    		model6
    		{
      		file=
    		}
    		model7
    		{
      		file=
    		}
    		model8
    		{
      		file=
    		}
    		model9
    		{
      		file=
    		}
    		model10
    		{
      		file=
    		}
    		model11
    		{
      		file=
    		}
    		model12
    		{
      		file=
    		}
    		model13
    		{
      		file=
    		}
    		model14
    		{
      		;file=
    		}
    		model15
    		{
      		;file=
    		}
    		model16
    		{
      		;file=
    		}

	}
}

body
{
  mass=2100	
  restitution_coeff=0.25
  inertia
  {
    x=2100
    y=2140
    z=440
  }
  x=0
  y=0
  z=0
  width=1.7
  height=1.0
  length=4.4
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=audi.dof
  }
  model_incar
  {
    file=audi.dof
  }
  model_light_l
  {
    file=
  }
  model_braking_l
  {
    file=
  }
  model_reverse_r
  {
    file=
  }
  model_lightroad_l
  {
  file=
  }
  width=1.79
  height=1.2
  length=4.92
  manual_box=0
}
steer
{
  x=0.360
  y=0.0500
  z=0.50
  xa=20
  lock=900
  linearity=0.2
  model
  {
     file=stw.dof
  }
}
engine
{
	mass=0
	idle_rpm=875
	max_rpm=7000
	stall_rpm=500
	start_rpm=600
	start_stalled=1
        reaction=0.45
        starter=1
	starter_torque=55
	autoclutch_rpm=900
	curve_torque=torque.crv
	max_torque=0.99
	shifting
	{
		automatic=0
		shift_up_rpm=6500
		shift_down_rpm=3100
		time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
                cut_throttle=1
	}
	inertia
	{
		engine=0.27
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0
	;sample=
	;sample_rpm=
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
	gears=6

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

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

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

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

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

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

clutch
{
	max_torque=550
}
;----------------------------------------------------------------------
;Handbrakes:

handbrakes
{
	wheels=23
}
;----------------------------------------------------------------------
;Differential:

differential
{
  	type=1
  	ratio=3.9
  	inertia=0.1
  	output0=0
  	output1=1
}
;----------------------------------------------------------------------
;Aero:

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.40
    		area=2.06
  	}
  	wings=2
  	wing0
  	{
    		name=overall
    		span=1.0
    		cord=0.1
    		coeff_drag=0.0
   		coeff_down=0.4
    		center=0 0 0.0
    		angle=0
    		angle_offset=1
  	}
  	wing1
  	{
    		name=rear wing
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
		;400N @ 248km/h
   		coeff_down=7.89
    		center=0.000 0.000 -1.176
    		angle=0
    		angle_offset=1
  	}
}

antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=22000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=8000
  }
}
susp_front
{
  y=-0.19
  z=1.450
 restlen=0.43
  minlen=0.1
  maxlen=0.45
  k=30000
  bump_rate=2500
  rebound_rate=3500
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp_rear
{
  y=-0.35
  z=-1.4
 restlen=0.4
  minlen=0.1
  maxlen=0.45
  k=22500
  bump_rate=2500
  rebound_rate=3000
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.45
    z=0
  }
}
susp0~susp_front
{
  x=0.7
}
susp1~susp_front
{
  x=-0.7	;723
}
susp2~susp_rear
{
  x=0.7
}
susp3~susp_rear
{
  x=-0.7	;7145
}

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=1650
	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
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=0
  camber=0
  lock=45
  ackerman=1.31
  mass=25
  inertia=1.4
  radius=0.4239375
  rolling_coeff=0.018
  max_braking=2500
  braking_factor=1
  tire_rate=250000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=1
  camber=0
  mass=25
  inertia=1.35
  radius=0.4239375
  rolling_coeff=0.018
  max_braking=1250
  braking_factor=1
  max_handbrake_torque=3000
  tire_rate=230000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=-.5
  toe=-0.1
  model
  {
    file=rear-right.dof
    
  }
  model_brake
  {
   ; file=
  }
}
wheel1~wheel_front
{
  x=0
  camber=-.5
  toe=-0.1
  model
  {
    file=rear-left.dof
     
  }
  model_brake
  {
   ; file=
  }
}
wheel2~wheel_rear
{
  x=0
  camber=-0.5
  toe=-0.1
  model
  {
    file=rear-right.dof
    
  }
  model_brake
  {
   ; file=
  }
}
wheel3~wheel_rear
{
  x=0
  camber=-0.5
  toe=-0.1
  model
  {
    file=rear-left.dof
    ;file=
  }
  model_brake
  {
   ; file=
  }
}
camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.37
    y=0.35
    z=-0.15
  }
  offset_to
  {
    x=0.34
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Left
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.37
    y=0.35
    z=-0.15
  }
  offset_to
  {
    x=15.4
    y=0
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.37
    y=0.35
    z=-0.15
  }
  offset_to
  {
    x=-12.6
    y=0.
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.1
    y=0.4
    z=-0.3
  }
  offset_to
  {
    x=0
    y=0.8
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior free
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-4
  }
  angle
  {
    x=10
    y=120
    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.5
    z=-5
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=Passenger seat
  fov=70
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.3
    y=-0.3
    z=-0.4
  }
  angle
  {
    x=10
    y=170
    z=0
  }
}
camera8
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=1.4
    y=0.06
    z=-0.6
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  view=0
  wheels=2
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.5
    z=0.5
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

;audio-----------------------------------------------

audio
{
  ; All car audio
  skid
  {
    sample=skid.wav
  }
  ; Engine has 3 sets of sounds: accelerate, decelerate and inboard
  acc_all
  {
    ; Attack is the offset of the smp<x>.min value at which
    ; the sample is mixed in (value is in rpm) 
    attack=500
    ; Decay is the offset of the smp<x>.max value at which
    ; the sample is mixed out (value is in rpm) 
    decay=500
  }
  accelerate_out
  {
    ; Master volume for this set
    volume=0.8
    volume_offset=0.6
    volume_scale=0.0001
    ; Acceleration; outside of the car
    smp0~audio.acc_all
    {
      ; All engine samples depend on engine RPM
      sample=42v8_s1.wav
      min=0
      max=2000
      ; RPM of used sample
      natural=4500
      decay=1000
      maxvol=1
      basevol=0.8
    }
    smp1~audio.acc_all
    {
      ; All engine samples depend on engine RPM
      sample=42v8_s2.wav
      min=2600
      max=20000
      ; RPM of used sample
      natural=5000
	attack=600
	decay=2000
      maxvol=0.8
      basevol=0.6
    }
    smp2~audio.acc_all
    {
      ; All engine samples depend on engine RPM
      sample=42v8_s3.wav
      min=4600
      max=6250
      ; RPM of used sample
      natural=5000
	attack=2000
	decay=2000
	basevol=0.2
	maxvol=0.4
    }
  }
  decelerate_out
  {
    ; Master volume for this set
    volume=0.7
    volume_offset=0.6
    volume_scale=0.0001
    ; Acceleration; outside of the car
    smp0~audio.acc_all
    {
      ; All engine samples depend on engine RPM
      sample=42v8_sd.wav
      min=0
      max=20000
      ; RPM of used sample
      natural=5200
      maxvol=0.8
      basevol=0.6
    }
  }
  gearwhine
  {
    ; Master volume for this set
    volume=2
	; Pitch input is shaft rotational velocity in radians/sec
	pitch_scale=0.002
	pitch_offset=0
    ; Acceleration; outside of the car
    smp0~audio.acc_all
    {
      ; All engine samples depend on engine RPM
      sample=42v8_sw.wav
      min=0
      max=200
	attack=100
	decay=1000
      ; RPM of used sample
      natural=3000
    }
  }
  wind
  {
    volume=0
    ; Volume determination
    volume_scale=0.1
    volume_offset=0
    ; Pitch determination
    pitch_scale=0.2
    pitch_offset=0.5
    smp0~audio.acc_all
    {
      sample=wind.wav
      ; Speeds in m/s
      min=0
      max=200
      natural=30
    }
  }
}
