car
{
	name=Golf III GT
	year=1998
	credits=Converted by Filip Z M3, Model by Turn 10 Studio
  	comments=Volkswagen Golf III GT 1.9 TDi 110KM
  	wheels=4
  	id=diesel
  	version=090b
  	shadow
  	{
    		texture=shadow.tga
    		width=2.4
    		length=5.3
    		offset_z=-0.06
  	}
  	cg
  	{
    		x=0
    		y=-0.1835
    		z=0.1768
  	}
  	ff_factor=0.29
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=0.90
    ; 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=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
  light2
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=35.0
    ; Aspect (horizontal)
    aspect=1.8
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=buda_gti.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=front_bumper.dof
		}
		model1
		{
		file=capot.dof
		}
		model2
		{
		file=komora.dof
		}
		model3
		{
		file=escape.dof
		}
		model4
		{
		file=mala.dof
		}
		model5
		{
		file=porta_condutor.dof
		}
		model6
		{
		file=porta_passageiro.dof
		}
		model7
		{
		file=rear_bumper.dof
		}
		model8
		{
		file=sun_roof.dof
		}
		model9
		{
		file=motor.dof
		}
		model10
		{
		file=
		}
		model11
		{
		file=
		}
		model12
		{
		file=
		}
		model13
		{
		file=
		}
		model14
		{
		file=
		}
                model15
		{
		file=
     		}
                model16
		{
		file=
		}
		model17
		{
		file=
		}
	}
}
body
{
	
  	mass=1435
  	inertia
  	{
    x=3200 
    y=4210 
    z=625
  	}
  	model
  	{
    		file=buda_gti.dof
  	}
  	model_incar
  	{
    		file=buda_gti.dof
  	}
         model_collide
        {
         file=collide.dof
         }
 	model_light_l
  	{
    		file=lampsy.dof
  	}
        model_lightroad_l
        {
            file=lampsyin.dof
        }
        model_braking_l
        {
        file=brk.dof
        } 
  	model_reverse_l
  	{
    		file=rev.dof
  	}
  	width=1.645
  	height=1.190
  	length=4.325
  	manual_box=1
}
steer
{
        x=0.3238
  	y=0.0802
  	z=0.3925
  	radius=10
  	xa=16
  	lock=900
  	linearity=1
  	model
  	{
    		file=kiera.dof
  	}
}
engine
{
	size=0
  	mass=0
  	stall_rpm=450
  	start_rpm=1350
  	idle_rpm=750
  	autoclutch_rpm=2500
  	max_rpm=5000

  	curve_torque=torque.crv
        ;10% loss
  	max_torque=235
  	idle_method=1
  	starter=1
  	starter_torque=95
  	start_stalled=1
    enable_stall=1

  jitter
  {
    amplitude=0.5
    time_min=550
    time_var=10
    frequency_min=10
    frequency_var=1
  }
  shifting
  {
    automatic=0
    shift_up_rpm=8100
    shift_down_rpm=5000
    time_to_declutch=50
    time_in_neutral=250
    time_to_clutch=10
    time_to_declutch_down=50
    time_in_neutral_down=250
    time_to_clutch_down=200
  }

 inertia
  {
    engine=0.25
    final_drive=0.1
  }
  braking_coeff=2.5
}
clutch
{
  max_torque=430
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.5
    inertia=0.13
  }
  gear1
  {
    ratio=3.7
    inertia=0.13
  }
  gear2
  {
    ratio=1.98
    inertia=0.09
  }
  gear3
  {
    ratio=1.33
    inertia=0.07
  }
  gear4
  {
    ratio=0.97
    inertia=0.05
  }
  gear5
  {
    ratio=0.74
    inertia=0.03
  }
}
clutch
{
	max_torque=250
}
differential
{
  	type=1
  	ratio=3.83
  	inertia=0.1
  	locking_coeff=25
  	output0=2
  	output1=3
}

aero
{
  body
  {
    center=0 0 0
    cx=0.30	
    area=2.26
  }
  wings=1
  wing0
  {
    name=overall body lift	; 13kg front, 19kg rear at 200kmh
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}

antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=22500
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=16100
   }
}
susp_front                    
{
  y=-0.12
  z=1.1696
  restlen=0.342		
  minlen=0.12
  maxlen=0.38
  k=55800
  bump_rate=6640
  bump_function=0
  rebound_rate=6640
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=135000
  bumpstop_damping=5600
  reboundstop_len=0.01
  reboundstop_damping=5500
  anti_pitch=0.09
  roll_center
  {
    x=0
    y=-0.56	
    z=0
  }
}
susp_rear
{
  y=-0.10
  z=-1.2344
  restlen=0.332		
  minlen=0.1
  maxlen=0.36
  k=57200
  bump_rate=5890
  bump_function=0
  rebound_rate=5520
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=10000
  bumpstop_damping=5500
  reboundstop_len=0.01
  reboundstop_damping=5500
  anti_pitch=0.14
  roll_center
  {
    x=0
    y=-0.54	
    z=0
  }
}
susp0~susp_front
  {
    x=0.71
    toe_change_per_m=0.029			
    caster_offset=-0.017		
  }
susp1~susp_front
  {
    x=-0.71
    toe_change_per_m=-0.029  	
    camber_change_steering=-0.1062	
    caster_offset=-0.017		
  }
susp2~susp_rear
  {
    x=0.71
    toe_change_per_m=0.015		
  }
susp3~susp_rear
  {
    x=-0.71
    toe_change_per_m=-0.015		
  }
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=1400
    a3=1850
    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=1540
    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
}
pacejka_rear
{
    a0=1.2
    a1=-25
    a2=1450
    a3=2400
    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
}
wheel_front
{
  y=0
  z=0
  steering=1
  lock=63
  ackerman=1.24
  mass=30 
  inertia=1.5
  width=0.255
  radius=0.28
  powered=1
  rolling_coeff=0.0180
  friction_road=1
  max_braking=2300
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=30
  inertia=1.6
  width=0.255
  radius=0.28
  powered=0
  rolling_coeff=0.0205
  max_braking=900
  max_handbrake_torque=8070
  braking_factor=0.98
  tire_rate=265000
  pacejka~pacejka_rear
 {
a0=1.25
  a1=-30
  a2=1450
  a3=2400
  b0=1.35
  b1=-50
  b2=1170
  optimal_slipratio=0.12
  optimal_slipangle=0.159
}
}
wheel0~wheel_front
{
  x=0
  toe=-0.1
  camber=0
  model
  {
    file=lewaa.dof
  }
  model_brake
  {
    file=pinca_esquerda.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0.1
  camber=0
  model
  {
    file=prawaa.dof
  }
  model_brake
  {
    file=pinca_direita.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.05
  camber=0
  model
  {
    file=lewaa.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=pinca_esquerda.dof
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.05
  camber=0
  model
  {
    file=prawaa.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=pinca_direita.dof
  }
}
camera0
{
  name=Driver
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3276
    y=0.35
    z=-0.35
  }
  offset_to
  {
    x=0.43
    y=-3.10
    z=20
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3276
    y=0.35
    z=-0.35
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3276
    y=0.35
    z=-0.35
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3276
    y=0.35
    z=-0.35
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  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=-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=-5
  }
  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
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.8
    		z=-0.2
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		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
    }
  }
}