car
{
   name=VW Golf Mk2 5 Doors
   year=1984-1992
   credits=Converted vy Fiecu
   comments=
   id=mk25d
   version=090b
   wheels=4
   skid
   {
      sample=skid.wav
   }
   cg
   {
      x=0
      y=-0.05
      z=0
   }
}

graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=body.dof
    }
  }

	generic
	{
		model0
		{
		file=bonnet.dof
		}
		model1
		{
		file=boot.dof
		}
		model2
		{
		file=doors.dof
		}
		model3
		{
		file=engine.dof
		}
		model4
		{
		file=others.dof
		}
	 	model5
		{
		file=ileft.dof
		}
	 	model6
		{
		file=iright.dof
		}
	 	model7
		{
		file=inter.dof
		}
	 	model8
		{
		file=hokey.dof
		}
	 	model9
		{
		file=doorfl.dof
		}
	 	model10
		{
		file=doorfr.dof
		}
	}
}
body
{
  	mass=1490
        restitution_coeff=0.24
  	inertia
  	{
    		x=2300
    		y=1690
    		z=2200
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		;file=body.dof
  	}
 	model_light_l
  	{
    		file=lights.dof
  	}
	model_lightroad_l
  	{
    		file=lights.dof
  	}
  	model_braking_l
  	{
    		file=brakes.dof
  	}
  	model_reverse_l
  	{
    		file=re.dof
  	}
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5.5
    ; Distance to car
    z=2.5
    ; 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
    ; Distance to car
    z=2.5
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}

steer
{
  x=0.375
  y=0.45
  z=0.42
  radius=15
  xa=20
  lock=1141.2
  linearity=1
  model
  {
    file=swheel.dof
  }
}
engine
{
	mass=150
	idle_rpm=875 ; Typical idle rpm value
	max_rpm=6950 ; Stock cutoff 6750, tuned 6950
	stall_rpm=500
	start_rpm=850
	start_stalled=0
        reaction=0.50
        starter=0
	starter_torque=55
	autoclutch_rpm=0

	curve_torque=torque.crv
	max_torque=0.93		; Torque loss at drivetrain 7%
	shifting
	{
		automatic=0
		shift_up_rpm=6200
		shift_down_rpm=3200
		time_to_declutch=45
		time_to_clutch=45
		time_in_neutral=100
		time_to_declutch_down=100
		time_to_clutch_down=100
		time_in_neutral_down=100
	}
	inertia
	{
		engine=0.26 ; Typical value in V6
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	;sample=
	;sample_rpm=
}

gearbox
{
  gears=6
  gear0
  {
    ratio=-3.17
    inertia=0.13
  }
  gear1
  {
    ratio=3.46
    inertia=0.13
  }
  gear2
  {
    ratio=1.94
    inertia=0.09
  }
  gear3
  {
    ratio=1.29
    inertia=0.07
  }
  gear4
  {
    ratio=0.97
    inertia=0.05
  }
  gear5
  {
    ratio=0.81
    inertia=0.03
  }
}

clutch
{
   max_torque=355
}
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.115
   z=1.365
   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.115
   z=-1.49
   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.82
}
susp1~susp_front
{
   x=-0.82
}
susp2~susp_rear
{
   x=0.82
}
susp3~susp_rear
{
   x=-0.82
}
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=1080
   braking_factor=1
   steering=1
   lock=60 
   ackerman=1.17
   mass=16
   inertia=1
   radius=0.33
   width=0.157		
   tire_rate=240000
   friction_road=1.7
   slices=15
   pacejka~pacejka
   {
   }
}
wheel_rear
{
   y=0
   z=0
   max_braking=300
   braking_factor=1
   steering=0
   mass=16
   inertia=1
   radius=0.33
   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
   toe=-0.16
   model
   {
      file=left.dof
   }
}
wheel1~wheel_front
{
   x=0
   y=0
   z=0
   camber=0
   toe=0.16
   model
   {

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


   toe=0.4
   model
   {
      file=right.dof
   }
}
camera0
{
  name=Driver
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.38
    y=0.72
    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.38
    y=0.72
    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.38
    y=0.72
    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=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=1
			sample=1900.wav
      			min=0
      			max=2500
      			natural=0900
    		}
		smp1~audio.acc_all
    		{
      			volume=1
     			sample=3000.wav
      			min=2500
      			max=3500
      			natural=2000
    		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=4000.wav
      			min=3500
      			max=4500
      			natural=3000
    		}
		smp3~audio.acc_all
    		{
			volume=1.1
     			sample=5000.wav
      			min=4500
      			max=5500
      			natural=4000
    		}
		smp4~audio.acc_all
    		{

			volume=1.15
     			sample=6100.wav
      			min=5500
      			max=6500
      			natural=5100
    		}
		smp5~audio.acc_all
    		{

			volume=1.2
     			sample=6900.wav
      			min=6500
      			max=12000
      			natural=5900
    		}
  	}
  	decelerate_out
  	{
   		volume=0.6
		smp0~audio.acc_all
    		{
      			sample=1900.wav
      			min=0
      			max=2500
      			natural=0900
    		}
		smp1~audio.acc_all
    		{
     			sample=3000.wav
      			min=2500
      			max=3500
      			natural=2000
    		}
		smp2~audio.acc_all
    		{
     			sample=4000.wav
      			min=3500
      			max=4500
      			natural=3000
    		}
		smp3~audio.acc_all
    		{
     			sample=5000.wav
      			min=4500
      			max=5500
      			natural=4000
    		}
		smp4~audio.acc_all
    		{
     			sample=6100.wav
      			min=5500
      			max=6500
      			natural=5100
    		}
		smp5~audio.acc_all
    		{
     			sample=6900.wav
      			min=6500
      			max=12000
      			natural=5900
    		}
	}
}
