car
{
       name=BMW E39 FL 525d(Touring)
	year=2002(0-100:9,1 s.;vmax:217 km/h)
	credits=Converted by AMGfan; edit By Fabikan75
        comments=Poj:2497cc;Pow:163Km(120kW) @4000rpm;Tor:350Nm@2000rpm.
	id=bmwwwwwwww
       version=065
       wheels=4
       shadow
       {
           texture=shadow.tga
           width=2.9
           length=5.920
           offset_z=0.0
           offset=0
       }
       cg
       {
          x=0
          y=-0.3
          z=-0.07
       }
}

::::::::::::::::::::::::::::::::::::::KOROSERIA::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
body
{
  	mass=1705
  	inertia
  	{
    		x=1855
    		y=1959
    		z=409
  	}
  	model
  	{
    		file=540.dof
  	}
  	model_incar
  	{
    		file=540.dof
  	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.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.445
        length=4.805
  	manual_box=1
}
steer
{
       x=0.42
	y=0.22
	z=0.41
	xa=20
	lock=900				
	linearity=0.3
	model
	{
		file=steer.dof
  	}
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.55 0 2.11
        color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.7
        hor_scale=0.7
  }
  flare1
  {
    pos=0.55 0 2.11
        color=1.0 0.8 1.6
	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=750
  max_rpm=5000
  max_torque=350
  
  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=6300
    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.5
    inertia=0.13
  }
  gear1
  {
    ratio=3.8
    inertia=0.13
  }
  gear2
  {
    ratio=2.05
    inertia=0.09
  }
  gear3
  {
    ratio=1.4
    inertia=0.07
  }
  gear4
  {
    ratio=1.0
    inertia=0.05
  }
  gear5
  {
    ratio=0.78
    inertia=0.03
		
	}

}
::::::::::::::::::::::::::::::::SPRZĘGŁO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
clutch
{
	max_torque=400
}
handbrakes
{
   wheels=23
}
::::::::::::::::::::::::::::::::::::::NAPĘD:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

differential
{
	type=1
	ratio=3.67
	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.07
  	z=-1.44
  	restlen=0.450
  	minlen=0.270
  	maxlen=0.520
  	k=50000
 	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.07
  	z=1.33
  	restlen=0.460
  	minlen=0.300
  	maxlen=0.500
  	k=50000
  	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.72
    	camber_change_steering=0.050
    	toe_change_per_m=0.130
    
}
susp1~susp_front
{
    	x=-0.72
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.130
}


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

susp3~susp_rear
{
    	x=-0.72
	;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=1500
    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=1500
    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.98
	camber=1.98
    	model
  	{
    		file=lf.dof
  	}
    		model_brake
  	{
    		file=lewyprzod.dof
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.980
  	camber=1.980
    	model
  	{
    		file=rf.dof
  	}
    		model_brake
  	{
    		file=prawyprzod.dof
  	}
}



wheel2~wheel_rear
{
  	x=0
  	toe=-0.080
  	camber=-0.035
    	model
  	{
    		file=lf.dof
  	}
   	model_brake
  	{
    		file=leyl.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.080
  	camber=-0.035
    	model
  	{
    		file=rf.dof
  	}
    	model_brake
  	{
    		file=pyl.dof
  	}
}
::::::::::::::::::::::::::::::::::::::::::::::::::::::::KAMERAY::::::::::::::::::::::::::::::::::::::::::::::

camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.42
    y=0.5
    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
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.42
    y=0.5
    z=-0.15
  }
  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.42
    y=0.5
    z=-0.15
  }
  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.5
    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.5
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
starter
{
sample=starter.wav
}
skid
  	{
    		sample=skid.wav
		sample2=skid.wav
  	}
        shiftout
  	{
    		sample=Shift_Out.wav
  	}
  	acc_all
  	{
    		attack=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idle.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/t.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000.wav
      			min=3900
      			max=6666
      			natural=5000
    		}
        }
  	decelerate_out
  	{
   		smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idle.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/t.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000.wav
      			min=3900
      			max=6666
      			natural=5000
		}
      }	
accelerate_in
  {
    smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idlein.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500in.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000in.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500in.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/tin.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000in.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000in.wav
      			min=3900
      			max=6666
      			natural=5000
    }
  }  
decelerate_in
  {
    smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idlein.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500in.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000in.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500in.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/tin.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000in.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000in.wav
      			min=3900
      			max=6666
      			natural=5000
    }
 }