
car
{
  name=BMW M3 E90
  year=2008
  credits=Model by Turn 10 studios, converted by Ako from Racer-Simulator.pl
  comments=5.0 l V8
  wheels=4
  id=E90_M3
  	version=090
  skid
  {
    sample=skid.wav
  }
  
  {
    
    width=2.1
    length=4.5
	offset_z=-.1
	;intensity_dark=0.5
	;intensity_light=0.5
  }
  cg
  {
    x=0
    y=-0.25
    z=0.20
  }
  ff_factor=0.50
}


graphics
{
  	
  	{
    		model
    		{
      			file=BMW M3 E90.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=M3_glass.dof
		}
		model1
		{
		file=Bumper.dof
		}
		model2
		{
		file=Lights.dof
		}
		model6
		{
		file=engine_exhaust.dof
		}
		model7
		{
		file=BMW_optika_M3_E90.dof
		}
		model4
		{
		file=iright.dof
		}
		model5
		{
		file=ileft.dof
		}
		model8
		{
		file=foglights.dof
		}
		model10
		{
		file=maska.dof
		}
		model11
		{
		file=klapa.dof
		}
		
				
	}
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
    ; Color (multiplied with texture)
    color=40 40 40
  }
}

body
{
  mass=1300		;kerb 1173 kg - 117 kg engine - 40 kg wheels + 80 kg driver +10 kg fuel
  inertia
  {
    x=2450
    y=2500
    z=470
  }
  model
  {
    file=BMW M3 E90.dof
  }
  model_incar
  {
    file=BMW M3 E90.dof
  }
 model_light_l
  {
    file=lights_on.dof
  }
  model_reverse_l
  {
    file=re.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.365
  y=0.570
  z=0.2992
  xa=22
  lock=360
  model
  {
     file=str.dof
  }
}
engine
{
  mass=180
  idle_rpm=900
  
  max_rpm=8500
  max_torque=1.5
  curve_torque=engine.crv
  autoclutch_rpm=3000
  starter=0
  starter_torque=90
  start_stalled=0
  stall_rpm=550
  start_rpm=1250
  torque_reaction=0.45
  
    jitter
  {
    amplitude=0.4
    frequency_min=6
    frequency_var=5
    time_min=250
    time_var=750
  }
	rumble_amplitude=0
	rumble_maxrpm=7500
  shifting
  {
    automatic=0
    shift_up_rpm=7500
    shift_down_rpm=3400
    time_to_declutch=40
    time_to_clutch=40
    time_in_neutral=40
    time_to_declutch_down=40
    time_to_clutch_down=40
    time_in_neutral_down=40
  }
  inertia
  {
    engine=0.31
    final_drive=0.1
  }
  braking_coeff=2.5
  ;sample=
  ;sample_rpm=
}
gearbox
{
  gears=8
  gear0
  {
    ratio=-3.85
    inertia=0.11
    linearity=1
  }
  gear1
  {
    ratio=3.85
    inertia=0.11
    linearity=1
  }
  gear2
  {
    ratio=2.49
    inertia=0.1
    linearity=1
  }
  gear3
  {
    ratio=1.66
    inertia=0.08
    linearity=1
  }
  gear4
  {
    ratio=1.24
    inertia=0.07
    linearity=1
  }
  gear5
  {
    ratio=1.00
    inertia=0.09
    linearity=1
  }
  gear6
  {
    ratio=0.86
    inertia=0.1
    linearity=1
  }
  gear7
  {
    ratio=0.62
    inertia=0.11
    linearity=1
  }

}
clutch
{
  max_torque=1000
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.50
  inertia=0.1
  locking_coeff=100
  output0=2
  output1=3
}
ai
{
  ; Magic under/oversteer correction
  understeer_correct=9999
  oversteer_correct=9999
  ; Grip factor for the car (don't go too far; 1.2 is max probably before cars start tipping over)
  grip_factor=1.8
  ; CG factor; artifically lowers the effective CG for lateral tire forces,
  ; enabling faster cornerning and still not flipping the car. 0=no effect, upto 1.0=full
  cg_factor=1.0
  ; RC factor; normally 0, but towards 1 it pulls the roll centers towards the CG
  rc_factor=0
  ; Magic spring helping the car; alpha functionality
  spring_lat_factor=0
  ; Directional spring
  spring_dir_factor=0
  ; Max velocity for this car (m/s), in case no explicit AI file is defined (data/tracks/<trackname>/ai/<carname>.ini)
  ; this value then gives an approximate top speed. The AI velocities will be scaled so the max velocity
  ; in the AI file will match this top speed. Other velocities are scaled linearly based on that.
  max_velocity=85.0
  ; Factor which is applied when reducing desired velocity when stability goes down (understeer/oversteer)
  ; The default of 1.0 will reduce desired speed quite a bit; you may use a value closer towards zero
  ; to reduce the slowdown (for cars that have a high negative engine torque for example)
  stability_reduces_velocity=1.0
  ; Factor applied to steer inputs. Reduce from 1 towards 0 to decrease steering wheel output.
  ; Useful when the AI driver gives too much steer input, thereby rocking the car from left
  ; to right and back again too harshly.
  steering_factor=1.0
  ; Factor with which the ai performance is reduced when it is snowing (linear with snow ratio)
  snow_performance_ratio=1.0
  ; Factor with which the ai performance is reduced when it is raining (linear with rain ratio)
  ; When it's raining, the cars will drive slower. The grip is unchanged for AI cars, to keep
  ; them on the road (Racer v7.0).
  rain_performance_ratio=1.0
  ; Factor applied when driving under a yellow flag
  yellow_performance_ratio=0.9
  ; Factor applied when driving under a safetycar flag
  safetycar_performance_ratio=0.7
}
aero
{
  body
  {
    center=0 0 0
    cx=0.37
    area=1.81
  }
  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
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=5000
  }
}
susp_front
{
  y=0.290
  z=1.420
  minlen=0.16
  restlen=0.33			
  maxlen=0.35
  k=85000
  bump_rate=3100
  rebound_rate=6500
  bump_function=0
  ;bump_max=1755
  rebound_function=3
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp_rear
{
  y=0.300
  z=-1.422		
  minlen=0.18
  restlen=0.33				
  maxlen=0.35								
  k=85000		
  bump_rate=3100
  rebound_rate=6500
  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.55
    z=0
  }
}
susp0~susp_front
  {
    x=0.80
    toe_change_per_m=0.029	
    camber_change_steering=0.1062
    caster_offset=-0.01
  }
susp1~susp_front
  {
    x=-0.80
    toe_change_per_m=-0.029
    camber_change_steering=-0.1062
    caster_offset=-.01
  }
susp2~susp_rear
  {
    x=0.80
    toe_change_per_m=0.019
  }
susp3~susp_rear
  {
    x=-0.80
    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
{
	camber=-2
  steering=1
  lock=71
  mass=20
  inertia=1.5
  radius=0.35
  rolling_coeff=0.0180
  friction_road=1
  max_braking=3055
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
	camber=-2
  steering=0
  mass=20
  inertia=1.5
  radius=0.35
  rolling_coeff=0.0205
  friction_road=1
  max_braking=1255
  max_handbrake_torque=5500
  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.015
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=lewy_przod.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.2247
  toe=0.16
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=prawy_przod.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.16
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=lewy_tyl.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.16
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=prawy_tyl.dof
  }
}
audio
{
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
	gearwhine
	{
		smp0
		{
		sample=driveshaft.wav
		natural=240
		volume=0.2
		}
	}
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=sounds\onidle_ex.wav
      min=1
      max=2822
      natural=2147
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow_ex.wav
      min=2234
      max=4170
      natural=2964
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sounds\onlow_ex.wav
      min=3540
      max=5384
      natural=4258
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sounds\onmid_ex.wav
      min=4851
      max=7395
      natural=6400
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh_ex.wav
      min=6708
      max=9500
      natural=7720
      volume=1
    }
  
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=sounds\idle_ex.wav
      min=1
      max=1417
      natural=780
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow_ex.wav
      min=971
      max=4115
      natural=2720
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow_ex.wav
      min=3150
      max=5632
      natural=5116
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid_ex.wav
      min=4944
      max=7544
      natural=7058
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh_ex.wav
      min=6677
      max=9500
      natural=7461
      volume=1
    }
   
  }
    accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=sounds\onidle_in.wav
      min=1
      max=2822
      natural=2147
      volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow_in.wav
      min=2234
      max=4171
      natural=2964
      volume=0.4
    }
    smp2~audio.acc_all
    {
      sample=sounds\onlow_in.wav
      min=3490
      max=5761
      natural=4258
      volume=0.4
    }
    smp3~audio.acc_all
    {
      sample=sounds\onmid_in.wav
      min=5025
      max=7686
      natural=6400
      volume=0.4
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh_in.wav

      min=6906
      max=9500
      natural=7720
      volume=0.4
    }
    
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=sounds\idle_in.wav
      min=1
      max=1417
      natural=780
      volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow_in.wav
      min=972
      max=4115
      natural=2720
      volume=0.4
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow_in.wav
      min=3150
      max=5631
      natural=5116
      volume=0.4
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid_in.wav
      min=4944
      max=7543
      natural=7058
      volume=0.4
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh_in.wav
      min=6677
      max=9500
      natural=7461
      volume=0.4
    }
    
  }
  wind
  {
    volume=2
    pitch_scale=0
    pitch_offset=50
    smp0
    {
      sample=wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}
camera0
{
  name=Driver
  fov=76
  model=0
  wheels=1
  view=1
  offset
  {
    x=0.400
    y=0.855
    z=-0.20
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=66
  model=0
  wheels=1
  view=1
  offset
  {
    x=0.325
    y=0.855
    z=-0.18
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=66
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.520
    y=0.855
    z=-0.18
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.100
    y=0.855
    z=-0.18
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.0
    y=-0.33
    z=-5.9
  }
  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.23
    z=-5.9
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=69
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5.5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=69
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-3.2
	}
	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=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=76
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.55
    		z=-0.29
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
  acc_all
  {
    attack=4600
    decay=4600
   
  }
 
accelerate_out
  {

smp15~audio.acc_all
    {
      sample=1216.wav
      min=500
      max=7100
      volume=0.1
 }
    smp14~audio.acc_all
    {
      sample=1306.wav
      min=950
      max=1567
      volume=0.17
}
    smp13~audio.acc_all
    {
      sample=1577.wav
      min=1317
      max=1850
      volume=0.37

   }
    smp12~audio.acc_all
    {
      sample=1872.wav
      min=1600
      max=2113
      volume=0.4
}
    smp11~audio.acc_all
    {
      sample=2103.wav
      min=1863
      max=2376
  volume=0.5

 }
    smp10~audio.acc_all
    {
      sample=2398.wav
      min=2126
      max=2740
      volume=0.69
}
    smp9~audio.acc_all
    {
      sample=2831.wav
      min=2490
      max=3190
      volume=0.8
}
    smp8~audio.acc_all
    {
      sample=3298.wav
      min=2940
      max=3690
      volume=0.8
}
    smp7~audio.acc_all
    {
      sample=3832.wav
      min=3440
      max=4202
      volume=0.8
}
    smp6~audio.acc_all
    {
      sample=4322.wav
      min=3952
      max=4713
      volume=0.8
 }
    smp5~audio.acc_all
    {
      sample=4853.wav
      min=4463
      max=5299
      volume=0.8
}
    smp4~audio.acc_all
    {
      sample=5494.wav
      min=5049
      max=5829
      volume=0.8
 }
    smp3~audio.acc_all
    {
      sample=5913.wav
      min=5579
      max=6291
      volume=0.8
}
    smp2~audio.acc_all
    {
      sample=6419.wav
      min=6041
      max=6868
      volume=1

}
    smp1~audio.acc_all
    {
      sample=7067.wav
      min=6618
      max=7325
      volume=1

}
    smp0~audio.acc_all
    {
      sample=7333.wav
      min=7075
      max=20000
      volume=1


	 }
  decelerate_out
  {

smp15~audio.acc_all
    {
      sample=1216.wav
      min=500
      max=7100
      volume=0.1
 }
    smp14~audio.acc_all
    {
      sample=1306.wav
      min=950
      max=1567
      volume=0.17
}
    smp13~audio.acc_all
    {
      sample=1577.wav
      min=1317
      max=1850
      volume=0.37

   }
    smp12~audio.acc_all
    {
      sample=1872.wav
      min=1600
      max=2113
      volume=0.4
}
    smp11~audio.acc_all
    {
      sample=2103.wav
      min=1863
      max=2376
  volume=0.5

 }
    smp10~audio.acc_all
    {
      sample=2398.wav
      min=2126
      max=2740
      volume=0.69
}
    smp9~audio.acc_all
    {
      sample=2831.wav
      min=2490
      max=3190
      volume=0.8
}
    smp8~audio.acc_all
    {
      sample=3298.wav
      min=2940
      max=3690
      volume=0.8
}
    smp7~audio.acc_all
    {
      sample=3832.wav
      min=3440
      max=4202
      volume=0.8
}
    smp6~audio.acc_all
    {
      sample=4322.wav
      min=3952
      max=4713
      volume=0.8
 }
    smp5~audio.acc_all
    {
      sample=4853.wav
      min=4463
      max=5299
      volume=0.8
}
    smp4~audio.acc_all
    {
      sample=5494.wav
      min=5049
      max=5829
      volume=0.8
 }
    smp3~audio.acc_all
    {
      sample=5913.wav
      min=5579
      max=6291
      volume=0.8
}
    smp2~audio.acc_all
    {
      sample=6419.wav
      min=6041
      max=6868
      volume=1

}
    smp1~audio.acc_all
    {
      sample=7067.wav
      min=6618
      max=7325
      volume=1

}
    smp0~audio.acc_all
    {
      sample=7333.wav
      min=7075
      max=20000
      volume=1
}
}
abs
{
  enable=0
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
