car
{
   name=Volkswagen Passat GTS Pointer 1.8
  year=1984
  credits=Modeled and Edited by FernSS1970 using my textures and parts from other cars
  comments=VW AP(Alta Performance) 1.8s 1781cm³ 99cv a 5600 rpm;torque 14.9 mkgf a 3600 rpm
   wheels=4
  id=GTS84
  version=088b
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=5.5
    offset_z=-0.1
  }
 cg
 {
  x=0
  y=-0.20
  z=0.352
 }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.25
    ; 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.8
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
body
{
  mass=1030
  inertia
  {
    x=2512
    y=2885
    z=488
  }
  model
  {
    file=GTS.dof
  }
  model_incar
  {
    file=GTS.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_lightroad_l
  {
    file=lightsin.dof
  }
  width=1.64
  height=1.20
  length=3.71
  manual_box=1
}
steer
{
  x=0.26
  y=0.11
  z=0.36
  radius=10
  xa=15
  lock=1080
  linearity=0.3
  model
  {
      file=volante.dof
  }
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=850
	max_rpm=7100
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=AP1800s.crv
	max_torque=146
	shifting
	{
		automatic=0
		shift_up_rpm=6000
		shift_down_rpm=3000
		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.17
		final_drive=0.1
	}
	braking_coeff=1.94
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}
gearbox
{
  gears=5
  gear0
  {
    ratio=-3.17
    inertia=0.13
  }
  gear1
  {
    ratio=3.45
    inertia=0.13
  }
  gear2
  {
    ratio=1.95
    inertia=0.09
  }
  gear3
  {
    ratio=1.29
    inertia=0.07
  }
  gear4
  {
    ratio=0.91
    inertia=0.05
  }
}
clutch
{
  max_torque=200
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=4.11
  inertia=0.05
  locking_coefficient=0.05
}
aero
{
  body
  {
    center=0 0 0
    cx=0.4
    area=1.85
  }
  wings=0
}
antirollbar
{
  count=1
  arb0
  {
    susp_left=0
    susp_right=1
    k=32000
  }
}
susp_front
{
  y=-0.12
  z=1.33
  restlen=0.43
  minlen=0.1
  maxlen=0.45
  k=30000
  bump_rate=5500
  rebound_rate=5500
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.552
    z=0
  }
}
susp_rear
{
  y=-0.12
  z=-1.17
  restlen=0.4
  minlen=0.1
  maxlen=0.45
  k=28500
  bump_rate=5000
  rebound_rate=4500
  anti_pitch=0.1
  roll_center
  {
    x=0
    y=-0.504
    z=0
  }
}
susp0~susp_front
{
  x=0.71
}
susp1~susp_front
{
  x=-0.71
}
susp2~susp_rear
{
  x=0.71
}
susp3~susp_rear
{
  x=-0.71
}
tire_model_front
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
tire_model_rear
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
pacejka
{
    	a0=1.25
    	a1=-35
    	a2=1330
    	a3=2100
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-4.3
    	a112=-0.29
    	a12=17.8
    	a13=-2.4

    	b0=1.5
    	b1=-70
    	b2=1200
    	b3=21
    	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.11
    	optimal_slipangle=0.157
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=1
  camber=0
  lock=45
  ackerman=1.31
  mass=34
  inertia=1.04
  radius=0.30
  rolling_coeff=0.015
  max_braking=1200
  braking_factor=0.8
  tire_rate=150000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=0
  camber=0
  mass=28
  inertia=1.04
  radius=0.30
  rolling_coeff=0.015
  max_braking=590
  braking_factor=0.6
  max_handbrake_torque=5500
  tire_rate=150000
  pacejka~pacejka
  {
    optimal_slipratio=0.11
    optimal_slipangle=0.18
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0.1
  model
  {
    file=lf.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0.1
  model
  {
    file=rf.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0.1
  model
  {
    file=lf.dof
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=-0.1
  model
  {
    file=rf.dof
  }
}
audio
{
  skid
  {
    sample=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=2000bo.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp2~audio.acc_all
    {
      sample=3000bo.wav
      min=1500
      max=9001
      natural=5500
    }
    smp3~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp4~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=9001
      natural=5000
      volume=0.7
    }
  }
  decelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=2000bo.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp2~audio.acc_all
    {
      sample=3000bo.wav
      min=1500
      max=9001
      natural=5500
    }
    smp3~audio.acc_all
    {
      sample=3000bo.wav
      min=3500
      natural=5500
      volume=0.75
    }
    smp4~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp5~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=9001
      natural=6000
      volume=0.6
    }
}
  accelerate_in
  {
    volume=0.8
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=2000bo.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      min=1500
      max=9700
      natural=6000
    }
    smp3~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp4~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=9001
      natural=5000
      volume=0.7
    }
  }
  decelerate_in
  {
    volume=0.8
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=2000bo.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp2~audio.acc_all
    {
      sample=3000bo.wav
      min=1500
      max=9700
      natural=6000
    }
    smp3~audio.acc_all
    {
      sample=3000bo.wav
      min=3500
      natural=5500
      volume=0.75
    }
    smp4~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp5~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=9001
      natural=6000
      volume=0.6
    }
}
  wind
  {
    volume=0.8
    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
    }
  }
}
;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  name=Driver
  fov=65
  model=1
  wheels=0
  view=1
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.26
    y=-0.39
    z=-0.17
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.26
    y=0.39
    z=-0.18
  }
  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=1
  wheels=0
  view=1
  offset
  {
    x=0.26
    y=0.39
    z=-0.18
  }
  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.1
    y=0.44
    z=-0.03
  }
  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=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}