car
{
   name=VW Golf VI R32
  year=2010
  credits=Convert by Seby & RaDu
  comments=
   wheels=4
  id=vwgolf6r32
  version=088b
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=5.06
    offset_z=-0.06
  }
 cg
 {
  x=0
  y=-0.15
  z=0.0
 }
  ff_factor=0.45
}
body
{
  mass=1540
  inertia
  {
    x=2300
    y=2400
    z=475
  }
  model
     {
      file=golf6.dof
   }
   model_braking_l
   {
      file=brakes.dof
   }
   model_incar
   {
      file=golf6.dof
   }
   model_light_l
   {
      file=lights.dof
   }
   model_lightroad_l
   {
  file=lightsin.dof
   }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=r.dof
  }
  model_reverse_r
  {
    file=r.dof
}
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.4
  y=0.3
  z=.39
  radius=10
  xa=9.99
  lock=900
  linearity=1 ;0.3
  model
  {
    file=volante.dof
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
engine
{
   mass=60
   idle_rpm=800
   max_rpm=7500 
   max_torque=216
   curve_torque=torque.crv
   autoclutch_rpm=1550
   starter=1
   starter_torque=70
   start_stalled=1
   stall_rpm=550
   start_rpm=980
   shifting
   {
      automatic=0
      shift_up_rpm=6500
      shift_down_rpm=3500
       time_to_declutch=50
      time_to_clutch=50
      time_in_neutral=200
      time_to_declutch_down=150
      time_to_clutch_down=50
      time_in_neutral_down=200
   }
   inertia
   {
      engine=0.3
      final_drive=0.1
   }
   braking_coeff=3
   sample=
   sample_rpm=
   rolling_friction_coeff=1
}
gearbox
{
   gears=7
   gear0
   {
      ratio=-3.938
      inertia=0.1
   }
   gear1
   {
      ratio=4.323
      inertia=0.01
   }
   gear2
   {
      ratio=2.456
      inertia=0.02
   }
   gear3
   {
      ratio=1.659
      inertia=0.03
   }
   gear4
   {
      ratio=1.23
      inertia=0.04
   }
   gear5
   {
      ratio=1
      inertia=0.05
   }
   gear6
   {
      ratio=0.848
      inertia=0.04
   }
}
clutch
{
   max_torque=350
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=3.46
	inertia=0.05
	locking_coeff=50
	output2=2
	output3=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.26
    area=2.0		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=1
    susp_right=0
    k=36600
  }
  arb1
  {
    susp_left=3
    susp_right=2
    k=21800
  }
}
susp_front                    
{
  y=-0.03
  z=1.325
  restlen=0.332		
  minlen=0.17
  maxlen=0.34
  k=45946		
  bump_rate=1300	
  rebound_rate=4950	
  bump_function=0
  bump_max=1300
  rebound_function=0
  anti_pitch=0.09
  camber_change_per_m=0
  roll_center
  {
      x=0
      y=-0.9
      z=0
  }
}
susp_rear
{
  y=-0.03
  z=-1.575
  restlen=0.331		
  minlen=0.125
  maxlen=0.34
  k=47009		
  bump_rate=1800	
  rebound_rate=6650	
  bump_function=0
  bump_max=1800
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0.45	
  roll_center
  {
      x=0
      y=-0.57
      z=0
  }
}
susp0~susp_front
  {
    x=0.9
    toe_change_per_m=0.029		
    camber_change_steering=0.1062	
    caster_offset=-0.017		
    
  }
susp1~susp_front
  {
    x=-0.9
    toe_change_per_m=-0.029		
    camber_change_steering=-0.1062	
    caster_offset=-0.017		
  }
susp2~susp_rear
  {
    x=0.9
    toe_change_per_m=0.019		
  }
susp3~susp_rear
  {
    x=-0.9
    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=1250
    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
{
   y=0
   z=0
   max_braking=5500
   braking_factor=4
   steering=1
   powered=1
   lock=56
   ackerman=1.1
   mass=12.5
   inertia=0.7
   radius=0.4
   width=0.175		
   slices=20
   friction_road=1.7
   tire_rate=290000
   pacejka~pacejka
   {
   }
}
wheel_rear
{
   y=0
   z=0
   max_braking=5000
   braking_factor=4
   steering=1
   powered=1
   lock=0
   ackerman=1.1
   mass=12.5
   inertia=0.7
   radius=0.4
   width=0.175		
   slices=20
   friction_road=1.7
   tire_rate=290000
   pacejka~pacejka
   {
   }
}

  }
}
wheel0~wheel_front
{
   x=0
   y=0
   z=0.05
   camber=-0.18
   toe=0
   model
   {
      file=rodae.dof
   }
   model_brake
   {
      file=
   }
   ackerman=1.1
   mass=13
   max_braking=1150 ;1150
   radius=0.36
   width=0.175
   inertia=0.7
   lock=56
   braking_factor=4
   max_handbrake_torque=0
   tire_rate=290000
   powered=1
   steering=1
}
wheel1~wheel_front
{
   x=0
   y=0
   z=0.05
   camber=-0.18
   toe=0
   model
   {
      file=rodad.dof
   }
   model_brake
   {
      file=
   }
   mass=13
   max_braking=1150 ;1150
   radius=0.36
   width=0.175
   inertia=0.7
   lock=56
   braking_factor=4
   max_handbrake_torque=0
   tire_rate=290000
   powered=1
   steering=1
}
wheel2~wheel_rear
{
   y=0
   z=0.08
   camber=-0.3
   toe=0
   model
   {
      file=rodae.dof
   }
   model_brake
   {
      file=
   }
   mass=13   
   max_braking=370 ;320
   radius=0.36
   width=0.175
   inertia=0.78
   lock=0
   braking_factor=1
   max_handbrake_torque=2500
   tire_rate=290000
   y=0
   z=0
   powered=0
   steering=0
   x=0
}
wheel3~wheel_rear
{
   x=0
   y=0
   z=0.08
   camber=-0.3
   toe=0
   model
   {
      file=rodad.dof
   }
   model_brake
   {
      file=
   }
   mass=13
   max_braking=370 ;320
   radius=0.36
   width=0.175
   inertia=0.78
   lock=0
   braking_factor=1
   max_handbrake_torque=2500
   tire_rate=290000
   y=0
   z=0
   powered=0
   steering=0
}
camera0
{
   offset
   {
      x=-0.006250
      y=-1.252083
      z=-4.795010
   }
   angle
   {
      x=3.000000
      y=180.000000
      z=0.000000
   }
   name=CloseBehind
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
}
camera1
{
  offset
  {
    x=0.059375
    y=-0.700001
    z=-4.715009
  }
  angle
  {
    x=6.666651
    y=-180.729126
    z=0.000000
  }
  name=Side view
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
}
camera2
{
  offset
  {
    x=-0.015626
    y=-0.60
    z=1.3
  }
  angle
  {
    x=2
    y=180
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera3
{
  follow
  {
    pitch=
    yaw=1
    roll=
  }
  offset
  {
    x=-0.2
    y=0.508334
    z=-6.635028
  }
  angle
  {
    x=16.388876
    y=-56.944256
    z=1.302094
  }
  name=Wheels
  fov=40
}
camera4
{
  offset
  {
    x=0.014061
    y=0.493751
    z=-5.585001
  }
  angle
  {
    x=18.055532
    y=728.819153
    z=0.260415
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.198437
    y=0.464583
    z=-6.320009
  }
  angle
  {
    x=9.444325
    y=-268.750336
    z=0.086801
  }
  name=High
  fov=40
}
camera6
{
   follow
   {
      pitch=1
      yaw=1
      roll=0
   }
   offset
   {
      x=0
      y=0.6
      z=-4.5
   }
   angle
   {
      x=10
      y=-360
      z=0
   }
   fov=65
   name=FrontView
}
camera7
{
   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
   }
   fov=60
   name=FrontWheel
}
camera8
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.0
      y=-0.9
      z=0.75
   }
   angle
   {
      x=10
      y=180.0
      z=0.0
   }
   name=BonnetView
   fov=70
}
camera9
{
	name=Dash View - Driver
	fov=65
	model=1
	wheels=0
	view=2
	name=Inside
	fov=60

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.4
		y=0.55
		z=0.01
	}
	offset_to
	{
		x=0
		y=0
		z=6
	}
	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
  }
  accelerate_out
  {
    smp0
    {
      sample=idlei5.wav
      volume=3
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1
    { 
      sample=engine2m.wav 
      volume=1.2
      min=1000
      max=4000
      natural=9000 
      decay=2000
      attack=2000
    }
    smp2
    { 
      sample=engine2.wav 
      volume=1.45
      min=3500
      max=10000
      natural=4100 ;5000 
      attack=1600
    }
    smp3
      {
	   volume=0.25
         sample=Tturbo.wav
         min=3500
         max=7000
         natural=2050
	   attack=1100
          decay=3000
      }
  }  
  decelerate_out
  {
    smp0
    {
      sample=idlei5.wav
      volume=4
      min=300
      max=800
      decay=500
      natural=1800
    }
    smp1
    {
      sample=3000.wav
      volume=0.6
      min=1000
      max=3000
      attack=500
      decay=5000
      natural=4500
    }
    smp2
    {
      sample=decc.wav
      volume=1.3
      min=5000
      max=10000
      attack=5000
      natural=7000
    }
   smp3
      {
	   volume=0.25
         sample=Tturbo.wav
         min=3500
         max=7000
         natural=1750
	   attack=1100
          decay=3000
      }
  }
  accelerate_in
  {
    smp0
    {
      sample=idlein.wav
      volume=3
      min=500
      max=1990
      decay=500
      natural=1500
    }
    smp1
    { 
      sample=2000in.wav 
      volume=1.5
      min=1100
      max=4000
      natural=4600 
      attack=1500
    }
    smp2
    { 
      sample=3000in.wav 
      volume=1.1
      min=1100
      max=10000
      natural=6500 
      attack=500
    }
   smp3
    { 
     sample=engine2.wav 
      volume=1.6
      min=2500
      max=10000
     natural=4100 ;5000 
      attack=1600
    }
     smp4
      {
	   volume=0.066
         sample=Tturbo.wav
         min=3500
         max=7000
         natural=2050
	   attack=1100
          decay=3000
      }
  }  
  decelerate_in
  {
    smp0
    {
      sample=idlein.wav
      volume=4
      min=500
      max=1500
      decay=500
      natural=1500
    }
    smp1
    { 
      sample=2000in.wav 
      volume=1.2
      min=1000
      max=4000
      natural=6300 
      attack=2000
    }
   smp2
    {
      sample=decc.wav
      volume=1
      min=5000
      max=10000
      attack=5000
      natural=7000
    }
     smp4
      {
	   volume=0.066
         sample=Tturbo.wav
         min=3500
         max=7000
         natural=1550
	   attack=1100
          decay=3000
      }
  }  
  gearwhine
  {
    smp0
    {
      sample=tw-extonhigh.wav
      volume=0.25
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
    }
  }
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1.25
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
     }
  }
  accelerate_in
  {
    volume=0.85
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
  }
  decelerate_in
  {
    volume=0.8
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
  }
   wind
   {
      smp0
      {
         volume=0.5
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.2
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}


abs
{
  enable=1
  max_velocity_ratio=2.09 
  min_velocity_ratio=2.08
  min_velocity=2
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}