car
{
  name=Fiat Palio Economy
  year=2007
  credits=Converted by AMGfan and caioballejo. 0-100 km/h: 15.5 s, Top Speed: 165 km/h
  comments=Fiat FIRE FLEX 1.0 8v Economy, InLine-4 999cm³, 75cv @ 6250 rpm, 9.9 kgfm @ 4500 rpm
  id=palioelx
  version=053b4
  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=940
  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=360
  linearity=0.2
  model
  {
    file=str.dof
  }
}
engine
{
  mass=0
  idle_rpm=750
  max_rpm=6500
  max_torque=90
  curve_torque=torque10008VECO.crv
  torque_reaction=0.2
  autoclutch_rpm=1025
  starter=1
  starter_torque=80
  stall_rpm=500
  start_rpm=1200
  start_stalled=1
  shifting
  {
    automatic=0
    shift_up_rpm=4000
    shift_down_rpm=2000
    time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
  }
  inertia
  {
    engine=0.25
  }
  braking_coeff=2.6
}

clutch
{
  max_torque=250
}

gearbox
{
 gears=6
   gear0
   {
      ratio=-3.909
      inertia=0.2
   }
   gear1
   {
      ratio=4.273
      inertia=0.01
   }
   gear2
   {
      ratio=2.238
      inertia=0.02
   }
   gear3
   {
      ratio=1.520
      inertia=0.04
   }
   gear4
   {
      ratio=1.156
      inertia=0.06
   }
   gear5
   {
      ratio=0.919
      inertia=0.08
	}
}

handbrakes
{
  wheels=23
}
differential
{
  type=0
  ratio=4.357
  inertia=0.1
  locking_coeff=0
  output0=0
  output1=1
}
abs
{
  max_velocity_ratio=1.2
  min_velocity_ratio=1.15
  min_velocity=2
  enable=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=22000		
  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=20000		
  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
	{
		sample=Skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
	acc_all
	{
		attack=2600
		decay=2600
	}

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1.2
		}
		smp2~audio.acc_all
		{
			sample=3000X.wav
			min=3000
			max=3001
			natural=3000
			volume=1.4
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1.6
		}
		smp4~audio.acc_all
		{
			sample=5000X.wav
			min=5000
			max=5001
			natural=5000
			volume=1.8
		}
		smp5~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=6001
			natural=6000
			volume=2
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=800
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=1800
			volume=1.2
		}
		smp2~audio.acc_all
		{
			sample=3000X.wav
			min=3000
			max=3001
			natural=2800
			volume=1.4
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=3800
			volume=1.6
		}
		smp4~audio.acc_all
		{
			sample=5000X.wav
			min=5000
			max=5001
			natural=4800
			volume=1.8
		}
		smp5~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=6001
			natural=5800
			volume=2
		}
	}

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=1000_In.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000_In.wav
			min=2000
			max=2001
			natural=2000
			volume=1.2
		}
		smp2~audio.acc_all
		{
			sample=3000_In.wav
			min=3000
			max=3001
			natural=3000
			volume=1.4
		}
		smp3~audio.acc_all
		{
			sample=4000_In.wav
			min=4000
			max=4001
			natural=4000
			volume=1.6
		}
		smp4~audio.acc_all
		{
			sample=5000_In.wav
			min=5000
			max=5001
			natural=5000
			volume=1.8
		}
		smp5~audio.acc_all
		{
			sample=6000_In.wav
			min=6000
			max=6001
			natural=6000
			volume=2
		}
	}

	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=1000_In.wav
			min=1000
			max=1001
			natural=800
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000_In.wav
			min=2000
			max=2001
			natural=1800
			volume=1.2
		}
		smp2~audio.acc_all
		{
			sample=3000_In.wav
			min=3000
			max=3001
			natural=2800
			volume=1.4
		}
		smp3~audio.acc_all
		{
			sample=4000_In.wav
			min=4000
			max=4001
			natural=3800
			volume=1.6
		}
		smp4~audio.acc_all
		{
			sample=5000_In.wav
			min=5000
			max=5001
			natural=4800
			volume=1.8
		}
		smp5~audio.acc_all
		{
			sample=6000_In.wav
			min=6000
			max=6001
			natural=5800
			volume=2
		}
	}
	wind
	{
		volume=3
		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
		}
	}
}