car
{
	name=BMW E23 728iA 
	year=1981 Sedan(vmax:190 km/h;0-100:11.2s)
	credits=By Fabikan75
  	comments=Poj:2788 cc;Mmo:240 Nm przy 4200 obr./min.;Moc: 184 Km(110kW) przy 5800 obr./min.
  	wheels=4
  	id=bmwe23728i
  	version=065
  	shadow
  	{
    		texture=shadow.tga
    		width=2.4
    		length=5.3
    		offset_z=-0.06
  	}
  	cg
  	{
    		x=0
    		y=-0.1835
    		z=0.1768
  	}
  	ff_factor=0.46
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=0.2
    ; 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=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
  light2
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35.0
    ; Aspect (horizontal)
    aspect=1.8
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
abs
{
  	enable=1
	min_velocity=1.667
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}

body
{
	
  	mass=1505
  	inertia
  	{
    		x=1860
    		y=1970
    		z=420
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		file=body.dof
  	}
 	model_light_l
  	{
    		file=lightsfronton.dof
  	}
        model_lightroad_l
        {
            file=lightsbackon.dof
        }
        model_reverse_l
        {
        ; Reverse gear indicators
        file=wstecznyon.dof
        }
        model_reverse_r
        {
        file=wstecznyon.dof
        }
        model_braking_l
        {
        file=stop.dof
        } 
  	width=1.800
  	height=1.430
  	length=4.860
  	manual_box=1
}

steer
{
  	x=0.4
  	y=0.2
  	z=0.7
  	radius=10
  	xa=20
  	lock=1390
  	linearity=0.65
  	model
  	{
    		file=Steer.dof
  	}
}
engine
{
   mass=0
   max_rpm=6500
   idle_rpm=850
   stall_rpm=600
   start_rpm=700
   autoclutch_rpm=1000
   starter=0
   start_stalled=1
   starter_torque=50
   curve_torque=M30B28.crv
   max_torque=240
   reaction=0
   shifting
   {
      automatic=1
      shift_up_rpm=6300
      shift_down_rpm=1000
      time_to_declutch=10
      time_to_clutch=10
   }
  inertia
  {
    engine=0.26
    final_drive=0.1
  }
  braking_coeff=2.85
  sample=5000.wav
  sample_rpm=6000
}
gearbox
{
  gears=4
  gear0
  {
    ratio=-3.26
    inertia=0.9
  }
  gear1
  {
    ratio=3.3
    inertia=0.09
  }
  gear2
  {
    ratio=1.6
    inertia=0.07
  }
  gear3
  {
    ratio=1.19
    inertia=0.04
   }
}
clutch
{
   max_torque=1000
}
differential
{
  	type=1
  	ratio=4.5
  	inertia=0.1
  	locking_coeff=25
  	output0=2
  	output1=3
}

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.37
    		area=1.86
  	}
  	wings=2
  	wing0
  	{
    		name=front lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-17.74
    		center=0.000 0.000 1.400
    		angle=0
    		angle_offset=1
  	}
  	wing1
  	{
    		name=rear lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-5.92
    		center=0.000 0.000 -1.170
    		angle=0
    		angle_offset=1
  	}
}

antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=5900
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=5900
  	}
}

susp_front
{
  	y=0.10
  	z=1.85
	restlen=0.500
  	minlen=0.290
  	maxlen=0.500
  	k=59000
  	bump_rate=1340
  	bump_function=0
  	rebound_rate=2884
  	rebound_function=0
  	anti_pitch=0.2
  	camber_change_per_m=0.417
    	caster_offset=-0.046
  	roll_center
  	{
    		x=0
    		y=-0.365
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.90
    	camber_change_steering=0.050
    	toe_change_per_m=0.131
    
}
susp1~susp_front
{
    	x=-0.90
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.131
}

susp_rear
{
  	y=0.060
  	z=-1.30
  	restlen=0.469
  	minlen=0.290
  	maxlen=0.510
  	k=59000
 	bump_rate=1597
  	bump_function=0
  	rebound_rate=5154
  	rebound_function=0
  	anti_pitch=0.1
  	camber_change_per_m=0.306
  	roll_center
  	{
    		x=0
    		y=-0.54
    		z=0
  	}
}

susp2~susp_rear
{
    	x=0.90
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.90
    	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.25
	a1=-35
	a2=1600
	a3=2000
	a4=8
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.5
	b1=-70
	b2=1600
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.11
	optimal_slipangle=0.145
}

skidding_default
{
	long_start=0.1
	long_max=1.0
	long_start_n=0.1
	long_max_n=1.0
	lat_start=0.1
	lat_max=1.0
}

wheel_front
{
	y=-0.15
	z=0
	powered=0
  	steering=1
	reverse_steering=0
	;41.3 / 33.9
	lock=67.8
	ackerman=1.218
	mass=30
	inertia=1.0
	radius=0.45
	rolling_coeff=0.015
	friction_road=1
	max_braking=1550
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	;-0.150°
	toe=-0.976
	;-0.670°
	camber=1.965
    	model
  	{
    		file=Left.dof
  	}
}

wheel1~wheel_front
{
  	x=0
	;0.150°
  	toe=0.976
	;-0.670°
  	camber=1.965
    	model
  	{
    		file=Right.dof
  	}
}

wheel_rear
{
	y=-0.15
	z=0
	powered=1
	steering=0
	reverse_steering=0
	lock=0
	mass=30
  	inertia=1.0
  	radius=0.45
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=1200
  	max_handbrake_torque=1550
  	braking_factor=1
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}

wheel2~wheel_rear
{
  	x=0
	;-0.150°
  	toe=-0.077
	;-1.420° / -1.833°
  	camber=1.033
    	model
  	{
    		file=Left.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
	;0.150°
  	toe=0.077
	;-1.420° / -1.833°
  	camber=1.033
    	model
  	{
    		file=Right.dof
  	}
}
camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.452
    y=-0.545
    z=0
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.452
    y=0.545
    z=0
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.452
    y=0.545
    z=0
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.545
    z=-0.43
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
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=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.0
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}




audio
{
	skid
	{
		sample=skid.wav
	}
	acc_all
	{
		attack=1500
		decay=1500
	}

	 horn
        {
          sample=horn.wav
        }
	accelerate_out
	{
		volume=1
		
		pitch_scale=1
		pitch_offset=0
		
		smp0~audio.acc_all
		{
			sample=5000.wav
			min=1000
			max=7000
			natural=6000
			volume=0.8
		}
}
	decelerate_out
	{
		volume=0.5
		
		pitch_scale=1
		pitch_offset=0
		
		smp0~audio.acc_all
		{
			sample=5000.wav
			min=1000
			max=7000
			natural=6000
			volume=0.4
		}
	}

accelerate_in
	{
		volume=1
		
		pitch_scale=1
		pitch_offset=0
		
		smp0~audio.acc_all
		{
			sample=5000.wav
			min=1000
			max=7000
			natural=6000
			volume=0.8
		}
	}

	decelerate_in
	{
		volume=0.5
		
		pitch_scale=1
		pitch_offset=0
		
		smp0~audio.acc_all
		{
			sample=5000.wav
			min=1000
			max=7000
			natural=6000
			volume=0.4
		}
	}
  wind
	{
		volume=2.1
		pitch_scale=1
		pitch_offset=30
		smp0
		{
			sample=Wind1.wav
			min=5
			max=6
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=Wind2.wav
			min=30
			max=31
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=Wind3.wav
			min=55
			max=56
			attack=33
			decay=33
			natural=80
		}
	}
}

}