car
{
  name=Fiat Abarth 500
  id=ABARTH_500
  version=090b
  credits=Orginal Model: FM3 . Convert To Racer: Venusek. Big Thanks For Ansebasti!
  comments=Visit our site - www.racer-polska.pl
  year=1978
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.0
    length=4.2
    offset_z=0.15
  }
  cg
  {
    x=0
    y=-0.22	
    z=0.365	
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.2
    ; 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
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.57 0.19 1.50
    color=98 1 65
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.3
	intensity=1
        hor_scale=2
  }
  flare1
  {
    pos=0.57 0.19 1.50
    color=98 1 65
	normal=0.98 1 0.65
	z_offset=-2500
	size_factor=1.3
	intensity=1
        hor_scale=2
  }
}
body
{
  mass=800		;800kg (car) + 50kg (wheels) = 850kg
  restitution_coeff=0.3
  inertia
  {
    x=2875
    y=2600
    z=625
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
 model_lightroad_l
 {
  file=.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=rev.dof
  }
  model_reverse_r
  {
    file=re.dof
}
  width=1.605
  height=1.410
  length=3.705
  manual_box=1
}
steer
{
  x=0.345
  y=0.45
  z=0.29
  xa=25
  linearity=0.44
  lock=900
  model
  {
    file=swheel.dof
  }
}
engine
{
	mass=100
	idle_rpm=850
	max_rpm=7100
	max_torque=1.1	;360 3rd
	curve_torque=torque.crv
	autoclutch_rpm=1500
	stall_rpm=500
	starter=1
	starter_torque=80
	start_stalled=1
	stall_rpm=550
	start_rpm=1250
	torque_reaction=0

  	shifting
  	{
    		automatic=0
		fast=0
    		shift_up_rpm=4500
    		shift_down_rpm=2500
    		time_to_declutch=150
    		time_in_neutral=100
    		time_to_clutch=150
    		time_to_declutch_down=150
    		time_in_neutral_down=100
    		time_to_clutch_down=150
  	}
	inertia
	{
		engine=0.19
		final_drive=0.15
	}

	braking_coeff=2.6
	rolling_friction_coeff=1
	friction=0
	sample=a5000.wav
	sanple_rpm=5000
}
gearbox
{
	gears=6

	gear0
	{
		ratio=-4.107
		inertia=0.02
		linearity=1
	}

	gear1
	{
		ratio=3.42
		inertia=0.03
		linearity=1
	}

	gear2
	{
		ratio=2.11
		inertia=0.04
		linearity=1
	}

	gear3
	{
		ratio=1.43
		inertia=0.05
		linearity=1
	}

	gear4
	{
		ratio=1.09
		inertia=0.06
		linearity=1
	}

	gear5
	{
		ratio=0.87
		inertia=0.08
		linearity=1
	}

}
clutch
{
  max_torque=420
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.9
  locking_coefficient=0
  output0=0
  output1=1
}
abs
{
  enable=1
  braking_factor=1
  max_velocity_ratio=1.2
  min_velocity_ratio=1.1
  min_velocity=3.61
}
traction_control
{
  enable=0
  max_velocity_ratio=1.04
  min_velocity_ratio=1.035
  min_velocity=3.61
}
aero
{
  body
  {
    center=0 0 0
    cx=0.42
    area=1.7
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=0
    k=10000
  }
}
susp_front
{
  y=0.0
  z=1.04
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.538
  minlen=0.355
  maxlen=0.555
  ;1.55Hz, 295.7475kg
  k=38000
  ;0.7*CD=4032
  bump_rate=3750	
  rebound_rate=5994
  bump_function=0
  rebound_function=0
  anti_pitch=0.15
  ;20°/m ???
  camber_change_per_m=0.349
  ;-4° ???
  caster_offset=-0.022
  roll_center
  {
    x=0
    y=-0.642
    z=0
  }
}
susp_rear
{
  y=0.0
  z=-1.25
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.521
  minlen=0.355
  maxlen=0.555
  ;1.7HZ, 286.7525kg, should be progressive springs...
  k=38000	
  ;0.7*CD=4288	
  bump_rate=3346	
  rebound_rate=8647	
  bump_function=0
  rebound_function=0
  anti_pitch=0.0
  camber_change_per_m=0.0
  roll_center
  {
    x=0
    y=-0.477
    z=0
  }
}
susp0~susp_front
  {
    x=0.71
    camber_change_steering=0.050
    toe_change_per_m=0.020
  }
susp1~susp_front
  {
    x=-0.71
    camber_change_steering=-0.050
    toe_change_per_m=-0.020
  }
susp2~susp_rear
  {
    x=0.71
    toe_change_per_m=0.0
  }
susp3~susp_rear
  {
    x=-0.71
    toe_change_per_m=0.0
  }
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.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=1550 ;1550
    	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.26
  z=0
  steering=1
  powered=1
  lock=67.89
  ackerman=1.1
  mass=30
  inertia=1.0
  radius=0.31
  rolling_coeff=0.05
  max_braking=2425
  braking_factor=1
  tire_rate=175000
  pacejka~pacejka
}
wheel_rear
{
  y=0.26
  z=0
  steering=0
  lock=0
  powered=0
  mass=38
  inertia=1.0
  radius=0.31
  rolling_coeff=0.015
  max_braking=1500
  max_handbrake_torque=3400
  tire_rate=160000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0.5
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=leftfront.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0.5
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=rightfront.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=leftrear.dof
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=0
  camber=0
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=rightrear.dof
  }
}
camera0
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.355
    y=0.70
    z=-0.19
  }
  offset_to
  {
    x=0.39
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.70
    z=-0.03
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.70
    z=-0.03
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    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.1
    y=0.70
    z=-0.16
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    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
	}
}
audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1.5
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
    }
    smp3~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
    }
  }
  accelerate_in
  {
    volume=0.5
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
    }
    smp3~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
    }
  }
  decelerate_in
  {
    volume=0.5
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
    }
    smp3~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
    }
  }
   wind
   {
      smp0
      {
         volume=0.7
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}