car
{
	name=FSO Polonez MR'87 (v.1.1)
	year=1987
	credits=Model - Wojski; Convert - mintek; Wheels - Siemionek; Special thanks to Chicane, Kura and Piotrek-FSO
  	comments=Update v1.1
  	wheels=4
  	id=polonez_mr87
  	version=090
	ff_factor=0
   shadow
   {
      texture=shadow.tga
      width=1.8
      length=4
      offset_z=0.0
      offset=0
   }
   cg
   {
      x=0
      y=-0.42
      z=0.35
   }
}
   fuel
  	{
  	bsfc=5e-5
  	max=45
  	type=0
	}

	graphics 
{
  generic
	{
	model0
	{
	file=lewy_kierun.dof
	}
	model1
	{
	file=prawy_kierun.dof
	}
	model2
	{
	file=fog.dof
	}
	model3
	{
	file=licznik_fog.dof
	}
	model4
	{
	file=dlugie.dof
	}
	model5
	{
	file=licznik_dlugie.dof
	}
	}
        }
lights
{
    light0
      {
        texture=light.tga
        fov=55
        aspect=5
        z=2
        pitch=0
        far=50
      }
      OLD_light0
      {
        texture=light.tga
        fov=25.0
        aspect=4.0
        z=2
        pitch=10
      }
}
body
{
  	mass=1100
  	model
  	{
    		file=body.dof
  	}
	model_incar
	{
		file=body.dof
	}
 	model_light_l
  	{
    		file=lights.dof
  	}
  	model_braking_l
  	{
    		file=brake.dof
  	}
        model_reverse_l
        {
            file=rev.dof
        }
		model_collide
   {
      file=collibox.dof
   }
   model_lightroad_l
        {
                file=lights_int.dof
        }
   width=1.811
   height=1.194
   length=4.305
  	manual_box=1
}

steer
{
  x=0.33
  ;-0.37
  y=0.0525
  z=0.58
  	radius=10
  	xa=15
  	lock=1360
  	linearity=0.5
  	model
  	{
    		file=swheel.dof
  	}
}

engine
{
  ; Engine rumble - amplitude (try 5000 in your own car.ini)
  rumble_amplitude=5000
  ; RPM at which rumble calculation are skipped (too faint to notice)
  rumble_maxrpm=900
  ; Number of cylinders
  cylinders=4
  ; For V shaped engines, enter the angle (in degrees!) between the rows of cylinders
  cylinder_angle=10
  max_rpm=8000
  idle_rpm=920
  stall_rpm=0
  start_rpm=915
  autoclutch_rpm=920
  starter=1
  starter_torque=60
  curve_torque=1600SLE.crv
  max_torque=1.3
  start_stalled=1
  idle_method=1
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=5300
    shift_down_rpm=3000
    time_to_declutch=399
    time_to_clutch=300
  }
  inertia
  {
    engine=0.26
    final_drive=0.18
  }
  braking_coeff=2.90
  rolling_friction_coeff=0.55
  ;sample=rotor.wav
  ;sample_rpm=6000
}
gearbox
{
   gears=6
   gear0
   {
      inertia=0.2
      ratio=-3.526
   }
   gear1
   {
      ratio=3.778
      inertia=0.1
   }
   gear2
   {
      ratio=1.944
      inertia=0.08
   }
   gear3
   {
      ratio=1.307
      inertia=0.06
   }
   gear4
   {
      ratio=1.1
      inertia=0.02
   }
   gear5
   {
      ratio=0.95
      inertia=0.04
   }
}
clutch
{
	max_torque=150
}

handbrakes
{
	wheels=23
}

differential
count=1
{
  type=1
  ratio=3.9
  locking_coeff=90
  output0=2
  output1=3
}
aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.32
    		area=1.83
  	}
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=400
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=700
   }
}
susp_front
{
  y=-0.12
  z=1.375
  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.065
   z=-1.15
  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.6675
}
susp1~susp_front
{
   x=-0.6675
}
susp2~susp_rear
{
   x=0.656
}
susp3~susp_rear
{
   x=-0.656
}
tire_model_front
{
   damping_predict_lat=0.492
   damping_predict_long=0.018
}
tire_model_rear
{
   damping_predict_lat=0.504
   damping_predict_long=0.020
}
pacejka
{
  ; Pacejka constants (Pacejka96 model)
  model=0
  ; Lateral coefficients
  a0=1.20000
  a1=-42.00000
  a2=780.00000
  a3=1278.00000
  a4=10.65000
  a5=0.00000
  a6=-0.10000
  a7=-0.37000
  a8=0.04000
  a9=0.04000
  a10=0.14600
  a111=-13.80000
  a112=0.00000
  a12=0.00000
  a13=9.30000
  ; Longitudinal coefficients
  b0=1.54600
  b1=-25.00000
  b2=1000.00000
  b3=0.92000
  b4=153.00000
  b5=0.00000
  b6=0.01200
  b7=-0.04000
  b8=0.17200
  b9=0.00000
  b10=0.00000
  ; Aligning moment coefficients
  c0=2.10000
  c1=-2.07000
  c2=-4.20000
  c3=0.00000
  c4=-1.74000
  c5=0.00000
  c6=0.00000
  c7=0.01200
  c8=-2.70000
  c9=3.65000
  c10=0.00000
  c11=-0.02000
  c12=-0.02000
  c13=0.25200
  c14=-0.09400
  c15=-0.43500
  c16=0.13800
  c17=0.16500
  ; Statistical data (SR, SA in radians)
  optimal_slipratio=0.11
  optimal_slipangle=0.16
}

wheel_front
{
   y=0
   z=0
   lock=42
   ackerman=1
   inertia=0.7
   radius=0.266
   width=0.165		;165/70 R13 v 185/70 R13
   slices=32
   friction_road=1
}
wheel_rear
{
   y=0
   z=0
   ackerman=1
   radius=0.266
   width=0.165		;165/70 R13 v 185/70 R13
   slices=32
   friction_road=0.5
   max_handbrake_torque=18000
}
wheel0~wheel_front
{
   x=0
   camber=-1.5
   toe=0
   model
   {
      file=left3.dof
   }
   model_brake
   {
      file=tarczalewa.dof
   }
   y=0
   z=0
   max_braking=1333
   inertia=0.78
   mass=12
   braking_factor=0.85
   max_handbrake_torque=0
   tire_rate=120000
   tire_damping=1200
   steering=1
}
wheel1~wheel_front
{
   x=0
   camber=-1.5
   toe=0
   model
   {
      file=right3.dof
   }
   model_brake
   {
      file=tarczaprawa.dof
   }
   max_braking=1333
   inertia=0.78
   mass=12
   braking_factor=0.85
   max_handbrake_torque=0
   tire_rate=120000
   tire_damping=1200
   y=0
   z=0
   steering=1
}
wheel2~wheel_rear
{
   x=0
   camber=-0.5
   toe=0
   model
   {
      file=left3.dof
   }
   model_brake
   {
      file=tarczalewa.dof
   }
   max_braking=775
   inertia=0.778
   lock=0
   mass=12
   braking_factor=0.15
   tire_rate=120000
   tire_damping=1200
   y=0
   z=0
   steering=0
}
wheel3~wheel_rear
{
   x=0
   camber=-0.5
   toe=0
   model
   {
      file=right3.dof
   }
   model_brake
   {
      file=tarczaprawa.dof
   }
   max_braking=775
   inertia=0.778
   lock=0
   mass=12
   braking_factor=0.15
   tire_rate=120000
   tire_damping=1200
   y=0
   z=0
   steering=0
}
camera0
{
  	name=Widok kierowcy
  	model=1
  	wheels=0
  	view=1
  	fov=64
  	offset
  	{
    		x=0.35
    		y=0.32
    		z=-0.1
  	}
	offset_to
	{
		x=0.00
		y=0.00
		z=10.00
	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=7.00
    		y=-180.00
    		z=0.00
  	}
	src
	{
		mass=5
		k=750
		damping=150
		maxdist=0.05
	}
}

camera1
{
  	name=Spojrzenie w lewo
  	model=1
  	wheels=0
  	view=1
  	fov=64
  	offset
  	{
    		x=0.35
    		y=0.320
    		z=-0.1
  	}
	offset_to
	{
		x=7.50
		y=0.00
		z=10.00
	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=7.00
    		y=-180.00
    		z=0.00
  	}
	src
	{
		mass=5
		k=750
		damping=150
		maxdist=0.05
	}
}

camera2
{
  	name=Spojrzenie w prawo
  	model=1
  	wheels=0
  	view=1
  	fov=64
  	offset
  	{
    		x=0.35
    		y=0.320
    		z=-0.1
  	}
	offset_to
	{
		x=-10.00
		y=0.00
		z=10.00
	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=7.00
    		y=-180.00
    		z=0.00
  	}
	src
	{
		mass=5
		k=750
		damping=150
		maxdist=0.05
	}
}

camera3
{
  	name=Spojrzenie do tylu
  	model=1
  	wheels=0
  	view=1
  	fov=-70
  	offset
  	{
    		x=0.15
    		y=0.390
    		z=-0.1
  	}
	offset_to
	{
		x=-1
		y=0.35
		z=-10
	}
	src
	{
		mass=1
		k=300
		damping=25
		maxdist=0.03
	}
	dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}

camera4
{
  	name=Kamera od tylu
  	model=0
  	wheels=0
  	view=1
  	fov=60.00
  	offset
  	{
    		x=0.00
    		y=1.60
    		z=-4.90
  	}
  	src
  	{
    		mass=6
    		k=600
    		damping=120
   		maxdist=2
  	}
  	angle
  	{
    		x=0.00
    		y=0.00
    		z=0.00
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
   		roll=0
  	}
}

camera5
{
  	name=Kamera od przodu
  	fov=65
  	offset
  	{
    		x=0.00
   		y=0.60
    		z=-4.50
  	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=0
  	}
  	angle
  	{
    		x=15.00
    		y=-360.00
    		z=0.00
  	}
}

camera6
{
  	name=Kamera z kola
  	model=0
  	wheels=0
  	view=0
  	fov=72
  	offset
  	{
    		x=1.15
    		y=0.20
    		z=0.35
  	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=-2.00
    		y=-175.50
    		z=-7.00
  	}
}

camera7
{
  	name=Kamera z dystansu
  	model=0
  	wheels=1
  	view=0
  	fov=20
  	offset
  	{
    		x=0.00
    		y=0.25
    		z=-9.00
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
  	angle
  	{
    		x=10.00
    		y=150.00
    		z=0.00
  	}
}

camera8
{
  	name=Kamera z maski
  	model=0
  	wheels=1
  	view=0
  	fov=70
  	offset
  	{
    		x=0
    		y=0.55
    		z=0.6
  	}
	offset_to
	{
		x=0.00
		y=0.00
		z=10.00
	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=7.00
    		y=-180.00
    		z=0.00
  	}
	src
	{
		mass=5
		k=750
		damping=150
		maxdist=0.05
	}
}

camera9
{
  	name=Kamera ze zderzaka
  	model=0
  	wheels=1
  	view=0
  	fov=75
  	offset
  	{
    		x=0
    		y=-0.3
    		z=2.16
  	}
	offset_to
	{
		x=0.00
		y=0.00
		z=10.00
	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=7.00
    		y=-180.00
    		z=0.00
  	}
	src
	{
		mass=5
		k=750
		damping=150
		maxdist=0.05
	}
}
;##########################################
audio
{
  skid
  {
    sample=Skid.wav
    volume=0.7
  }
  shiftout
  {
    sample=Shift_Out.wav
  }
  shiftin
  {
    sample=Shift_In.wav
  }
  acc_all
  {
    attack=1650
    decay=1650
  }
;sound z zewnątrz
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=sound/16SLE/wolne.wav
      min=1000
      max=1001
      natural=1000
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sound/16SLE/2000.wav
      min=2000
      max=2001
      natural=2600
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sound/16SLE/3000.wav
      min=3000
      max=3001
      natural=3750
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sound/16SLE/4000.wav
      min=4000
      max=4001
      volume=1
      natural=4100
    }
    smp4~audio.acc_all
    {
      sample=sound/16SLE/5000.wav
      min=5000
      max=5001
      volume=1
      natural=5000
    }
	smp5~audio.acc_all
    {
      sample=sound/16SLE/6000.wav
      min=6500
      max=6501
      volume=1
      natural=6300
    }
  }
;ZEJŚCIA
  decelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=sound/16SLE/wolne.wav
      min=1000
      max=1001
      natural=1000
      volume=0.75
    }
    smp1~audio.acc_all
    {
      sample=sound/16SLE/2000.wav
      min=2000
      max=2001
      natural=2600
      volume=0.75
    }
    smp2~audio.acc_all
    {
      sample=sound/16SLE/3000.wav
      min=3000
      max=3001
      natural=3750
      volume=0.75
    }
    smp3~audio.acc_all
    {
      sample=sound/16SLE/4000.wav
      min=4000
      max=4001
      volume=0.75
      natural=4100
    }
    smp4~audio.acc_all
    {
      sample=sound/16SLE/5000.wav
      min=5000
      max=5001
      volume=0.75
      natural=5000
    }
	smp5~audio.acc_all
    {
      sample=sound/16SLE/6000.wav
      min=6500
      max=6501
      volume=0.75
      natural=6300
    }
  }
;sound z wnętrza
  accelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=sound/16SLE/wolne.wav
      min=1000
      max=1001
      natural=1000
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sound/16SLE/2000.wav
      min=2000
      max=2001
      natural=2600
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sound/16SLE/3000.wav
      min=3000
      max=3001
      natural=3750
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sound/16SLE/4000.wav
      min=4000
      max=4001
      volume=1
      natural=4100
    }
    smp4~audio.acc_all
    {
      sample=sound/16SLE/5000.wav
      min=5000
      max=5001
      volume=1
      natural=5000
    }
	smp5~audio.acc_all
    {
      sample=sound/16SLE/6000.wav
      min=6500
      max=6501
      volume=1
      natural=6300
    }
  }
;ZEJŚCIA
  decelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=sound/16SLE/wolne.wav
      min=1000
      max=1001
      natural=1000
      volume=0.75
    }
    smp1~audio.acc_all
    {
      sample=sound/16SLE/2000.wav
      min=2000
      max=2001
      natural=2600
      volume=0.75
    }
    smp2~audio.acc_all
    {
      sample=sound/16SLE/3000.wav
      min=3000
      max=3001
      natural=3750
      volume=0.75
    }
    smp3~audio.acc_all
    {
      sample=sound/16SLE/4000.wav
      min=4000
      max=4001
      volume=0.75
      natural=4100
    }
    smp4~audio.acc_all
    {
      sample=sound/16SLE/5000.wav
      min=5000
      max=5001
      volume=0.75
      natural=5000
    }
	smp5~audio.acc_all
    {
      sample=sound/16SLE/6000.wav
      min=6500
      max=6501
      volume=0.75
      natural=6300
    }
  }
  }