;ini by Outlaw & madman;
;;;;;;;;;;;;;;;;;;;;;;;;

car
{
   name=BMW 520 E12
   year= 1977-1981
   comments=First five serie of BMW.
   credits=v1.0 models & textures-Melnik Andrey(madman), car.ini-Outlaw & madman
   id=bmwe12
   version=050f
   wheels=4
   skid
   {
      sample=skid.wav
   }
   shadow
   {
      ; Shadow texture and size
    texture=shadow.tga
    width=1.7
   length=4.6
    ; Z offset to align shadow with car
    offset_z=0.3
    ; Shadow intensity - when in the dark (inside the projected shadow)
    intensity_dark=0.7
    ; Shadow intensity when in a light area (outside the projected shadow)
    intensity_light=0.3
   }
   cg
   {
      x=0
      y=-0.26
      z=0.05
   }
}
ai
{
	grip_factor=1.1
}
body
{
   ; Weight of the car's body (kg)
	; 1230[kg] - 140[kg] (wheels) + 75[kg] (driver)
   mass=1165
   restitution_coeff=0.25
   inertia
   {
      x=1730;1930
      y=1950;2150
      z=436;476
   }
   model
   {
      file=body.dof
	lod0_z=0
	lod1_z=15
	lod2_z=25
	lod3_z=150
	lod_out=400
   }
   model_braking_l
   {
     file=brakelight.dof
   }
   x=0
   y=0
   z=0
   width=1.7
   height=1.225
   length=4.620
   manual_box=1
   ;cockpit_start=1
   ;cockpit_length=1
   model_incar
   {
      file=incar.dof
   }
   model_light_l
   {
      file=maledriver.dof
   }
   model_light_r
  {
    file=maledriver.dof
  }
}
steer
{
  x=0.35
  y=0.01
  z=0.6
  radius=10
  xa=21.5 ;17.5
  lock=1040
  linearity=0.25
  model
  {
    file=st_wheel.dof
  }
 
}
engine
{
   x=0
   y=-0.05
   z=-1
   size=.2
   mass=0
   max_rpm=6400
   idle_rpm=850
   stall_rpm=400
   start_rpm=1050
   autoclutch_rpm=1000
   starter=1
   starter_torque=65
   curve_torque=torque.crv
   max_torque=161.8097
   ;reaction=0
   torque_reaction=0.5
   shifting
   {
      automatic=0
      shift_up_rpm=5800
      shift_down_rpm=4500
      time_to_declutch=375
      time_to_declutch=250
      time_to_clutch=250
   }
   inertia
   {
      engine=0.22
      final_drive=0.09
   }
   braking_coeff=1.45
   rolling_friction_coeff=0
   sample=5000.wav
   sample_rpm=5000
   start_stalled=1
}
gearbox
{
   gears=6
   gear0
   {
      ratio=-4.096
      ;ratio=-3.682
      inertia=0.09
      linearity=1
   }
   gear1
   {
      ratio=3.764
      ;ratio=3.682
      inertia=0.04
      linearity=1
   }
   gear2
   {
      ratio=2.043
      ;ratio=2.002
      inertia=0.06
      linearity=1.3
   }
   gear3
   {
      ratio=1.32
      ;ratio=1.33
      inertia=0.08
      linearity=1.6
   }
   gear4
   {
      ratio=1
      inertia=0.1
      linearity=1.9
   }
   gear5
   {
      ratio=0.805
      inertia=0.11
      linearity=2
   }
  ;end_ratio=3.15
}
clutch
{
   max_torque=450
}
handbrakes
{
   wheels=23
}
differential
{
   type=0
   ratio=3.91
   power_angle=0
   coast_angle=0
   clutches=2
   clutch_factor=1
   locking_coeff=0
   output0=2
   output1=3
  ;type=1
  ;ratio=3.36
  ;locking_coeff=60
}

aero
{
   body
   {
      center=0 -0.13 0
      cx=0.35
      area=2.0
   }
   wings=1
   wing0
   {
      name=overall body lift
      span=1
      cord=1
      coeff_drag=0
      coeff_down=-9
      center=0.000 0.000 0.135
      angle=1.5
      angle_offset=1
   }   
}
antirollbar
{
   count=1
   arb0
   {
      susp_left=0
      susp_right=1
      k=9992.63             ;real value
   }
}
susp_front
{
  y=0;-0.3
  z=1.42
  anti_pitch=0.08;0.12
  restlen=0.6585;0.21;0.342;0.4385
  minlen=0.397;0.5025;0.104;0.30385
  maxlen=0.644;0.597;0.7025;0.304;0.352;0.5325
  k=17550		     ;real value Wheel_Rate =0.65 * Spring_Rate;	Spring_Rate = F(Lmax - Lmin)=
   bump_rate=2200;750;1150								=364kgf(342mm - 210 mm)=
  rebound_rate=2612;3850							= 2.73kgf/mm=~27000N/m
  bump_function=0	
  ;bump_max=1000
  rebound_function=0
  camber_change_per_m=0.11
  roll_center
  {
    x=0
    y=-0.65
    z=0
  }
}
susp_rear
{
  y=0;-0.3
  z=-1.21
  anti_pitch=0.08;0.12
  restlen=0.616;0.235;0.3348;0.436
  minlen=0.418;0.382;0.48;0.103;0.3044
  maxlen=0.608;0.5820.68;0.239;0.354;0.53
  k=23126 		     ;real value Wheel_rate =0.62 * Spring_rate         Spring_Rate = F(Lmax - Lmin)=
  bump_rate=1348;848;1300	
  rebound_rate=3235;4650	 							=380kgf(334mm - 235 mm)=
  bump_function=0								= 3.84kgf/mm=~37300N/m
  ;bump_max=1000
  rebound_function=0
  camber_change_per_m=0.26
  roll_center
  {
    x=0
    y=-0.62;-0.46
    z=0
  }
}
susp0~susp_front
{
  x=0.71
  toe_change_per_m=0.021		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
  camber_change_steering=0.025;0.2941	; Camber change ratio; degrees of camber / degrees of wheel rotation - 10 / 34
  caster_offset=-0.08		
}
susp1~susp_front
{
  x=-0.71
  toe_change_per_m=-0.021		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.025;-0.2941	;Camber change ratio; degrees of camber / degrees of wheel rotation - 10 / 34
    caster_offset=-0.08		
}
susp2~susp_rear
{
  x=0.728
  toe_change_per_m=0.019
  caster_offset=-0.13
}
susp3~susp_rear
{
  x=-0.728
  toe_change_per_m=-0.019
  caster_offset=-0.13
}
;----------------------------------------------------------------------
tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0
}
tire_model_rear
{
  damping_predict_lat=0
  damping_predict_long=0
}
pacejka
{
; Lateral force
	a0=1.85 ;45
   	a1=-38
   	a2=1140
   	a3=1160
   	a4=5.3
   	a5=0.015
   	a6=0.03
   	a7=0.96
   	a8=0
   	a9=0
   	a10=0
   	a111=0
   	a112=0
   	a12=0
   	a13=0

   	b0=1.55
   	b1=-56
   	b2=1260
   	b3=23.3
   	b4=200
   	b5=0.08
   	b6=0.0
   	b7=0.05
   	b8=-0.024
   	b9=0.015
   	b10=0.25
   	b11=-86
   	b12=0.0

   	c0=2.3
   	c1=-3.8
   	c2=-3.14
   	c3=-1.05
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1
optimal_slipratio=0.137 ;1379
optimal_slipangle=0.27 ;33 ;2214
}


wheel_front
{
  y=0
  z=0
  max_braking=1400
  steering=1
  lock=60
  mass=35
  inertia=1.2
  radius=0.302
  width=0.195		;195/70 R14W
  ;slices=20
  braking_factor=1
  friction_road=1.9
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  max_braking=500
  steering=0
  powered=1
  mass=35
  inertia=1.2
  radius=0.302
  width=0.195
  braking_factor=1
  rolling_coeff=0.015	
  ;slices=20
  friction_road=1.9
  max_handbrake_torque=1500
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.05
  camber=0.5;-0.5
  toe=-0.28;0
  model
  {
    file=tire_0.dof
	;file=tire_st32_0.dof
  }
  model_brake
  {
    file=brake_front.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.05
  camber=0.5;-0.5
  toe=0.28;0
  model
  {
    file=tire_1.dof
     ;file=tire_st32_1.dof
  }
  model_brake
  {
    file=brake_front.dof
  }
}
wheel2~wheel_rear
{
  x=0
  camber=1.5;-0.4
  toe=-0.23;-0.5
  model
  {
    file=tire_0.dof
    ;file=tire_st32_0.dof
  }
  model_brake
  {
    file=brake_rear.dof
  }
}
wheel3~wheel_rear
{
  x=0
  camber=1.5;-0.4
  toe=0.23;0.5
  model
  {
    file=tire_1.dof
    ;file=tire_st32_1.dof
  }
  model_brake
  {
    file=brake_rear.dof
  }
}
;
; Cameras
; Type of model to use; 0=outside, 1=inside, 2=none
;
camera0
{
   offset
  {
    x=-0.006250
    y=1.252083
    z=-4.795010
  }
  angle
  {
    x=15 ;3
    y=180
    z=0.000000
  }
  name=Behind
  ;fov=75
  src
  {
    mass=6
    k=300
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=200
    damping=70
    maxdist=1
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1 ;0
  }
   ;model=0
   ;view=1
}
camera1
{
  name=Driver
  fov=65;70;61
  model=1
  wheels=0
  view=2
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    ;x=0.289062
    x=0.35
    y=0.357917
    z=-0.100000
  }
  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
  }
}
camera2
{
  name=BonnetView
  ;fov=65;70;61
  model=0
  wheels=0
  view=2
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    ;x=0.289062
    x=0
    y=0.357917
    z=0.7100000
  }
  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
  }
}
camera3
{
   follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.0
    y=-0.3
    z=2.3
  }
  angle
  {
    x=8
    y=180.0
    z=0.0
  }
  name=Bumper
  model=2
  wheels=2
  view=2
  fov=75
}
camera4
{
   offset
  {
    x=-0.381252
    y=0.439585
    z=-6
  }
  angle
  {
    x=16.5
    y=130
    z=0.25
  }
  name=GeneralLooseExterior
  fov=60
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.0
    y=0.0
    z=-4.5
  }
  angle
  {
    x=0
    y=35
    z=0
  }
  name=LowFrontAngle
  fov=60
}
camera6
{
   offset
  {
    x=0.1
    y=-1
    z=-7
  }
  angle
  {
    x=-6
    y=200
    z=0
  }
  name=OffsetChase
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=65
}
{
    follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=0
    z=-4.5
  }
  angle
  {
    x=10
    y=-360
    z=0
  }
  fov=65
  name=FrontView
}
camera7
{
   offset
  {
    x=1.4
    y=0.06
    z=-0.6
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=60
  name=FrontWheel
}
camera8
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.273437
    y=1
    z=-3.650010
  }
  angle
  {
    x=23.194437
    y=-357.986633
    z=19.357632
  }
  fov=70
}
{
   follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.114063
    y=-0.295833
    z=-3.765000
  }
  angle
  {
    x=6.000000
    y=5.000000
    z=0.000000
  }
  name=RearSeatBack
  fov=85
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.48
    y=-0.0
    z=-0.4
  }
  angle
  {
    x=14
    y=9.5
    z=7.5
  }
  name=RearWheel
  fov=65
}

  fov=70
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=0
  name=Inside Driver
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;audio
;{
;  acc_all
;  {
;    volume=1
;  }
;  accelerate_out
;  {
;    smp0~audio.acc_all
;    {
;      sample=2000.wav
;      min=1000
;      max=2500
;      natural=2000
;      attack=500
;      decay=400
;    }
;    smp1~audio.acc_all
;    {
;      sample=3000.wav
;      min=2500
;      max=3500
 ;     natural=2900
 ;     attack=700
 ;     decay=400
;    }
;    smp2~audio.acc_all
;    {
;      sample=4000.wav
;      min=3500
;      max=4500
;      natural=4000
;      attack=700
;      decay=700
;    }
;      smp3~audio.acc_all
;    {
;      sample=5000.wav
;      min=4500
;      max=5500
 ;     natural=5000
 ;;     attack=700
;      decay=700
;    }
;      smp4~audio.acc_all
;    {
;      sample=6100.wav
;      min=5500
;      max=919500
;      natural=6000
;      attack=700
;      decay=400
;    }
;  }
;  decelerate_out
;  {
;    smp0~audio.acc_all
;    {
 ;     volume=0.4
;      sample=2000.wav
;      min=1000
;      max=2500
;      natural=2000
;      attack=500
;      decay=400
;    }
;    smp1~audio.acc_all
;    {
;      volume=0.4
;      sample=3000.wav
;      min=2500
;      max=3500
;      natural=2900
;      attack=700
;      decay=400
;    }
;    smp2~audio.acc_all
;    {
;      volume=0.4
;      sample=4000.wav
;      min=3500
;      max=4500
 ;     natural=4000
 ;     attack=700
 ;     decay=700
 ;   }
 ;     smp3~audio.acc_all
 ;   {
 ;     volume=0.4
 ;     sample=5000.wav
 ;     min=4500
 ;;     max=5500
 ;     natural=5000
  ;    attack=700
 ;     decay=700
;    }
;      smp4~audio.acc_all
;    {
;      volume=0.4
;      sample=6100.wav
;      min=5500
;      max=919500
;      natural=6000
;      attack=700
;      decay=400
;    }
 ; }
;  wind
;  {
;    volume_scale=0.1
;    volume_offset=0
 ;   pitch_scale=0.01
;    pitch_offset=0
;    smp0
;    {
;      sample=wind_ext.wav
;      min=0.1
;      max=9999
;      natural=50
;    }
;  }
;}

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=1
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
audio

{

acc_all

{

volume=1

}

accelerate_out

{

smp0~audio.acc_all

{

sample=2000.wav

min=1000

max=2500

natural=2000

attack=500

decay=400

}

smp1~audio.acc_all

{

sample=3000.wav

min=2500

max=3500

natural=2900

attack=700

decay=400

}

smp2~audio.acc_all

{

sample=4000.wav

min=3500

max=5000

natural=4000

attack=700

decay=700

}

smp3~audio.acc_all

{

sample=5000.wav

min=5000

max=6500

natural=5000

attack=700

decay=700

}

smp4~audio.acc_all

{

sample=6100.wav

min=6500

max=919500

natural=6500

attack=700

decay=400

}

}

decelerate_out

{

smp0~audio.acc_all

{

volume=0.4

sample=2000.wav

min=1000

max=2500

natural=2000

attack=500

decay=400

}

smp1~audio.acc_all

{

volume=0.4

sample=3000.wav

min=2500

max=3500

natural=2900

attack=700

decay=400

}

smp2~audio.acc_all

{

volume=0.4

sample=4000.wav

min=3500

max=4500

natural=4000

attack=700

decay=700

}

smp3~audio.acc_all

{

volume=0.4

sample=5000.wav

min=4500

max=5500

natural=5000

attack=700

decay=700

}

smp4~audio.acc_all

{

volume=0.4

sample=6100.wav

min=5500

max=919500

natural=6000

attack=700

decay=400

}

}

wind

{

volume_scale=0.1

volume_offset=0

pitch_scale=0.01

pitch_offset=0

smp0

{

sample=wind_ext.wav

min=0.1

max=9999

natural=50

}

}

}