car
{
  name=Mazda 2
  year=2011 Engine: 1.4 MZ 91 KM
  credits=Oryginal model Forza 3. Conversion to Racer MaxSSJ&Lucas 
  comments=Thanks for ExTazer
  id=LEX_ISF_09
  version=090b
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.3
    length=4.7
    offset_z=-0.005
  }
  cg
  {
	x=0
	y=-0.19
	z=0.33
  }
}
fuel
{
 bsfc=15e-5
 max=60
 type=0
}
graphics
{
  shadow
  {
    model
    {
      file=body.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
    model0
    {
      file=interior.dof
    }
    model1
    {
      file=interior1.dof
    }
    model2
    {
      file=halogeny.dof
    }
    model3
    {
      file=l.dof
    }
    model4
    {
      file=iright.dof
    }
    model5
    {
      file=ileft.dof
    }
  }
}
lights
{
  light0
  {
    texture=light.tga
    fov=35
    aspect=4.5
    z=0.2
    pitch=0
    far=100
  }
  light1
  {
    texture=light.tga
    fov=25.0
    aspect=1
    z=2
    pitch=10
  }
}
body
{
	x=0
	y=0
	z=0
	mass=1040
	inertia
	{
          x=1900
          y=2100
          z=460
	}
	width=1.68
	height=1.49
	length=4.3
	manual_box=1
	model
	{
		file=body.dof
	}
	model_incar
	{
		file=body.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
      model_collide
      {
            file=colide.dof
      }
      model_reverse_r
      {
            file=cofania.dof
      }
}
lights
{
  light0
  {
    texture=light.tga
    fov=35
    aspect=4.5
    z=0.2
    pitch=0
    far=100
  }
  light1
  {
    texture=light.tga
    fov=25.0
    aspect=1
    z=2
    pitch=10
  }
}
steer
{
	x=0.3428
	y=0.6682
	z=0.4320
	xa=20
	lock=900
	linearity=0.49
	model
	{
		file=kierownica.dof
	}
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=950
	max_rpm=7000
	stall_rpm=1500
	start_rpm=1100
	start_stalled=1
	starter_torque=110
	autoclutch_rpm=1200

	curve_torque=102.crv
	max_torque=1
	shifting
	{
		automatic=0
		shift_up_rpm=6150
		shift_down_rpm=3000
		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.28
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}
gearbox
{
	gears=6

	gear0
	{
		ratio=-3.909
		inertia=0.02
	}

	gear1
	{
		ratio=3.909
		inertia=0.01
	}

	gear2
	{
		ratio=2.238
		inertia=0.02
	}

	gear3
	{
		ratio=1.520
		inertia=0.03
	}

	gear4
	{
		ratio=1.156
		inertia=0.04
	}

	gear5
	{
		ratio=0.946
		inertia=0.06
	}
}
clutch
{
	max_torque=525
}
differential
{
  type=1
  ratio=3.368
  inertia=0.01
  locking_coeff=100
  friction=80
  output0=0
  output1=1
}
handbrakes
{
	wheels=23
}
aero
{
	body
	{
		center=0 0 0
		cx=0.31
		area=2.3
	}
	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=41000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=34000
	}
}
susp_front
{
      y=0.44
      z=1.26
  	restlen=0.450
  	minlen=0.230
  	maxlen=0.520
  	k=34000
 	bump_rate=1600
  	bump_function=0
  	rebound_rate=5100
  	rebound_function=0
  	anti_pitch=0.1
  	camber_change_per_m=0.300
  	roll_center
  	{
    		x=0
    		y=-0.600
    		z=0
  	}
}
susp_rear
{
      y=0.52
      z=-1.24
  	restlen=0.500
  	minlen=0.300
  	maxlen=0.500
  	k=27000
  	bump_rate=1300
  	bump_function=0
  	rebound_rate=2800
  	rebound_function=0
  	anti_pitch=0.2
  	camber_change_per_m=0.4
    	caster_offset=-0.045
  	roll_center
  	{
    		x=0
    		y=-0.625
    		z=0
  	}
}
susp0~susp_front
{
	x=0.75
	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.75
	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.75
}
susp3~susp_rear
{
	x=-0.75
}
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=1300
    	a3=2000
    	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=1300 
    	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
	lock=52
	mass=15.8
	inertia=0.3990519
	radius=0.33
	rolling_coeff=0.015
	max_braking=1325
	braking_factor=1
	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.33
	rolling_coeff=0.0150
	max_braking=500
	braking_factor=0.75
	max_handbrake_torque=3500
	tire_rate=160000
	pacejka~pacejka
	}
}
wheel0~wheel_front
{
	x=0.02
	ackerman=1.1 
	toe=-0.1695
	camber=0	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=leweprzod.dof
	}
}
wheel1~wheel_front
{
	x=-0.02
	ackerman=1.1
	toe=0.1695
	camber=0
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=praweprzod.dof
	}
}
wheel2~wheel_rear
{
	x=0.02
	toe=-0.133
	camber=0	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=leweprzod.dof
	}
}
wheel3~wheel_rear
{
	x=-0.02
	toe=0.133
	camber=0
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=praweprzod.dof
	}
}
camera0
{
  name=Driver
  fov=70
  model=0
  wheels=1
  view=0
  offset
  {
    x=0.349
    y=0.8634
    z=-0.18
  }
  offset_to
  {
    x=0.43
    y=-0.5
    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=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.8634
    z=-0.18
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.8634
    z=-0.18
  }
  offset_to
  {
    x=10.43
    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=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.8634
    z=-0.18
  }
  offset_to
  {
    x=-9.57
    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=0
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.8634
    z=-0.25
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    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.01
    		y=-0.70
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
} 
audio
{
  skid
  {
    sample=skid.wav
  }
  accelerate_out
  {
    smp0
    {
      sample=idlei5.wav
      volume=3
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1
    { 
      sample=engine2m.wav 
      volume=1.2
      min=1000
      max=4000
      natural=9000 
      decay=2000
      attack=2000
    }
    smp2
    { 
      sample=engine2.wav 
      volume=1.45
      min=3500
      max=10000
      natural=4100 ;5000 
      attack=1600
    }
    smp3
      {
	   volume=0.25
         sample=Tturbo.wav
         min=3500
         max=7000
         natural=2050
	   attack=1100
          decay=3000
      }
  }  
  decelerate_out
  {
    smp0
    {
      sample=idlei5.wav
      volume=4
      min=300
      max=800
      decay=500
      natural=1800
    }
    smp1
    {
      sample=3000.wav
      volume=0.6
      min=1000
      max=3000
      attack=500
      decay=5000
      natural=4500
    }
    smp2
    {
      sample=decc.wav
      volume=1.3
      min=5000
      max=10000
      attack=5000
      natural=7000
    }
   }
  accelerate_in
  {
    smp0
    {
      sample=idlein.wav
      volume=3
      min=500
      max=1990
      decay=500
      natural=1500
    }
    smp1
    { 
      sample=2000in.wav 
      volume=1.5
      min=1100
      max=4000
      natural=4600 
      attack=1500
    }
    smp2
    { 
      sample=3000in.wav 
      volume=1.1
      min=1100
      max=10000
      natural=6500 
      attack=500
    }
   smp3
    { 
     sample=engine2.wav 
      volume=1.6
      min=2500
      max=10000
     natural=4100 ;5000 
      attack=1600
    }
  }  
  decelerate_in
  {
    smp0
    {
      sample=idlein.wav
      volume=4
      min=500
      max=1500
      decay=500
      natural=1500
    }
    smp1
    { 
      sample=2000in.wav 
      volume=1.2
      min=1000
      max=4000
      natural=6300 
      attack=2000
    }
   smp2
    {
      sample=decc.wav
      volume=1
      min=5000
      max=10000
      attack=5000
      natural=7000
    }
  }  
  wind
  {
     volume=3
     pitch_scale=0
     pitch_offset=50
     smp0
     {
        sample=wind.wav
        min=25
        max=100
        attack=33
        decay=120
        natural=80
     }
  }
}