car
{
   name=Volkswagen Gol GTS 1.8
  year=1988
  credits=Original model: AMGfan (Gol GTi'94 for racer) - Modded, and equips: FernSS1970(readme)
  comments=VW AP-1800s 1781cm³ 1.8l 99cv/5600rpm torque 146Nm/3200rpm-ÁLCOOL Max:180Km/h
   wheels=4
  id=GTS
  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=1015    ;(940Kg do carro + 75 do motorista)
  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.38
  y=0.179
  z=0.46
  radius=10
  xa=15
  lock=550
  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=6
 	gear0
 	{
  		ratio=-3.17
  		inertia=0.11
 	}
 	gear1
 	{
  		ratio=3.45
  		inertia=0.02
 	}
 	gear2
 	{
  		ratio=1.94
  		inertia=0.04
 	}
 	gear3
 	{
  		ratio=1.29
  		inertia=0.06
 	}
 	gear4
 	{
  		ratio=0.97
  		inertia=0.08
 	}
 	gear5
 	{
  		ratio=0.80
  		inertia=0.1
 	}
}
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.035
  z=1.3
  restlen=0.411
  minlen=0.22
  maxlen=0.46
  k=43781
  bump_rate=4600
  rebound_rate=4600
  anti_pitch=0.1
  roll_center
  {
    x=0
    y=-0.5
    z=0
  }
}
susp_rear
{
  y=-0.035
  z=-1.29
  restlen=0.370
  minlen=0.2
  maxlen=0.43
  k=43781
  bump_rate=4600
  rebound_rate=4200
  anti_pitch=0.1
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
{
  x=0.71
}
susp1~susp_front
{
  x=-0.71
}
susp2~susp_rear
{
  x=0.7
}
susp3~susp_rear
{
  x=-0.7
}
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.7
  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.55
  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
  }
}
camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.38
    y=-0.46
    z=-0.08
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.38
    y=0.46
    z=-0.08
  }
  offset_to
  {
    x=10
    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=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.38
    y=0.46
    z=-0.08
  }
  offset_to
  {
    x=-10
    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=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.05
    y=0.45
    z=-0.24
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=25
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=0.25
    z=-9
  }
  angle
  {
    x=10
    y=150
    z=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=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.0
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
  skid
  {
    sample=skid.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=3000.wav
      min=1500
      max=9001
      natural=5500
    }
  }
  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=3000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      min=3500
      natural=5500
      volume=0.75
    }
}
  accelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=3000.wav
      min=1500
      max=9001
      natural=5500
    }
  }
  decelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=3000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      min=3500
      natural=5500
      volume=0.75
    }
}
wind
  {
  smp0
  {
      sample=wind.wav
      volume=0.5
      min=1
      max=100
      natural=60
      }
   }
}