
car
{
  name=BMW E24 FL M635CSi (Coupe)
  year=1985(0-100:6,5s.;vmax:257km/h)
  credits=Converted By Fabikan75
  comments=Poj:3453cc;Moc:286KM(210kW) przy 4800 obr.\min.;Mmo:340Nm przy 4500 obr.\min.
  wheels=4
  id=BMW_635
  version=053b
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.31
    length=5.06
  }
  cg
  {
    x=0
    y=-0.14
    z=0.20
  }
  ff_factor=0.45
}
graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=bod.dof
    }
  }

	generic
	{
		model0
		{
		file=body1.dof
		}
		model1
		{
		file=body2.dof
		}
		model2
		{
		file=body3.dof
		}
		model3
		{
		file=body4.dof
		}
	}
}
body
{
  	mass=1500
        restitution_coeff=0.24
  	inertia
  	{
    		x=2300
    		y=2070
    		z=1380
  	}
  	model
  	{
    		file=body1.dof
  	}
  	model_incar
  	{
    		;file=body.dof
  	}
 	model_light_l
  	{
    		file=lon.dof
  	}
  	model_braking_l
  	{
    		file=stop.dof
  	}
  	model_reverse_l
  	{
    		file=wsteczny.dof
  	}
  	width=1.725
  	height=1.365
  	length=4.755
  	manual_box=1
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=1.3
    ; 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.3
    ; Distance to car
    z=1.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
        x=0.35
  	y=0.23
  	z=0.44
  	radius=10
  	xa=16
  	lock=900
  	linearity=1
  	model
  	{
    		file=str.dof
  	}
}
engine
{
  mass=0
  idle_rpm=800
  max_rpm=7500
  max_torque=340
  curve_torque=s38b35.crv
  autoclutch_rpm=1050
  starter=1
  starter_torque=90
  start_stalled=1
  stall_rpm=550
  start_rpm=1250
  torque_reaction=0.5
  shifting
  {
    automatic=0
    shift_up_rpm=6200
    shift_down_rpm=3400
    time_to_declutch=375
    time_to_clutch=175
    time_in_neutral=50
    time_to_declutch_down=375
    time_to_clutch_down=175
    time_in_neutral_down=50
  }
  inertia
  {
    engine=0.26
    final_drive=0.1
  }
  braking_coeff=1.5
  ;sample=
  ;sample_rpm=
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.68
    inertia=0.02
    linearity=1
  }
  gear1
  {
    ratio=4
    inertia=0.02
    linearity=1
  }
  gear2
  {
    ratio=2.2
    inertia=0.034
    linearity=1.2
  }
  gear3
  {
    ratio=1.5
    inertia=0.05
    linearity=1.4
  }
  gear4
  {
    ratio=1.12
    inertia=0.07
    linearity=1.6
  }
  gear5
  {
    ratio=0.9
    inertia=0.09
    linearity=1.8
  }
}
clutch
{
  max_torque=600
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=4
  inertia=0.1
  locking_coeff=135
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.37
    area=1.86
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5.3
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=38500
  }
}
susp_front
{
  y=-0.15
  z=1.35
  restlen=0.308
  minlen=0.15							
  maxlen=0.45
  k=25000
  bump_rate=1750
  rebound_rate=4250
  bump_function=0
  bump_max=1755
  rebound_function=3
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.35
    z=0
  }
}
susp_rear
{
  y=-0.15
  z=-1.29
  restlen=0.308		
  minlen=0.15										
  maxlen=0.45										
  k=25000		
  bump_rate=2250
  rebound_rate=5000
  bump_function=3
  bump_max=2250
  rebound_function=0
  anti_pitch=0.08
  camber_change_per_m=0.05
  roll_center
  {
    x=0
    y=-0.35
    z=0
  }
}
susp0~susp_front
  {
    x=0.71
    toe_change_per_m=0.029	
    camber_change_steering=0.1062
    caster_offset=-0.017
  }
susp1~susp_front
  {
    x=-0.71
    toe_change_per_m=-0.029
    camber_change_steering=-0.1062
    caster_offset=-0.017
  }
susp2~susp_rear
  {
    x=0.71
    toe_change_per_m=0.019
  }
susp3~susp_rear
  {
    x=-0.71
    toe_change_per_m=-0.019	
  }
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.5
    a1=-35
    a2=1400			;FRONT wheels grip
    a3=500			;UNDERSTEER tendency. higher value - less understeer
    a4=9
    a5=0.015
    a6=-0.25
    a7=1.0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-70
    b2=1200			;REAR wheels grip
    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.11
    optimal_slipangle=0.159
}
wheel_front
{
  steering=1
  lock=65
  mass=20
  inertia=1.5
  radius=0.35
  rolling_coeff=0.0180
  friction_road=1
  max_braking=1500
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  steering=0
  mass=20
  inertia=1.5
  radius=0.35
  rolling_coeff=0.0205
  friction_road=1
  max_braking=550
  max_handbrake_torque=1500
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  a2=1500
  a3=2100
  a4=9.5
  b2=1550
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.2247
  toe=0.36
  camber=-0.33
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-1.25	;-1.82
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Close Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera1
{
  offset
  {
    x=-0.006250
    y=3.
    z=-7.495010
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=180.000000
  }
  name=High Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera2
{
 offset
 {
  x=0
  y=0.15
  z=3.00000
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Hi-Speed Bumper Cam
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=85
 model=2
 wheels=0
 view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.7
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood Cam
  fov=60
  model=0
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Effect Cam 1
}

camera5
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0.0
  y=-0.25
  z=-5.5
 }
 angle
 {
  x=6.0
  y=30.853992
  z=0.0
 }
 name=Effect Cam 2
 fov=60
 model=0
 wheels=1
 view=1
}
camera6
{
 follow
 {
  pitch=0
  yaw=1
  roll=0
 }
 offset
 {
  x=0
  y=0
  z=-9
 }
 angle
 {
  x=3.861111
  y=33.853992
  z=-14.322908
 }
 fov=80
 model=0
 wheels=1
 view=0
 name=Effect Cam 3
}
camera7
{
 offset
 {
  x=1.150625
  y=0.2
  z=0.350000
 }
 angle
 {
  x=-2.00
  y=-175.472336
  z=-7.017359
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=0
 view=0
 name=Effect Cam 4 - Wheel
}
camera8
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=0.25
  z=-9
 }
 angle
 {
  x=10
  y=150
  z=0
 }
 fov=25
 model=0
 wheels=1
 view=0
 name=Effect Cam 5
}
camera9
{
	name=Driver
	fov=60
	model=0
	wheels=0
	view=1
	name=Inside
	fov=55

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.358
		y=0.55
		z=-0.10
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=1.000000
		y=180.000000
		z=0.000000
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
audio
{
  skid
  {
    ; New style (multiple samples mixed)
    ; Master volume for this set
    volume=1
    ; Acceleration
	; Outside of the car
    smp0
    {
      volume=0.4
      sample=skid01.wav
      min=0.3
      max=0.3
      attack=0.2
      decay=0.4
    }
    smp1
    {
      volume=0.6
      sample=skid02.wav
      min=0.6
      max=20
      attack=0.4
      decay=0
    }
  }
  acc_all
  {
    attack=1000
    decay=1000
	;pitch_scale=3
	; pitch = pitch_scale * pitch_input + pitch_offset
	;pitch_offset=50
  }
  accelerate_out
  {

smp0~audio.acc_all
    {
      sample=768.wav
      min=500
      max=1000
      decay=900
      volume=1
 }
    smp1~audio.acc_all
    {
      sample=1148.wav
      min=900
      max=1600
      attack=900
      decay=1500
      volume=1
}
    smp2~audio.acc_all
    {
      sample=1697.wav
      min=1500
      max=2500
      attack=1500
      decay=2400
      volume=1

   }
    smp3~audio.acc_all
    {
      sample=2831.wav
      min=2400
      max=3500
      decay=3400
      attack=2400
      volume=1
}
    smp4~audio.acc_all
    {
      sample=3768.wav
      min=3400
      max=4200
      attack=3400
      deacy=4100
      volume=1

 }
    smp5~audio.acc_all
    {
      sample=4838.wav
      min=4100
      max=6000
      attack=4100
      deacy=9000
      volume=1
}
    smp6~audio.acc_all
    {
      sample=7067.wav
      min=5900
      max=9000
      attack=5900
      volume=1
 }
  decelerate_out
  {

smp0~audio.acc_all
    {
      sample=768.wav
      min=500
      max=1000
      decay=900
      volume=1
 }
    smp1~audio.acc_all
    {
      sample=1148.wav
      min=900
      max=1600
      attack=900
      decay=1500
      volume=1
}
    smp2~audio.acc_all
    {
      sample=1697.wav
      min=1500
      max=2500
      attack=1500
      decay=2400
      volume=1

   }
    smp3~audio.acc_all
    {
      sample=2831.wav
      min=2400
      max=3500
      decay=3400
      attack=2400
      volume=1
}
    smp4~audio.acc_all
    {
      sample=3768.wav
      min=3400
      max=4200
      attack=3400
      deacy=4100
      volume=1

 }
    smp5~audio.acc_all
    {
      sample=4838.wav
      min=4100
      max=6000
      attack=4100
      deacy=9000
      volume=1
}
    smp6~audio.acc_all
    {
      sample=7067.wav
      min=5900
      max=9000
      attack=5900
      volume=1
   }
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.09
  enable=0
}

abs
{
  max_velocity_ratio=1.2
  min_velocity_ratio=1.1
  enable=0
}