car
{
  name=Ford Fiesta Mk4 Techno 1.25i 16V Zetec-S (Hatchback 3d)
  year=1998 | 0-100: 12,6s; Top Speed: 169 km/h
  credits=Model by Maau, Vermilion093, Júlio o Brasileiro. Converted and edited to racer by The Racer Edits.
  comments=DHA: 1.242 cc MPI - Ford EEC-V 16v Zetec-SE 75 cv (55 kW) / 5.200 RPM, 110 Nm / 4000 RPM
  id=BE91
  version=050b6
  wheels=4
  shadow
  {
    texture=shadow.tga
    width=1.67
    length=3.86
    offset_z=0.05
    offset=0
  }
	cg
	{
		x=0
		y=-0.23
		z=0.00
	}
	ff_factor=0.25
}
lights
{
  ; Projected lights
  light0
  {
    texture=swiatla.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=0.90
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=swiatla.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1.3
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
  light2
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=35.0
    ; Aspect (horizontal)
    aspect=1.8
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
flares
{
  flare0
  {
    pos=-0.4990 0.0566 1.62
	normal=1 1 1
      color=1 0.9 0.6
	z_offset=-3000
	size_factor=0.5
  }
  flare1
  {
    pos=0.4993 0.0556 1.62
	normal=1 1 1
      color=1 0.9 0.6
	z_offset=-3000
	size_factor=0.5
  }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=fiesta.dof
			use_shaders=0
    		}
		intensity=0.2
		}
	}
}
body
{
	
  	mass=1060
  	inertia
  	{
    x=3200 
    y=4210 
    z=625
  	}
  	model
  	{
    		file=fiesta.dof
  	}
  	model_incar
  	{
    		file=fiesta.dof
  	}
         model_collide
        {
         file=buda.dof
         }
 	model_light_l
  	{
    		file=lights.dof
  	}
        model_lightroad_l
        {
            file=lights.dof
        }
        model_braking_l
        {
        file=brakes.dof
        } 
  	model_reverse_l
  	{
    		file=rev.dof
  	}
  	width=1.683
  	height=1.432
  	length=3.916
  	manual_box=1
}
steer
{
        x=0.297
  	y=0.25
  	z=0.18
  	radius=10
  	xa=20
  	lock=1080
  	linearity=0.1
  	model
  	{
    		file=volante.dof
  	}
}
engine
{
   mass=60
   idle_rpm=750
   max_rpm=6550
   max_torque=146
   curve_torque=torque.crv
   autoclutch_rpm=3000
   starter=1
   starter_torque=105
   start_stalled=1
   enable_stall=1
   stall_rpm=500
   start_rpm=1914
   shifting
   {
      automatic=0
      shift_up_rpm=5200
      shift_down_rpm=1200
       time_to_declutch=100
      time_to_clutch=100
      time_in_neutral=150
      time_to_declutch_down=150
      time_to_clutch_down=120
      time_in_neutral_down=150
   }
   inertia
   {
      engine=0.25
      final_drive=0.1
   }
   braking_coeff=1.2
   rolling_friction_coeff=0.1
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.33
    inertia=0.1
  }
  gear1
  {
    ratio=3.58
    inertia=0.1
  }
  gear2
  {
    ratio=1.93
    inertia=0.08
  }
  gear3
  {
    ratio=1.28
    inertia=0.06
  }
  gear4
  {
    ratio=0.95
    inertia=0.04
  }
 gear5
  {
    ratio=0.76
    inertia=0.02
  }
}
clutch
{
   max_torque=360
}
handbrakes
{
   wheels=23
}
abs
{
  enable=0
   max_velocity_ratio=1.3
   min_velocity_ratio=1.7
}
traction_control
{
  enable=0
   max_velocity_ratio=1.3
   min_velocity_ratio=1.7
}
differential
{
	type=1
	ratio=5
	inertia=0.1
	locking_coeff=25
	output0=0
	output1=1
}
aero
{
	body
	{
		center=0 0 0
		cx=0.47
		area=2
	}
	wings=1
	wing0
	{
		name=Rear spoiler
		span=1
		cord=1
		coeff_drag=0
		coeff_down=10
		center=0 0 -1
		angle=0
		angle_offset=10
	}
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=5000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=5000
	}
}
susp_front
{
	y=0.095
	z=1.1
	restlen=0.44
  	minlen=0.30
  	maxlen=0.65
  	k=40000
  	bump_rate=4500
  	bump_function=0
  	rebound_rate=2500
  	rebound_function=0
  	anti_pitch=0
  	camber_change_per_m=0.2
    	caster_offset=0.0
  	roll_center
  	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}
susp_rear
{
	y=0.075
	z=-1.34
	restlen=0.44
  	minlen=0.30
  	maxlen=0.65
  	k=40000
  	bump_rate=4500
  	bump_function=0
  	rebound_rate=2500
  	rebound_function=0
  	anti_pitch=0
  	camber_change_per_m=0.2
    	caster_offset=0.0
  	roll_center
  	
	{
		x=0
		y=-0.504	;120mm
		z=0
	}
}
susp0~susp_front
{
	x=0.696
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.696
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}
susp2~susp_rear
{
	x=0.696
}
susp3~susp_rear
{
	x=-0.696
}
tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}
tire_model_rear
{
	damping_predict_lat=0
	damping_predict_long=0
}
pacejka
{
    	; Lateral force
	a0=1.4
	a1=-40
	a2=1550
	a3=2100
	a4=10
	a5=0.01
	a6=-0.15
	a7=-0.4
	a8=0.003
	a9=-0.002
	a10=0.16
	a111=-11
	a112=0.045
	a12=0.17
	a13=-23.5

	; Longitudinal force
	b0=1.55
	b1=-70
	b2=1500
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0.015
	b10=0.25
	b11=-80
	b12=350

	c0=2.3
	c1=-3.8
	c2=-3.14
	c3=-1.16
	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.14
	c15=-1.029
	c16=0.27
	c17=-1.1
	optimal_slipratio=0.15
	optimal_slipangle=0.2
}
wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
	lock=60
	mass=15.8
	inertia=0.3990519
	radius=0.305
	rolling_coeff=0.015
	max_braking=4000
	braking_factor=0.75
	tire_rate=160000
	pacejka~pacejka
	}
}
wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	power_gearing=0 	;FWD
	mass=15.8
	inertia=0.3990519
	radius=0.305
	rolling_coeff=0.0150
	max_braking=2500
	braking_factor=0.25
	max_handbrake_torque=3800
	tire_rate=160000
	pacejka~pacejka
	}
}
wheel0~wheel_front
{
	x=0
	ackerman=1.1 
	toe=-0.1695
	camber=-0.2	
	model
	{
		file=left.dof
	}
	model_brake
	{
		file=left_caliper.dof
	}
}
wheel1~wheel_front
{
	x=0
	ackerman=1.1
	toe=0.1695
	camber=-0.2
	model
	{
		file=right.dof
	}
	model_brake
	{
		file=right_caliper.dof
	}
}
wheel2~wheel_rear
{
	x=0
	toe=-0.133
	camber=0	
	model
	{
		file=left.dof
	}
	model_brake
	{
		file=left_caliper.dof
	}
}
wheel3~wheel_rear
{
	x=0
	toe=0.133
	camber=0
	model
	{
		file=right.dof
	}
	model_brake
	{
		file=right_caliper.dof
	}
}
camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.31
  	y=0.53
  	z=-0.3
  }
  offset_to
  {

    x=0.35
    y=-0.7
    z=12
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
          x=0.3382
  	y=0.53
  	z=-0.3
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
        x=0.3382
  	y=0.53
  	z=-0.3
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
       x=-0.3382
  	y=0.53
  	z=-0.3
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  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.3
    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=-7
  }
  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=-7
  }
  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
{
  offset
  {
    x=0.0
    y=1.55
    z=-3.5
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.50
    z=-0.0450
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
starter
{
sample=starter.wav
}
horn
{
sample=horn.wav
}
skid
  	{
    		sample=skid.wav
		sample2=skid.wav
  	}
  	acc_all
  	{
    		attack=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=0.4
			sample=dha/idle.wav
      			min=300
                              attack=200
      			max=1000
                              decay=1000
      			natural=1000
    		}
		smp1~audio.acc_all
    		{
      			volume=0.9
     			sample=dha/4000.wav
      			min=2000
      			max=9000
                              attack=1000
                              decay=1000
      			natural=3500
		}
        }
  	decelerate_out
  	{
   				smp0~audio.acc_all
    		{
      			volume=0.4
			sample=dha/idle.wav
      			min=300
                              attack=200
      			max=1000
                              decay=1000
      			natural=1000
    		}
		smp1~audio.acc_all
    		{
      			volume=0.9
     			sample=dha/4000.wav
      			min=2000
      			max=9000
                              attack=1000
                              decay=1000
      			natural=3500
		}
      }	
	accelerate_in
  	{
    				smp0~audio.acc_all
    		{
      			volume=0.3
			sample=dha/idlein.wav
      			min=300
                              attack=200
      			max=1000
                              decay=1000
      			natural=1000
    		}
		smp1~audio.acc_all
    		{
      			volume=0.85
     			sample=dha/4000in.wav
      			min=2000
      			max=9000
                              attack=1000
                              decay=1000
      			natural=3500
		}
        }
  	decelerate_in
  	{
   				smp0~audio.acc_all
    		{
      			volume=0.3
			sample=dha/idlein.wav
      			min=300
                              attack=200
      			max=1000
                              decay=1000
      			natural=1000
    		}
		smp1~audio.acc_all
    		{
      			volume=0.85
     			sample=dha/4000in.wav
      			min=2000
      			max=9000
                              attack=1000
                              decay=1000
      			natural=3500
		}
      }	
wind
  {
    smp0~audio.acc_all
    {
      sample=wiater.wav
      volume=1.2
      min=5
      max=150
      attack=10
      natural=20
    }
  }
}
traction_control
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.05
	enable=0
}
abs
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.1
	enable=1
}