car
{
  name=Fiat Palio Economy Remix.
  year=2009
  credits=Converted by AMGfan and caioballejo - Modified by hsroger.~Alterady por ViniciusNunes. 0-100 8,8s. Top Speed +200 Km/h;
  comments=Alterady for 1.6 (Palio '96) Fiat Italian "Sevel Torque 16V" Step-A 1.6 16V Inline-4 1580cm³, 106 cv @ 5750 rpm, 15.1 kgfm @ 4500 rpm
  Rodas e volante Linea T-Jet.
  id=palioelx
  version=090
  wheels=4
  ff_factor=0.8
  skid
  {
    sample=skid.wav
  }
	shadow
	{
		texture=shadow.tga
		width=2.1
		length=4.35
	}
  cg
  {
    x=0
    y=0.27	;55 cm (~38%)
    z=0.245
  }
}
body
{
 mass=950
  inertia
  {
      x=1900
      y=2100
      z=460
  }
  width=1.634
  height=1.434
  length=3.827
  manual_box=0
  model
  {
    file=p.dof
  }
  model_incar
  {
    file=p.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_light_l
   {
      file=lights.dof
   }
 model_lightroad_l
  {
  file=lightsin.dof
  }
}
steer
{
  x=0.375
  y=0.6
  z=0.56
  xa=15
  lock=900
  linearity=0.2
  model
  {
    file=str.dof
  }
}
}
engine
{
   mass=60
   idle_rpm=800
   max_rpm=9000 
   max_torque=156
   curve_torque=paliotorque.crv
   autoclutch_rpm=1550
   starter=1
   starter_torque=70
   start_stalled=1
   stall_rpm=550
   start_rpm=980
   shifting
   {
      automatic=0
      shift_up_rpm=6500
      shift_down_rpm=3500
       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.3
      final_drive=0.1
   }
   braking_coeff=3
   sample=
   sample_rpm=
   rolling_friction_coeff=1
}
gearbox
{
   gears=6
   gear0
   {
      ratio=-3.909
      inertia=0.2
   }
   gear1
   {
      ratio=3.909
      inertia=-0.1
   }
   gear2
   {
      ratio=2.238
      inertia=-0.1
   }
   gear3
   {
      ratio=1.52
      inertia=0.06
   }
   gear4
   {
      ratio=1.156
      inertia=0.04
   }
   gear5
   {
      ratio=0.872
      inertia=0.02
   }
}
clutch
{
   max_torque=420
}
handbrakes
{
   wheels=23
}
abs
{
  enable=1
   max_velocity_ratio=1.3
   min_velocity_ratio=1.7
}
differential
{
   type=1
   ratio=3.765
   inertia=0.05
   locking_coefficient=20
   locking_coeff=5
   clutches=1
   clutch_factor=100
   power_angle=1
   coast_angle=0
   output0=0
   output1=1
}
aero
{
   body
   {
      center=0 0 0
      cx=0.35
      area=2.3		;measured from model
   }
   wings=2
   wing0
   {
      name=Front axle lift
      span=1
      cord=1
      coeff_drag=0
      coeff_down=-5
      center=0 0 1.3125
      angle=0
      angle_offset=1
   }
   wing1
   {
      name=Rear axle lift
      span=1
      cord=1
      coeff_drag=0
      coeff_down=-5
      center=0 0 -1.3125
      angle=0
      angle_offset=1
   }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=13000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=13000
  }
}
susp_front
{
  y=0.12
  z=1.28		
  restlen=0.25
  minlen=0.0
  maxlen=0.26		
  k=17000		
  bump_rate=1800	
  bump_function=0
  rebound_rate=3600	
  rebound_function=0
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.18		
    z=0
  }
}
susp_rear
{
  y=0.12
  z=-1.13
  restlen=0.21
  minlen=0.0
  maxlen=0.22
  k=14000		
  bump_rate=1200	
  bump_function=0
  rebound_rate=3200	
  rebound_function=0
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.1	
    z=0
  }
}
susp0~susp_front
{
  x=0.7
}
susp1~susp_front
{
  x=-0.7
}
susp2~susp_rear
{
  x=0.7
}
susp3~susp_rear
{
  x=-0.7
}

pacejka
{
  a0=1.4
   	a1=-29
   	a2=1100		;rear wheels grip
   	a3=5000		;higher value decrease tendency to oversteer
   	a4=11
   	a5=0.015
   	a6=-0.25
   	a7=1.0
   	a8=-0.03
   	a9=-0.001
   	a10=-0.15
   	a111=-8.0
   	a112=-0.29
   	a12=17.8
   	a13=-2.4

   	b0=1.5
   	b1=-58
   	b2=1230 ;1200  	;front wheels grip
   	b3=23.3
   	b4=325
   	b5=0.08
   	b6=0.0
   	b7=0.05
   	b8=-0.024
   	b9=0.015
   	b10=0.25
   	b11=-86
   	b12=0.0

   	c0=2.3
   	c1=-3.8
   	c2=-3.14
   	c3=-1.0
   	c4=-7.2
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1

   	optimal_slipratio=0.10
   	optimal_slipangle=0.23
}


wheel_front
{
  x=0
  y=0
  z=0
  steering=1
  powered=1
  camber=0
  lock=65
  mass=32
  inertia=1
  width=0.175
  radius=0.29155
  max_braking=1200
  braking_factor=1
  tire_rate=140000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  powered=0
  camber=0
  mass=32
  inertia=1
  width=0.175
  radius=0.29155
  max_braking=330
  max_handbrake_torque=4000
  braking_factor=1
  tire_rate=140000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  toe=-0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    ;file=cfl.dof
  }
}
wheel1~wheel_front
{
  toe=0.1
  model
  {
    file=lf.dof    
  }
  model_brake
  {
    ;file=cfr.dof
  }
}
wheel2~wheel_rear
{
  toe=-0.1
  model
  {
    file=rf.dof    
  }
  model_brake
  {
    ;file=crl.dof
  }
}

wheel3~wheel_rear
{
  toe=0.1
  model
  {
    file=lf.dof    
  }
  model_brake
  {
    ;file=crr.dof
  }
}

camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.42
    y=0.89
    z=-0.1
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.4
    y=0.89
    z=-0.1
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
   x=0.4
    y=0.89
    z=-0.1
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.89
    z=-0.2
  }
  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=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=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=centerconsole
  fov=40
  model=1
  wheels=0
  view=1
  offset
  {
   x=0.0
    y=0.55
    z=-0.1
  }
  offset_to
  {
    x=0
    y=-0.55
    z=8
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    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=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.1
    z=0.3
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
  skid
	{
	volume=2
        sample=skid.wav
        sample2=skid.wav
	}
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=blowoff.wav
  }
  shiftin
  {
    ;sample=shiftin.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle2.wav
      volume=1.5
      min=300
      max=800
      decay=500
      natural=1800
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      volume=0.9
      min=1000
      max=7000
      natural=5000
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      volume=1.5
      min=3300
      max=10000
      natural=5000
    }
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=1700
      max=3901
      natural=1500
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=3000
      max=8501
      natural=2500
    }
  }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle2.wav
      volume=1.5
      min=300
      max=800
      decay=500
      natural=1800
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      volume=0.9
      min=1000
      max=3000
      attack=500
      decay=5000
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      volume=1.5
      min=4000
      max=10000
      attack=3300
      natural=4500
    }
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=1700
      max=3901
      natural=1500
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=3000
      max=8501
      natural=2500
    }
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle2.wav
      volume=0.9
      min=300
      max=800
      decay=500
      natural=1800
    }
    smp1~audio.acc_all
    {
      sample=7000_int.wav
      volume=0.8
      min=1000
      max=7000
      natural=5000
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      volume=1
      min=3300
      max=10000
      natural=5000
    }
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=1700
      max=3901
      natural=1500
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=3000
      max=8501
      natural=2500
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle2.wav
      volume=0.9
      min=300
      max=800
      decay=500
      natural=1800
    }
    smp1~audio.acc_all
    {
      sample=7000_int.wav
      volume=0.8
      min=1000
      max=7000
      natural=5000
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      volume=1
      min=3300
      max=10000
      natural=5000
    }
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=1700
      max=3901
      natural=1500
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=3000
      max=8501
      natural=2500
    }
  }
  gearwhine
  {
    smp0
    {
      sample=gearwhine.wav
      volume=0.03
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0
    {
      sample=wind1.wav
      volume=0.5
      min=30
      max=150
      attack=10
      natural=25