car
{
   name=FSOPolonezCaro1.6BETA
   year=1996
   credits=Model by czeslej.Remake and Conversion by Kubas.
   comments=Suspension by Skoda.Special thanks to Damian A/Skoda/lukasz-gti and PFR forum.
   id=PlusPolonez
   version=052b5
   wheels=4
   skid
   {
      sample=skid.wav
   }
   shadow
   {
      texture=shadow.tga
      width=1.825
      length=3.96
      offset_z=0.0
      offset=0
   }
   cg
   {
      x=0
      y=-0.2
      z=0.135
   }
}
body
{
   mass=1150
   restitution_coeff=1.72
   inertia
   {
      x=2200
      y=2400
      z=900
   }
   x=0
   y=0
   z=0
   width=1.825
   height=1.4
   length=3.96
   manual_box=1
   cockpit_start=1
   cockpit_length=1
   model
   {
      file=body.dof
   }
   model_braking_l
   {
      file=brake.dof
   }
   model_incar
   {
      file=body.dof
   }
   model_light_l
   {
      file=swiatla.dof
   }
}
steer
{
  ; Position (stub gfx)
  x=0.35
  ;-0.37
  y=0.09
  z=0.59
  ;0.45
  ; Graphical representation
  radius=08
  ; Rotation towards the driver
  xa=18
  linearity=0.3
  ; Max angle of rotation (angle = -lock/2..lock/2)
  lock=930
  ;930*, 260 orig
  model
  {
    file=swheel.dof
  }
}
engine
{
  mass=65
  max_rpm=7100
  idle_rpm=855
  stall_rpm=400
  start_rpm=950
  autoclutch_rpm=1000
  starter=0
  starter_torque=36
  curve_torque=torque.crv
  max_torque=130
  start_stalled=0
  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=0.90
  rolling_friction_coeff=0.55
  ;sample=rotor.wav
  ;sample_rpm=6000
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.526
    inertia=0.02
    linearity=1
  }
  gear1
  {
    ratio=3.778
    inertia=0.02
    linearity=1
  }
  gear2
  {
    ratio=1.944
    inertia=0.034
    linearity=1.2
  }
  gear3
  {
    ratio=1.309
    inertia=0.05
    linearity=1.4
  }
  gear4
  {
    ratio=1.099
    inertia=0.07
    linearity=1.6
  }
  gear5
  {
    ratio=0.999
    inertia=0.09
    linearity=1.8
  }
}
clutch
{
  max_torque=245
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.870
  locking_coefficient=50
}
aero
{
   body
   {
      center=0 0 0
      cx=0.33
      area=2.2
   }
   wings=0
   wing0
   {
      name=wings
      span=0
      cord=0
      coeff_drag=0
      coeff_down=0
      center=0.000 0.000 0.000
      angle=0
      angle_offset=0
   }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=1500
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=1900
   }
}
susp_front
{
   y=1
   z=1.6
   anti_pitch=0.15 [0.15]
   restlen=0.34 [0.39]
   minlen=0.13 [0.27]
   maxlen=0.54 [0.54]
   k=38000 [38000]
   bump_function=3 [3]
   bump_rate=1250 [7000]
   bump_max=1500 [1500]
   rebound_function=3 [3]
   rebound_rate=2600 [6700]
   radius=.04 [.04]
   slices=5 [5]
   roll_center
   {
      x=0
      y=-0.62
      z=0
   }
}
susp_rear
{
   y=0
   z=-1.3366
   anti_pitch=0.15 [0.15]
   restlen=0.34 [0.48]
   minlen=0.13 [0.27]
   maxlen=0.54 [0.5]
   k=35000 [35000]
   bump_fuction=2.85 [2.85]
   bump_max=2500 [2500]
   bump_rate=1100 [6000]
   rebound_rate=1800 [5500]
   rebound_function=2.85 [2.85]
   radius=.04 [.04]
   slices=5 [5]
   roll_center
   {
      x=0
      y=-0.57
      z=0
   }
}
susp0~susp_front
{
   x=0.7
   y=-0.15
   z=1.38
   roll_center
   {
      x=0
      y=-0.52
      z=0
   }
   restlen=0.39 [0.34]
   minlen=0.17 [0.13]
   maxlen=0.54 [0.54]
   k=16000 [38000]
   bump_function=3 [3]
   bump_rate=1250 [7000]
   bump_max=1500 [1500]
   rebound_function=3 [3]
   rebound_rate=2600 [6700]
}
susp1~susp_front
{
   x=-0.7
   y=-0.15
   z=1.38
   roll_center
   {
      x=0
      y=-0.52
      z=0
   }
   restlen=0.39 [0.34]
   minlen=0.17 [0.13]
   maxlen=0.54 [0.54]
   k=16000 [38000]
   bump_function=3 [3]
   bump_rate=1250 [7000]
   bump_max=1500 [1500]
   rebound_function=3 [3]
   rebound_rate=2600 [6700]
}
susp2~susp_rear
{
   x=0.7
   y=-0.1
   z=-1.22
   roll_center
   {
      x=0
      y=-0.57
      z=0
   }
   restlen=0.48 [0.44]
   minlen=0.17 [0.20]
   maxlen=0.54 [0.5]
   k=20000 [35000]
   bump_fuction=2.85 [2.85]
   bump_max=2500 [2500]
   bump_rate=1100 [6000]
   rebound_rate=1800 [5500]
   rebound_function=2.85 [2.85]
}
susp3~susp_rear
{
   x=-0.7
   y=-0.1
   z=-1.22
   roll_center
   {
      x=0
      y=-0.57
      z=0
   }
   restlen=0.48 [0.44]
   minlen=0.17 [0.20]
   maxlen=0.54 [0.5]
   k=20000 [35000]
   bump_fuction=2.85 [2.85]
   bump_max=2500 [2500]
   bump_rate=1100 [6000]
   rebound_rate=1800 [5500]
   rebound_function=2.85 [2.85]
}

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
{
   a0=1.6
   a1=-30
   a2=1600;1650
   a3=2400
   a4=8.7
   a5=0.014
   a6=-0.24
   a7=1.0
   a8=-0.03
   a9=-0.0013
   a10=-0.15
   a111=-8.5
   a112=-0.29
   a12=17.8
   a13=-2.4
   b0=1.6
   b1=-60
   b2=1750;1900
   b3=23.3
   b4=375
   b5=0.05
   b6=0
   b7=0.055
   b8=-0.024
   b9=0.014
   b10=0.26
   c0=2.2
   c1=-3.9
   c2=-3.9
   c3=-1.26
   c4=-8.2
   c5=0.025
   c6=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.1
   optimal_slipangle=0.15
}
wheel_front
{
   y=0
   z=0
   max_braking=1500
   braking_factor=1
   steering=1
   powered=0
   lock=56
   ackerman=1
   mass=11
   inertia=0.7
   radius=0.3266
   width=0.155		;185/55 R14
   slices=20
   friction_road=1.7
   max_handbrake_torque=3000
   tire_rate=290000
   pacejka~pacejka
   {
     a0=1.55
      a1=-50
      a2=1750
      a3=2300
      b0=1.625
      b1=-100
      b2=1750
      b4=400
      c1=-4.0
      c3=-1.31
      c4=-8.0
      optimal_slipratio=0.08
      optimal_slipangle=0.17
   }
}
wheel_rear
{
   y=0
   z=0
   max_braking=700
   braking_factor=1
   steering=0
   powered=1
   mass=11
   inertia=0.78
   radius=0.32485
   width=0.185		;185/55 R14
   slices=20
   friction_road=1.7
   max_handbrake_torque=3000
   tire_rate=290000
   pacejka~pacejka
   {
      a0=1.55
      a1=-50
      a2=1750
      a3=2300
      b0=1.625
      b1=-100
      b2=1750
      b4=400
      c1=-4.0
      c3=-1.31
      c4=-8.0
      optimal_slipratio=0.08
      optimal_slipangle=0.17
   }
}
wheel0~wheel_front
{
   x=0
   camber=-1.5
   toe=0
   model
   {
      file=left.dof
   }
   model_brake
   {
      file=fl.dof
   }
   y=0
   z=0
   ackerman=1
   mass=11
   max_braking=1200
   radius=0.3266
   inertia=0.7
   lock=56
   braking_factor=1
   max_handbrake_torque=3000
   tire_rate=290000
   steering=1
}
wheel1~wheel_front
{
   x=0
   camber=-1.5
   toe=0
   model
   {
      file=right.dof
   }
   model_brake
   {
      file=fr.dof
   }
   mass=11
   max_braking=1200
   radius=0.3266
   inertia=0.7
   lock=56
   braking_factor=1
   max_handbrake_torque=3000
   tire_rate=290000
   y=0
   z=0
   steering=1
}
wheel2~wheel_rear
{
   x=0
   camber=-0.5
   toe=0
   model
   {
      file=left.dof
   }
   model_brake
   {
      file=bl.dof
   }
   mass=11
   max_braking=775
   radius=0.32485
   inertia=0.78
   lock=0
   braking_factor=1
   max_handbrake_torque=2800
   tire_rate=290000
   y=0
   z=0
   steering=0
}
wheel3~wheel_rear
{
   x=0
   camber=-0.5
   toe=0
   model
   {
      file=right.dof
   }
   model_brake
   {
      file=br.dof
   }
   mass=11
   max_braking=775
   radius=0.32485
   inertia=0.78
   lock=0
   braking_factor=1
   max_handbrake_torque=2800
   tire_rate=290000
   y=0
   z=0
   steering=0
      }
;##########################################
audio
{
	skid
	{
		sample=Skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
  	shiftout
  	{
    		sample=Shift_Out.wav
  	}
  	shiftin
  	{
    		sample=Shift_In.wav
  	}
	accelerate_out
	{
		smp0
		{	
			      sample=idle.wav
			      min=0
			      max=490
			      decay=1000
			      natural=2900
			      volume=0.4
		}
		smp1
		{
			      sample=engine.wav
			      min=500
			      max=7000
			      attack=500
			      decay=1000
			      natural=4500
		}	      volume=3.0
               smp2
		{
			      sample=oddwhine.wav
			      min=3000
			      max=5000
			      attack=500
			      decay=1000
			      natural=3000
		}	      volume=0.0			
}

	decelerate_out
	{

		}
		smp1
		{
			      sample=engine.wav
			      min=500
			      max=9000
			      attack=500
			      decay=1000
			      natural=6100
			      volume=3.5
		}
	}
	wind
	{
		volume=2.5
		pitch_scale=0
		pitch_offset=50
		smp0
		{
			sample=road.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
		}
		
	}
}
camera0
{
  	name=Chase Close #2
  	model=0
  	wheels=0
  	view=0
  	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
  	}
}

camera1
{
  	name=Chase Close
  	model=0
  	wheels=0
  	view=0
  	fov=60
  	offset
  	{
    		x=0.00
    		y=1.00
    		z=-4.70
  	}
  	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
  	}
}

camera2
{
  	name=Bonnet View
  	fov=75
	wheels=0
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	offset
  	{
    		x=0.00
    		y=-0.65
    		z=0.65
  	}
  	angle
  	{
    		x=1.00
    		y=180.00
    		z=0.00
  	}
}

camera3
{
  	name=Bumper View
  	model=2
  	wheels=0
  	view=2
  	fov=80
  	offset
  	{
    		x=0.00
    		y=0.15
    		z=2.10
  	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=0.00
    		y=180.00
    		z=0.00
  	}
}

camera4
{
  	name=Left Front Wheel
  	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
  	}
}

camera5
{
  	name=Front View
  	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=Temp
  	model=0
  	wheels=1
  	view=1
  	fov=60
  	offset
  	{
    		x=0.00
    		y=-0.25
    		z=-5.50
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
  	angle
  	{
    		x=6.00
    		y=31.00
    		z=0.00
  	}
}

camera7
{
  	name=Temp #2
  	fov=35
  	model=0
  	wheels=1
  	view=0
  	offset
  	{
    		x=0.00
    		y=0.00
    		z=-9.00
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
  	angle
  	{
    		x=10.00
    		y=150.00
    		z=0.00
  	}
}

camera8
{
  	name=Temp #3
  	model=0
  	wheels=1
  	view=0
  	fov=25
  	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
  	}
}

camera9
{
  	name=Interior View
  	model=1
  	wheels=0
  	view=1
  	fov=72
  	offset
  	{
    		x=0.30
    		y=0.390
    		z=-0.05
  	}
	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
	}

}
