car
{
  name=Volkswagen Passat
  year=2000 [B5]
  credits=1.9 TDI AJM  116Km @ 4000  285Nm @ 1900  5M/T
  comments=by Djvolt, Re-make by Bombazza997
  id=passatb5tdi
  version=090
  wheels=4
  shadow
  {
    texture=shadow.tga
    width=1.75
    length=4.8
    offset_z=0
  }
  cg
  {
    x=0
    y=-0.25
    z=0.2
  }
  ff_factor=0.85
}

graphics
{
  generic
  {
    model0
    {
      file=passat.dof
    }
    model1
    {
      file=wnetrze.dof
    }
    model2
    {
      file=mirrors.dof
    }
    model3
    {
      ;file=szyberdach poz0 zasloniety.dof
      ;file=szyberdach poz0.dof
      file=szyberdach poz1.dof
      file=szyberdach poz2.dof
    }
  }
}

lights
{
  light0
  {
    texture=light.tga
    fov=55.0
    aspect=5.0
    z=2.4
    far=120
    pitch=0
    color=2.25 2.25 3
  }
}

body
{
  mass=1215
  inertia
  {
    x=2300
    y=2500
    z=650
  }
  width=1.740
  height=1.462
  length=4.675
  manual_box=0
  model
  {
    file=passat.dof
  }
  model_incar
  {
    file=passat.dof
  }
  model_braking_l
  {
    file=brk.dof
  }
  model_light_l
  {
    file=lampy.dof
  }
  model_lightroad_l
  {
    file=podswietlenie.dof
  }
  model_reverse_l
  {
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
  }
}

steer
{
  x=0.3760
  y=0.2150
  z=0.4558
  radius=45
  xa=20
  lock=1000
  linearity=0.24
  model
  {
    ;file=kiera.dof
    file=kiera2.dof
  }
}
;----------------------------------------------------------------------
;Engine: 1.9 TDI PD AJM 116Km 285Nm

engine
{
   x=0.000
   y=0.000
   z=1.672
   mass=144
   max_rpm=6000
   idle_rpm=860
   idle_method=1
   idle_throttle=0
   curve_torque=1.9 TDI PD/1.9 TDI.crv
   max_torque=1.000
   autoclutch=0
   starter=1
   starter_torque=90
   start_stalled=1
   stall_rpm=650
   start_rpm=930
   torque_reaction=0.4
   cylinders=4
   cylinder_angle=0
   shifting
   {
    	automatic=0
    	blip_throttle=0
    	cut_throttle=0
    	fast=0
    	shift_up_rpm=0
    	shift_down_rpm=0
	time_to_declutch=0
	time_in_neutral=0
	time_to_clutch=0
	time_to_declutch_down=0
	time_in_neutral_down=0
	time_to_clutch_down=0
   }
   inertia
   {
      engine=0.340
   }
   braking_coeff=0
   braking_offset=0
   braking_torque_curve=1.9 TDI PD/1.9 TDI Braking.crv
   rolling_friction_coeff=0
}

fuel
{
  bsfc=3.06e-5
  max=62
  type=1
}

gearbox
{
   gears=6
   gear0
   {
      ratio=-3.44
      inertia=0.47
      linearity=1
   }
   gear1
   {
      ratio=3.50
      inertia=0.21
      linearity=1
   }
   gear2
   {
      ratio=1.94
      inertia=0.26
      linearity=1
   }
   gear3
   {
      ratio=1.22
      inertia=0.44
      linearity=1
   }
   gear4
   {
      ratio=0.88
      inertia=0.52
      linearity=1
   }
   gear5
   {
      ratio=0.69
      inertia=0.96
      linearity=1
   }
}

clutch
{
   max_torque=320
}

handbrakes
{
   wheels=23
}

differential
{
   type=1
   ratio=3.56
   inertia=0.074
   locking_coeff=200
   output0=0
   output1=1
}

aero
{
  body
  {
    center=0 0 0
    cx=0.26
    area=2.1
  }
  wings=2
  wing0
  {
    name=Overall aerodynamic effect F
    span=0.8
    cord=0.1
    coeff_drag=120
    coeff_down=17.0	
    center=0 -0.1 1.49
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Overall aerodynamic effect R
    span=0.8
    cord=0.1
    coeff_drag=95
    coeff_down=19.3	;1000N @ 250km/h
    center=0 -0.1 -1.25
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=20000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=5000
  }
}
susp_front                    
{
  y=0.0015
  z=1.3796
  restlen=0.412		
  minlen=0.16
  maxlen=0.41
  k=33900
  bump_rate=5340
  bump_function=0
  rebound_rate=1640
  rebound_function=0
  anti_pitch=0.09
  roll_center
  {
    x=0
    y=-0.56	
    z=0
  }
}
susp_rear
{
  y=-0.092
  z=-1.276
  restlen=0.342		
  minlen=0.14
  maxlen=0.35
  k=28700
  bump_rate=4690
  bump_function=0
  rebound_rate=1520
  rebound_function=0
  anti_pitch=0.14
  roll_center
  {
    x=0
    y=-0.54	
    z=0
  }
}
susp0~susp_front
{
  x=0.76
  camber_change_steering=0.145
  caster_offset=-0.022
  toe_change_per_m=0
}
susp1~susp_front
{
  x=-0.76
  camber_change_steering=-0.145
  caster_offset=-0.022
  toe_change_per_m=0
}
susp2~susp_rear
{
  x=0.76
  toe_change_per_m=0.05
}
susp3~susp_rear
{
  x=-0.77
  toe_change_per_m=-0.05
}
}
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.3
    a1=-25
    a2=1210
    a3=1800
    a4=10
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.075
    a9=-0.001
    a10=-0.05
    a111=-4.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-50
    b2=1320
    b3=20
    b4=305
    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
  camber=-0.5
  steering=1
  lock=49.6
  ackerman=1.15
  mass=45
  inertia=0.9
  radius=0.34
  width=0.205		
  rolling_coeff=0.005
  friction_road=1.7
  max_braking=2100
  braking_factor=0.85
  tire_rate=170000
  pacejka~pacejka
  { 
  }
}
wheel_rear
{
  y=0
  z=0
  camber=-1.5
  steering=0
  mass=45
  inertia=0.9
  radius=0.33
  width=0.205		
  rolling_coeff=0.005
  friction_road=1.7
  braking_factor=0.55
  max_braking=900
  max_handbrake_torque=2500
  tire_rate=170000
  pacejka~pacejka
  {
    a0=1.2
    a1=-25
    a2=1450
    a3=1900
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.075
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1370
    b3=20
    b4=305
    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
  }
}
wheel0~wheel_front
{
  x=0
  toe=0
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=lewyprzod.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0
  model
  {
    file=fp.dof
  }
  model_brake
  {
    file=prawyprzod.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=lewytyl.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=fp.dof
  }
  model_brake
  {
    file=prawytyl.dof
  }
}

camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.520
    z=-0.20
  }
  offset_to
  {
    x=0.1
    y=0.0
    z=10
  }
  src
  {
    mass=75
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=75
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.370
    y=0.520
    z=-0.15
  }
  offset_to
  {
    x=11.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.380
    y=0.520
    z=-0.15
  }
  offset_to
  {
    x=-12.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.160
    y=0.525
    z=-0.05
  }
  offset_to
  {
    x=-3
    y=1.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  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=Passenger
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=-0.37
    y=0.530
    z=-0.32
  }
  offset_to
  {
    x=0.2
    y=0.0
    z=10
  }
  src
  {
    mass=75
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=75
    k=0
    damping=0
    maxdist=0
  }
}
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=Inside
	fov=60
	model=1
	wheels=0
	view=1
	offset
	{
		x=0
    		y=-0.6
    		z=-0.7
	}
	offset
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=10
		y=180
		z=0
	}
}

audio
{
  skid
  {
    sample=skid.wav
    sample2=skid_lon.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=1.9 TDI PD/1000.wav
      volume=0.8
      min=700
      max=1001
      attack=100
      decay=100
      natural=880
    }
    smp1~audio.acc_all
    {
      sample=1.9 TDI PD/2000.wav
      volume=0.8
      min=1200
      max=1600
      attack=400
      decay=350
      natural=1600
    }
    smp2~audio.acc_all
    {
      sample=1.9 TDI PD/2500.wav
      volume=0.9
      min=1800
      max=2400
      attack=350
      decay=1600
      natural=1950
    }
    smp3~audio.acc_all
    {
      sample=1.9 TDI PD/3000in.wav
      volume=1.0
      min=3000
      max=5000
      attack=3000
      decay=1000
      natural=3150
    }
    smp4~audio.acc_all
    {
      sample=1.9 TDI PD/turbo2.wav
      volume=0.05
      min=1500
      max=2700
      natural=290
      attack=5
      decay=2000
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=1.9 TDI PD/1000.wav
      volume=0.9
      min=700
      max=1001
      attack=100
      decay=400
      natural=880
    }
    smp1~audio.acc_all
    {
      sample=1.9 TDI PD/3000out.wav
      volume=0.5
      min=1500
      max=3500
      attack=900
      decay=700
      natural=11000
    }
    smp2~audio.acc_all
    {
      sample=1.9 TDI PD/4000out.wav
      volume=0.4
      min=4000
      max=5000
      attack=2000
      decay=1000
      natural=26000
    }
    smp3~audio.acc_all
    {
	 volume=0.02
         sample=1.9 TDI PD/turbo.wav
         min=1440
         max=1910
         natural=200
	 attack=250
         decay=3000
    }
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=1.9 TDI PD/1000.wav
      volume=1.0
      min=700
      max=1001
      attack=100
      decay=100
      natural=880
    }
    smp1~audio.acc_all
    {
      sample=1.9 TDI PD/2000.wav
      volume=1.2
      min=1200
      max=1600
      attack=400
      decay=350
      natural=1600
    }
    smp2~audio.acc_all
    {
      sample=1.9 TDI PD/2500.wav
      volume=1.2
      min=1800
      max=2400
      attack=350
      decay=1600
      natural=2000
    }
    smp3~audio.acc_all
    {
      sample=1.9 TDI PD/3000in.wav
      volume=1.0
      min=3000
      max=5000
      attack=3000
      decay=1000
      natural=3150
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=1.9 TDI PD/1000.wav
      volume=0.9
      min=700
      max=1001
      attack=100
      decay=400
      natural=880
    }
    smp1~audio.acc_all
    {
      sample=1.9 TDI PD/3000out.wav
      volume=0.4
      min=1500
      max=3500
      attack=900
      decay=700
      natural=11000
    }
    smp2~audio.acc_all
    {
      sample=1.9 TDI PD/4000out.wav
      volume=0.3
      min=4000
      max=5000
      attack=2000
      decay=1000
      natural=26000
    }
    smp3~audio.acc_all
    {
	 volume=0.01
         sample=1.9 TDI PD/turbo.wav
         min=1440
         max=1910
         natural=200
	 attack=250
         decay=3000
    }
  }
  wind
  {
    volume=2.5
    pitch_scale=1.25
    pitch_offset=0
    smp0
    {
      sample=wind1.wav
      min=0
      max=25
      attack=30
      decay=30
      natural=50
      volume=1.8
    }
    smp1
    {
      sample=wind2.wav
      min=40
      max=50
      attack=30
      decay=30
      natural=70
      volume=2.0
    }
    smp2
    {
      sample=wind3.wav
      min=60
      max=90
      attack=40
      decay=40
      natural=70
      volume=2.0
    }
  }
}

;TCL_ABS_Ai------------------------------------------------

ai
 {
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.43
}
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  enable=0
}