car
{
  name=Volkswagen Passat B4
  year=1.9 Diesel
  credits=by Djvolt
  comments=Car.ini Szaki

  id=a4
  version=090
  wheels=4

  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.6
    length=4.4
    offset_z=0
  }
  cg
  {
    x=0
    y=-0.20
    z=0.15
  }
  ff_factor=0.85
}
graphics
{
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
   model0
   {
     file=passat.dof
   }
   model1
   {
     file=wnetrze.dof
   }
   model2
   {
     file=xxx.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:}
body
{
  mass=1615
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.986	;1986 mm
  height=1.33	;1332 mm
  length=4.12	;4118 mm
  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_collide
  {
    file=ombre_e.dof
  }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
  }
}
;----------------------------------------------------------------------
;Steer:

steer
{
  x=0.3760
  y=0.2150
  z=0.4558
  radius=45
  xa=20
  lock=900
  model
  {
    file=kiera.dof
  }
}
;----------------------------------------------------------------------
;Engine:

engine
{
  mass=100
  idle_rpm=850
  max_rpm=5100
  max_torque=1.3
  
  sample=engine.wav
  sample_rpm=1000

  curve_torque=16115.crv
  autoclutch_rpm=1200
  starter=1
  starter_torque=95
  start_stalled=1
  stall_rpm=500
  start_rpm=850
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=4500
    shift_down_rpm=1200
    time_to_declutch=325
    time_to_clutch=135
  }
  inertia
  {
    engine=0.29
    final_drive=0.2
  }
  braking_coeff=2.85
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
  gears=6
  gear0
  {
    ratio=-3.583
    inertia=0.163
  }
  gear1
  {
    ratio=3.769
    inertia=0.121
  }
  gear2
  {
    ratio=2.040
    inertia=0.072
  }
  gear3
  {
    ratio=1.189
    inertia=0.048
  }
  gear4
  {
    ratio=0.844
    inertia=0.035
  }
  gear5
  {
    ratio=0.702
    inertia=0.029
  }
  end_ratio=3.471
}

;----------------------------------------------------------------------
;Differential:

differential
{
  type=1
  ratio=3.700
  locking_coefficient=25
  output0=0
  output1=1
}
;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.36
    area=2
  }
  wings=2
  wing0
  {
    name=Overall aerodynamic effect F
    span=1
    cord=0.1
    coeff_drag=120
    coeff_down=14.0	
    center=0 -0.1 1.49
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Overall aerodynamic effect R
    span=1
    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:

antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=35000
  }
}
;----------------------------------------------------------------------
;Suspension front:


susp_front                    
{
  y=-0.07
  z=1.3311
  restlen=0.372		
  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
  }
}
susp0~susp_front
{
  x=0.73
  camber_change_steering=0.145
  caster_offset=-0.022
  toe_change_per_m=0
}
susp1~susp_front
{
  x=-0.73
  camber_change_steering=-0.145
  caster_offset=-0.022
  toe_change_per_m=0
}
;----------------------------------------------------------------------
;Suspension rear:

susp_rear
{
  y=-0.04
  z=-1.2107
  restlen=0.382		
  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
  }
}
susp2~susp_rear
{
  x=0.73
  toe_change_per_m=0.05
}
susp3~susp_rear
{
  x=-0.73
  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.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=1320
    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=1350
    a3=1800
    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=1370
    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
  camber=-0.5
  steering=1
  powered=1
  lock=56
  ackerman=1.2
  mass=15
  inertia=0.7
  radius=0.31
  width=0.205		
  rolling_coeff=0.015
  friction_road=1.7
  max_braking=2100
  braking_factor=0.95
  tire_rate=160000
  pacejka~pacejka
  { 
  }
}
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
  }
}
;----------------------------------------------------------------------
;Wheel rear:

wheel_rear
{
  y=0
  z=0
  camber=-1.5
  steering=0
  powered=0
  mass=15
  inertia=0.7
  radius=0.305
  width=0.205		
  rolling_coeff=0.015
  friction_road=1.7
  braking_factor=0.54
  max_braking=900
  max_handbrake_torque=3500
  tire_rate=160000
  pacejka~pacejka
  {
  }
}
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
  }
}
;-----------------------------------------------------------------------
;-----------------------------------------------------------------------
;Camera


camera0
{
	name=Driver
	fov=68
        model=0
        wheels=0
        view=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.3398
		y=0.2967
		z=0.0395
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.355
    y=0.7
    z=0
  }
  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.355
    y=0.7
    z=0
  }
  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.100
    y=0.46
    z=-0.18
  }
  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
;  {
;    sample=skid.wav
;  }
;  acc_all
;  {
;    attack=1000
;    decay=1000
;  }
;  acc_turbo
;  {
;   attack=2000
;   decay=2000
;  }
;  accelerate_out
;  {
;    volume=2.0
;    smp0~audio.acc_all
;    {
;      sample=idle.wav
;      min=0
;      max=800
;      attack=1000
;      decay=1000
;      natural=1500
;    }
;    smp1~audio.acc_all
;    {
;      sample=low.wav
;      min=1000
;      max=2000
;      attack=1000
;      decay=1000
;      natural=10000
;    }
;    smp2~audio.acc_all
;    {
;      sample=mid.wav
;      min=2000
;      max=3000
;      attack=1000
;      decay=1000
;      natural=20000
;    }
;    smp3~audio.acc_all
;    {
;      sample=hi.wav
;      min=3000
;      max=6000
;      attack=1000
;      decay=1000
;      natural=30000
;    }
;    smp4~audio.acc_turbo
;    {
;    sample=turbo.wav
;    min=2000
;    max=7000
;    natural=6000
;    attack=1500
;    decay=1500
;    }
;  }
audio
{
   skid
   {
      sample=skid.wav
      sample2=skid.wav
   }
   acc_all
   {
      attack=1000
      decay=1000
   }
   acc_turbo
   {
      attack=2000
      decay=2000
   }
   accelerate_out
   {
      volume=2.0
      smp0~audio.acc_all
      {
         sample=idle.wav
         min=0
         max=800
         attack=1000
         decay=1000
         natural=1500
      }
      smp1~audio.acc_all
      {
         sample=low.wav
         min=1000
         max=2000
         attack=1000
         decay=1000
         natural=10000
      }
      smp2~audio.acc_all
      {
         sample=mid.wav
         min=2000
         max=3000
         attack=1000
         decay=1000
         natural=20000
      }
      smp3~audio.acc_all
      {
         sample=hi.wav
         min=3000
         max=5000
         attack=1000
         decay=1000
         natural=30000
      }
      smp4~audio.acc_turbo
      {
	volume=10
         sample=turbo.wav
         min=2000
         max=7000
         natural=6000
         attack=1500
         decay=1500
      }
   }
   gearwhine
   {
      volume=0.5
      pitch_scale=0.001
      pitch_offset=0
      smp0~audio.acc_all
      {
         sample=gearwhine.wav
         min=0
         max=10000
         natural=7000
      }
   }
   wind
   {
      volume=2
      pitch_scale=0
      pitch_offset=50
      smp0
      {
         sample=wind1.wav
         min=25
         max=26
         attack=33
         decay=33
         natural=80
      }
      smp1
      {
         sample=wind2.wav
         min=50
         max=51
         attack=33
         decay=33
         natural=80
      }
      smp2
      {
         sample=wind3.wav
         min=75
         max=76
         attack=33
         decay=33
         natural=80
      }
   }
}
;----------------------driving aids----------------------
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}