car
{
	name=BMW E39 FL 530i (Sedan)
  year=2003(0-100:7.2s;vmax:251 km/h)
  credits=Converted by gtasas, Siwy. Edited by Cichan, Fabikan75. Thanks for Filipmix024.
  comments=Poj:2979;Pow:231KM(170kW) @ 5900 rpm;Mmo:300 @ 3500 rpm;R6 petrol
	id=bmwwwwwwww
       version=065
       wheels=4
       shadow
       {
           texture=shadow.tga
           width=3
           length=6
           offset_z=0.0
           offset=0
       }
       cg
       {
          x=0
          y=-0.45
          z= 0.3
       }
}

::::::::::::::::::::::::::::::::::::::KOROSERIA::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
body
{
  	mass=1540
  	inertia
  	{
    		x=1855
    		y=1959
    		z=409
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		file=body.dof
  	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brake.dof
	}
 model_lightroad_l
 {
  file=lights.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
        width=1.800
        height=1.435
        length=4.775
  	manual_box=1
    }
  }
}
graphics
{
  intensity=1
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=zderzaki.dof
    }
    model1
    {
      file=boot.dof
    }
    model2
    {
      file=4.dof
    }
    ;monograme logo
    model3
    {
      file=5.dof
    }
    model4
    {
      file=11.dof
    }
    ;Commandes vitres et retros
    model5
    {
      file=6.dof
    }
    ;Sièges avant
    model6
    {
      file=7.dof
    }
    ;Feux arrière (phase 1 ou 2?)
    model7
    {
      file=8.dof
    }
    ;Face avant (phase 1 ou 2?)
    model8
    {
      file=e35e85e12.dof
    }
    ;Avec anti brouillard (Oui ou non?)
    model9
    {
      file=10.dof
    }
    ;Option(becquet ou barres de toit)
    model10
    {
      file=11.dof
    }
    ;Conducteur (Oui ou non?)
    model11
    {
      file=9.dof
    }
    ;Logos
    model12
    {
      file=125.dof
    }
    ;Nombre de vitres electriques
    model13
    {
      file=85.dof
    }
    ;repetiteurs latereaux (Oui ou non?)
    model14
    {
      file=35.dof
    }
    ;poignés (Oui ou non?)
    model15
    {
      file=14444.dof
    }
    ;accoudoirs avant
    model16
    {
      file=75.dof
    }
    ;logo moteur
    model17
    {
      file=53.dof
    }
    ;compteur
    model18
    {
      file=3444.dof
    }
    ;pot d'echappement
    model19
    {
      file=44444.dof
    }
    ;commande de boite
    model20
    {
      file=banquette.dof
    }
    model21
    {
      file=vide.dof
    }
    ;(phares xenon?)
    model22
    {
      file=capteurs.dof
    }
    model23
    {
      file=colone.dof
    }
    model24
    {
      file=details.dof
    }
  }
}
steer
{
      x=0.398775
  y=0.283044
  z=0.43071
	xa=20
	lock=900				
	linearity=0.2
	model
	{
		file=stw.dof
  	}
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.5910 0.0214 2.158
        color=1.0 1.0 1.0
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.7
        hor_scale=0.7
  }
  flare1
  {
    pos=0.5910 0.0214 2.158
        color=1.0 1.0 1.0
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.7
        hor_scale=0.7
  }
}
:::::::::::::::::::::::::::::::::ABS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
abs
{
  	enable=1
	min_velocity=1.7
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}
:::::::::::::::::::::::::::::::SILNIK V12::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
engine
{
  mass=0
  idle_rpm=800
  max_rpm=6500
  max_torque=300
  
  sample=acc-320.wav
  sample_rpm=4800

  curve_torque=torque.crv
  autoclutch_rpm=1750
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=500
  start_rpm=750
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=6330
    shift_down_rpm=900
    time_to_declutch=65
    time_to_clutch=65
  }
  inertia
  {
    engine=0.39
    final_drive=1.25
  }
  braking_coeff=2.5
}
gearbox 
{
	gears=6
  gear0
  {
    ratio=-3.8
    inertia=0.13
  }
  gear1
  {
    ratio=4.0
    inertia=0.13
  }
  gear2
  {
    ratio=1.8
    inertia=0.09
  }
  gear3
  {
    ratio=1.3
    inertia=0.07
  }
  gear4
  {
    ratio=0.96
    inertia=0.05
  }
  gear5
  {
    ratio=0.775
    inertia=0.03		
	}

}
::::::::::::::::::::::::::::::::SPRZÊG£O::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
clutch
{
	max_torque=330
}
handbrakes
{
   wheels=23
}
::::::::::::::::::::::::::::::::::::::NAPÊD:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

differential
{
	type=1
	ratio=4.25
	inertia=0.1
	locking_coeff=85
	output0=2
	output1=3
}

::::::::::::::::::::::::::::::::::AERO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
aero
{
  body
  {
    center=0 0 0
    cx=0.26
    area=2.0		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}

::::::::::::::::::::::::::::::::::::::::::ZAWIESZNIE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=36800
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=21300
  	}
}
susp_rear
{
  	y=0.10
  	z=-1.314204
  	restlen=0.450
  	minlen=0.270
  	maxlen=0.520
  	k=72000
 	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.552
    		z=0
  	}
}
susp_front
{
  	y=0.09
  	z=1.41
  	restlen=0.450
  	minlen=0.270
  	maxlen=0.520
  	k=72000
  	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.554
    		z=0
  	}
}
susp0~susp_front
{
    	x=0.74
    	camber_change_steering=0.050
    	toe_change_per_m=0.130
    
}
susp1~susp_front
{
    	x=-0.74
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.130
}


susp2~susp_rear
{
    	x=0.74
	;estimation based on Gustave's M3 site
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.74
	;estimation based on Gustave's M3 site
    	toe_change_per_m=0.016
}

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.2
    a1=-25
    a2=1800
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1800
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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.12
    optimal_slipangle=0.173
}
wheel_front
{
	y=0
	z=0.099
	powered=0
  	steering=1
	reverse_steering=0
	lock=69
	ackerman=1.215
	mass=10
	inertia=1.0
	radius=0.35
	rolling_coeff=0.015
	friction_road=1
	max_braking=2900
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	reverse_steering=0
	lock=0
	mass=10
  	inertia=1.0
  	radius=0.35
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=1700
  	max_handbrake_torque=1500
  	braking_factor=1
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}
wheel0~wheel_front
{
	x=-0
	toe=0
	camber=0
    	model
  	{
    		file=left.dof
  	}
    		model_brake
  	{
    		file=caliper_left.dof
  	}
}

wheel1~wheel_front
{
  	x=-0
  	toe=0
  	camber=0
    	model
  	{
    		file=right.dof
  	}
    		model_brake
  	{
    		file=caliper_right.dof
  	}
}



wheel2~wheel_rear
{
  	x=-0
  	toe=0
  	camber=0
    	model
  	{
    		file=left.dof
  	}
   	model_brake
  	{
    		file=caliper_left.dof
  	}
}

wheel3~wheel_rear
{
  	x=-0
  	toe=0
  	camber=0
    	model
  	{
    		file=right.dof
  	}
    	model_brake
  	{
    		file=caliper_right.dof
  	}
}
::::::::::::::::::::::::::::::::::::::::::::::::::::::::KAMERAY::::::::::::::::::::::::::::::::::::::::::::::

camera0
{
   name=Inside
   fov=90
   model=1
   wheels=0
   view=1

   offset
   {
       x=0.42
    y=-0.53
    z=0.17
   }
   angle
   {
      x=7
      y=180
      z=0
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
     x=0.4
    y=0.55
    z=-0
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
     x=0.4
    y=0.55
    z=-0
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
    x=-0.42
    y=0.55
    z=-0.15
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  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.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow

  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}

	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  offset
  {
    x=0.0
    y=1.4
    z=-4
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.65
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
	skid
	{
		sample=Skid.wav
		sample2=Skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
	acc_all
	{
		attack=2600
		decay=2600
	}

	accelerate_out
	{
    smp0~audio.acc_all
		{
			sample=bmwm50,m52/5000.wav
			min=1000
			max=7000
			natural=6000
			volume=0.8
		}
smp1~audio.acc_all
		{
			sample=bmwm50,m52/idle.wav
			min=0
			max=1100
			natural=800
                        decay=1000
			volume=0.8
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=bmwm50,m52/5000.wav
			min=1000
			max=7000
			natural=6000
			volume=0.8
		}
smp1~audio.acc_all
		{
			sample=bmwm50,m52/idle.wav
			min=0
			max=1100
			natural=800
                        decay=1000
			volume=0.8
		}
	}

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=bmwm50,m52/5000in.wav
			min=1000
			max=7000
			natural=6000
			volume=0.8
}
smp1~audio.acc_all
		{
			sample=bmwm50,m52/idlein.wav
			min=0
			max=1100
			natural=800
                        decay=1000
			volume=0.8
		}
}

	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=bmwm50,m52/5000in.wav
			min=1000
			max=7000
			natural=6000
			volume=0.8
		}
smp1~audio.acc_all
		{
			sample=bmwm50,m52/idlein.wav
			min=0
			max=1100
			natural=800
                        decay=1000
			volume=0.8
		}
	}
}