car
{
   name=VW T2
   year=1971
   credits=Convert by Priban from GTA San Andreas
   comments=
   id=volkswagen_t2
   version=0655
   wheels=4
   shadow
   {
      texture=shadow.tga
      width=1.702
      length=4.191
      offset=0
   }
   cg
   {
      x=0
      y=-0.45
      z=0.5
   }
}
graphics
{
   ; Car models used
   shadow
   {
      model
      {
         ; Projected shadow model
         file=body.dof
         use_shaders=0
      }
   }
}
wipers
{
  ; Windscreen wipers
  count=1
  wiper0
  {
    x=0.23
    y=0.6
    z=0.44
    xa=0
    min_angle=40
    max_angle=-45
    model
    {
      file=
    }
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=1
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
}
ai
{
   ;understeer_correct=20
   ;oversteer_correct=20
   grip_factor=1.5
}
body
{
   mass=1427 ;1027 without wood - with wood 1427
   width=2.34
   height=1.69
   length=4.00
   manual_box=1
   inertia
   {
      x=2700 ;5138.439941
      y=2900 ;6546.540039
      z=575 ;1601.219971
   }
   model
   {
      file=vw2.dof
   }
   model_incar
   {
      file=vw2.dof
   }
   model_light_r
   {
      ;file=
   }
   model_light_l
   {
      file=
   }
   model_braking_l
   {
      file=
   }
   model_reverse_l
   {
    ; Reverse gear indicators
    file=
   }
}
steer
{
   x=0.37
   y=0.41
   z=1.78
   radius=10
   xa=70
   lock=900
   linearity=0.2
   model
   {
      file=stw.dof
   }
}
engine
{
   mass=159
   max_rpm=5000
   idle_rpm=450
   stall_rpm=250
   start_rpm=350
   autoclutch_rpm=0
   starter=1
   starter_torque=70
   curve_torque=torque.crv
   max_torque=200
   torque_reaction=1.0
   braking_coeff=1
   start_stalled=0
   rolling_friction_coeff=0
   shifting
   {
      automatic=0
      shift_up_rpm=3400
      shift_down_rpm=1500
      time_to_declutch=50
      time_to_clutch=50
   }
   inertia
   {
      engine=0.412
      final_drive=0.32
   }
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=83.0
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine
  bsfc=6.0e-5
  ;bsfc=6.944e-5
}
gearbox
{
   gears=5
   ; M
   gear0
   {
      ratio=-3.80
      inertia=0.21
   }
   gear1 
   {
      ratio=3.80
      inertia=0.13
   }
   gear2 
   {
      ratio=2.06
      inertia=0.09
   }
   gear3 
   {
      ratio=1.26
      inertia=0.09
   }
   gear4 
   {
      ratio=0.82
      inertia=0.09
   }
}
clutch
{
   max_torque=430
}
handbrakes
{
   wheels=23
}
differential
{
   type=0
   inertia=0.2
   ratio=5.375 
   locking_coefficient=75
   locking_coeff=75
   clutches=2
   clutch_factor=1
   power_angle=0
   coast_angle=0
   output0=2
   output1=3
}
aero
{
   body
   {
      center=0.000000 -0.200000 0.000000
      cx=0.55 ;0.357
      area=1.811
   }
   wings=1
   wing0
   {
      ; name=BodyLift
      ; span=1
      ; cord=0.1
      ; coeff_drag=0
      ; coeff_down=-9.20
      ; center=0 0 0
      ; angle=0
      ; angle_offset=10
      name=
      span=0
      cord=0
      angle=0
      angle_offset=0
      coeff_drag=0
      coeff_down=0
      center=0.000 0.000 0.000
   }
}
antirollbar
{
   count=1
   arb0
   {
      susp_left=0
      susp_right=1
      k=10000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=-5000
   }
}
susp_front
{
  y=-0.42
  z=1.35
   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.38
  z=-1.5
   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
{
   caster_offset=-0.01
   camber_change_steering=.01
   camber_change_per_m=.1
  x=0.85
   roll_center
   {
      x=0
      y=-0.89
      z=0
   }
}
susp1~susp_front
{
   caster_offset=-0.01
   camber_change_steering=.01
   camber_change_per_m=.1
  x=-0.85
   roll_center
   {
      x=0
      y=-0.89
      z=0
   }
}
susp2~susp_rear
{
  x=0.85
   roll_center
   {
      x=0
      y=-0.91
      z=0
   }
}
susp3~susp_rear
{
  x=-0.85
   roll_center
   {
      x=0
      y=-0.91
      z=0
   }
}
tire_model_front
{
   damping_predict_lat=0.805 ;0.672
   damping_predict_long=0.042 ;0.028
}
tire_model_rear
{
   damping_predict_lat=0.718 ;0.672
   damping_predict_long=0.037 ;0.028
}

pacejka
{
    a0=1.2
    a1=-25
    a2=1500
    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=1650 ;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

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}
wheel_front
{
   y=0
   z=0
   steering=1
   powered=0
   powered_gearing=0.96
   lock=55
   ackerman=1.1
   mass=15
   inertia=0.61
   radius=0.32
   rolling_coeff=0.0155
   max_braking=2000
   braking_factor=0.45
   tire_rate=195000
   pacejka~pacejka
   {
   }
   skidding
   {
      long_start=0.10
      long_max=0.18
   }
}
wheel_rear
{
   y=0
   z=0
   steering=0
   powered=1
   mass=15
   inertia=0.61
   radius=0.32
   rolling_coeff=0.0155
   max_braking=2000
   braking_factor=0.55
   tire_rate=195000
   max_handbrake_torque=2500
   pacejka~pacejka
   {
   }
}
wheel0~wheel_front
{
   x=0
   toe=0.015

   model
   {
      file=left.dof
   }
   model_brake
   {
      ;file=brake_lf.dof
      file=
   }
   ackerman=1.1
   mass=15
   inertia=0.61
   lock=55
   camber=1.0
   tire_rate=195000
   y=0
   z=0
   steering=1
   powered=0
   powered_gearing=0.96
}
wheel1~wheel_front
{
   camber_change_per_m=-3
   x=0
   toe=-0.015
   model
   {
      file=right.dof
   }
   model_brake
   {
      ;file=brake_rf.dof
      file=
   }
   mass=15
   inertia=0.61
   lock=55
   camber=1.0
   tire_rate=195000
   y=0
   z=0
   powered=0
   powered_gearing=0.96
}
wheel2~wheel_rear
{
   x=0
   toe=0
   camber=0
   model
   {
      file=left.dof
   }
   model_brake
   {
      ;file=brake_lr.dof
      file=
   }
   mass=15
   inertia=0.61
   lock=0
   tire_rate=195000
   y=0
   z=0
   steering=0
   powered=1
}
wheel3~wheel_rear
{
   x=0
   toe=0
   camber=0
   model
   {
      file=right.dof
   }
   model_brake
   {
      ;file=brake_rr.dof
      file=
   }
   mass=15
   inertia=0.61
   lock=0
   tire_rate=195000
   y=0
   z=0
   steering=0
   powered=1
}

;----------------------------------------------------------------------------
; Cameras
;----------------------------------------------------------------------------
camera0
{
   offset
   {
      x=0.38
      y=-0.7
      z=1.2
   }
   angle
   {
      x=0.0
      y=180.0
      z=0.0
   }
   name=Driver
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=70
   model=1
   wheels=0
}
camera1
{
   offset
   {
      x=0.48
      y=-0.7
      z=1.2
   }

   angle
   {
      x=0.0
      y=149.0
      z=0.0
   }
   name=Left View
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=70
   model=1
   wheels=0
}
camera2
{
   offset
   {
      x=-0.05
      y=-0.7
      z=1.2
   }

   angle
   {
      x=0.0
      y=209.0
      z=0.0
   }
   name=Right View
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=70
   model=1
   wheels=0
}
camera3
{
   offset
   {
      x=-0.25
      y=-0.5
      z=-0.1
   }

   angle
   {
      x=0.0
      y=345.00
      z=0.0
   }
   name=Behind View
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=70
   model=1
   wheels=0
}
camera4
{
   offset
   {
      x=-0.381252
      y=0.439585
      z=-4.794994
   }
   angle
   {
      x=16.527767
      y=129.166580
      z=0.260415
   }
}
camera5
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=-0.006251
      y=0.237500
      z=-11.234993
   }
   angle
   {
      x=16.527657
      y=-122.569679
      z=2.777774
   }
   name=High
   fov=60
}
camera6
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=-0.273437
      y=0.739583
      z=-3.650010
   }
   angle
   {
      x=23.194437
      y=-357.986633
      z=19.357632
   }
   fov=70
}
camera7
{
   offset
   {
      x=1.390623
      y=0.062498
      z=-0.599992
   }
   angle
   {
      x=-2.222249
      y=-161.632263
      z=3.298599
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=70
}
camera8
{
   offset
   {
      x=0.081250
      y=-0.837501
      z=-6.245005
   }
   angle
   {
      x=6.666651
      y=-180.729126
      z=0.000000
   }
   name=Behind
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=65
}
camera9
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0
      y=-1.6
      z=-0.7
   }
   angle
   {
      x=10
      y=180.0
      z=0.000000

   }
   name=top
   fov=85
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
   skid
   {
      volume=0.5   ;.3
      sample=skid.wav
      sample2=skid.wav
   }
  horn
  {
    sample=horn.wav
    volume=2.0
  }
   shiftout
   {
      sample=shift.wav
   }
   shiftin
   {
      sample=shift.wav
   }
   acc_all
   {
      attack=100
      decay=100
   }
   dec_all
   {
      attack=0
      decay=100
   }
   accelerate_out
   {
      ; Master volume for this set (0..1)
      volume=1.0   ;0.8
      smp0~audio.acc_all
      {
         sample=idle.wav
         min=400
         max=5000
         attack=0
         decay=500
         natural=1850
		 volume=0.75
         minvol=0.5
         maxvol=0.75
      }
   }
   accelerate_in
   {
      ; Master volume for this set (0..1)
      volume=1.0   ;0.8
      smp0~audio.acc_all
      {
         sample=idle.wav
         min=400
         max=5000
         attack=0
         decay=500
         natural=1850
		 volume=0.75
         minvol=0.5
         maxvol=0.75
      }
   }
	gearwhine
  	{
    		smp0
    		{
      			sample=gearwhine.wav
      			volume=1.2
      			min=1
      			max=22
      			decay=1000
      			natural=200
    		}
  	}
   wind
   {
    volume=0.5
	pitch_scale=0
	pitch_offset=50
	smp0
	{
		sample=wind.wav
      min=5
      max=19
      attack=33
      decay=33
      natural=80
	}
}
}