car
{
   name=VW Golf Mk2 TDi Intercooler
   year=1987
   credits=by Siemionek, Edit By SHM
   comments=1.6 TDi Intercooler (VW Passat B3 Engine) 
   id=golf_mk2
   version=053b
   wheels=4
   skid
   {
      sample=skid.wav
   }
   shadow
   {
      texture=shadow.tga
      width=1.9
      length=3.813
      offset_z=0.06
   }
   cg
   {
      x=0
      y=-0.05
      z=0
   }
}
body
{
   mass=900
   inertia
   {
      x=3000
      y=3290
      z=510
   }
   x=0
   y=0
   z=0
   width=1.708
   height=1.35
   length=3.813
   manual_box=0
   model
   {
      file=body.dof
   }
   model_braking_l
   {
      file=stop.dof
   }
   model_incar
   {
      file=body.dof
   }
   model_light_l
   {
      file=lights1.dof
   }
}

steer
{
  x=0.32
  y=0.2
  z=0.16
  radius=15
  xa=20
  lock=1141.2
  linearity=1
  model
  {
    file=swheel.dof
  }
}
engine
{
   mass=100
   idle_rpm=850
   max_rpm=5000 
   max_torque=285
   curve_torque=torque.crv
   autoclutch_rpm=1200
   starter=1
   starter_torque=65
   start_stalled=1
   stall_rpm=500
   start_rpm=850
   shifting
   {
      automatic=0
      shift_up_rpm=4500
      shift_down_rpm=1100
       time_to_declutch=80
      time_to_clutch=80
      time_in_neutral=200
      time_to_declutch_down=170
      time_to_clutch_down=80
      time_in_neutral_down=200
   }
   inertia
   {
      engine=0.7
   }
   braking_coeff=2
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-3.44
    inertia=0.163
  }
  gear1
  {
    ratio=3.778
    inertia=0.121
  }
  gear2
  {
    ratio=2.176
    inertia=0.072
  }
  gear3
  {
    ratio=1.360
    inertia=0.048
  }
  gear4
  {
    ratio=0.903
    inertia=0.035
  }
  gear5
  {
    ratio=0.686
    inertia=0.029
  }
  gear6
  {
    ratio=0.561
    inertia=0.016
  }

}
clutch
{
   max_torque=350
}
handbrakes
{
   wheels=23
}
differential
{
   type=0
   ratio=3.94
   inertia=0.06
   output0=0
   output1=1
}
aero
{
   body
   {
      center=0 0 0
      cx=0.34
      area=1.91
   }
   wings=0
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=4000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=4000
   }
}
susp_front
{
   y=0
   z=0.89
   anti_pitch=0.1
   restlen=0.36
   minlen=0.25
   maxlen=0.45
   k=60000
   bump_rate=6600
   rebound_rate=6100
   bump_function=0
   rebound_function=0
   roll_center
   {
      x=0
      y=-0.7
      z=0
   }
}
susp_rear
{
   y=0
   z=-1.462
   anti_pitch=0.15
   restlen=0.36
   minlen=0.25
   maxlen=0.45
   k=44000
   bump_rate=6500
   rebound_rate=6000
   bump_function=0
   rebound_function=0
   roll_center
   {
      x=0
      y=-0.6
      z=0
   }
}
susp0~susp_front
{
   x=0.684
}
susp1~susp_front
{
   x=-0.684
}
susp2~susp_rear
{
   x=0.684
}
susp3~susp_rear
{
   x=-0.684
}
tire_model
{
   relaxation_length_lat=0.91
   relaxation_length_long=.091
   damping_speed=0.15
   damping_coefficient_lat=0.75
   damping_coefficient_long=1.5
}
pacejka
{
; Lateral force
a0=1.1
a1=-46
a2=1345
a3=1495
a4=11
a5=0.013
a6=-0.14
a7=0.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-11
a112=-0.021
a12=0.48
a13=10.2
a13=-2.4
; Longitudinal force
b0=1.35326

b1=-90.00000
b2=1345.00000
b3=23.30000
b4=400.00000
b5=0.00000
b6=0.00680
b7=0.05500
b8=-0.02400
b9=0
b10=0
b11=0
b12=0
; Aligning moment
c0=2.10000
c1=-3.90000
c2=-3.90000
c3=-1.26000
c4=-8.20000
c5=0.02500
c6=0.00000
c7=0.04400
c8=-0.58000
c9=0.18000
c10=0.04300
c11=0.04800
c12=-0.00350
c13=-0.18000
c14=0.14000
c15=-1.02900
c16=0.27000
c17=-1.10000
optimal_slipratio=0.14
optimal_slipangle=0.28
}
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
}
wheel_front
{
   y=0
   z=0
   max_braking=1100
   braking_factor=1
   steering=1
   lock=60 
   ackerman=1.17
   mass=16
   inertia=1
   radius=0.26
   width=0.157		
   tire_rate=240000
   friction_road=1.7
   slices=15
   pacejka~pacejka
   {
   }
}
wheel_rear
{
   y=0
   z=0
   max_braking=450
   braking_factor=1
   steering=0
   mass=16
   inertia=1
   radius=0.26
   width=0.157	
   max_handbrake_torque=2500
   tire_rate=240000
   friction_road=1.7
   slices=15
   pacejka~pacejka
   {
   }
}
wheel0~wheel_front
{
   x=0
   y=0
   z=0
   camber=-0.5
   toe=-0.16
   model
   {
      file=left.dof
   }
}
wheel1~wheel_front
{
   x=0
   y=0
   z=0
   camber=-0.5
   toe=0.16
   model
   {

      file=right.dof
   }
}
wheel2~wheel_rear
{
   x=0
   y=0
   z=0
   camber=-1.667
   toe=-0.4
   model
   {
      file=left.dof
   }
}
wheel3~wheel_rear
{
   x=0
   y=0
   z=0
   camber=-1.667


   toe=0.4
   model
   {
      file=right.dof
   }
}
camera0
{
  name=Driver
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.48
    z=-0.4
  }
  offset_to
  {

    x=0
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.48
    z=-0.4
  }
  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=0
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.48
    z=-0.4
  }
  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, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0
    y=0.59
    z=-0.0268
  }
  offset_to
  {
    x=-1

    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.3
    z=-4.8
  }
  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=-4.5
  }
  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=0.2
		y=-0.2
		z=-2.6
	}

	angle
	{
		x=-1.361085
		y=150
		z=10
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.5
		z=0.7
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
 	name=External
 	fov=70
 	model=0
 	view=0
 	wheels=0
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0.1
  		y=-0.3
  		z=-3.3
 	}
 	angle
 	{
  		x=0
  		y=-20
  	      z=30
 	}
}

audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  acc_turbo
  {
   attack=2000
   decay=2000
  }
  accelerate_out
  {
    volume=2.0
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=800
      attack=1000
      decay=1000
      natural=1500
    }
    smp1~audio.acc_all
    {
      sample=low.wav
      min=1000
      max=2000
      attack=1000
      decay=1000
      natural=10000
    }
    smp2~audio.acc_all
    {
      sample=mid.wav
      min=2000
      max=3000
      attack=1000
      decay=1000
      natural=20000
    }
    smp3~audio.acc_all
    {
      sample=hi.wav
      min=3000
      max=5000
      attack=1000
      decay=1000
      natural=30000
    }
    smp4~audio.acc_turbo
    {
    sample=turbo.wav
    min=2000
    max=7000
    natural=6000
    attack=1500
    decay=1500
    }
  }
  gearwhine
  {
    volume=0.5
    pitch_scale=0.001
    pitch_offset=0
    smp0~audio.acc_all
    {
      sample=gearwhine.wav
      min=0
      max=10000
      natural=7000
    }
  }
  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
    }
  


}
