car
{
  name=BMW E36 318iS (Coupe)
  year=1995 (vmax:219 km/h;0-100:9,8 s.)
  credits=By Mariusz C., PFR, Edit By Fabikan75
  comments=Poj.: 1796 cc; Mmo: 175 Nm przy 4500 obr./min.;Moc: 140KM(103kW) przy 6000 obr./min.
  id=BMW3_E36CPE
  version=050b6
  wheels=4
  skid
  	shadow
  	{
    		texture=shadow.tga
    		width=1.965
    		length=4.607
    		offset_z=0
  	}
  	cg
  	{
    		x=0
    		y=-0.21
    		z=0.15
  	}
}

abs
{
  	enable=0
	min_velocity=1.667
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}
audio
{
skid
  	{
    		sample=skid.wav
  	}
  	acc_all
  	{
    		attack=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=1
			sample=idle.wav
      			min=0
      			max=1500
      			natural=850
    		}
		smp1~audio.acc_all
    		{
      			volume=1
     			sample=idle2.wav
      			min=1500
      			max=7000
      			natural=2500
		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=2.wav
      			min=3500
      			max=7000
      			natural=4500
		}
		smp3~audio.acc_all
    		{
      			volume=1
     			sample=6000.wav
      			min=5500
      			max=7000
      			natural=6000
		}
        }
  	decelerate_out
  	{
   		smp0~audio.acc_all
    		{
      			volume=1
			sample=idle.wav
      			min=0
      			max=1500
      			natural=850
    		}
		smp1~audio.acc_all
    		{
      			volume=1
     			sample=idle2.wav
      			min=1500
      			max=7000
      			natural=2500
		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=2.wav
      			min=3500
      			max=7000
      			natural=4500
		}
		smp3~audio.acc_all
    		{
      			volume=1
     			sample=6000.wav
      			min=5500
      			max=7000
      			natural=6000
		}
	}
wind
  {
    volume=1.5
    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
    }
  }
}
gearwhine
{
  volume=0.5
  pitch_scale=0.001
  pitch_offset=0
  smp0~audio.acc_all
  {
    sample=gearwhine.wav
    min=0
    max=10000
    natural=7000
  }
}

;----------------------------------------------------------------------
;Body:}
body
{
  	mass=1240
        restitution_coeff=0.24
  	inertia
  	{
    		x=2300
    		y=2070
    		z=1380
  	}
  	model
  	{
    		file=body2.dof
  	}
  	model_incar
  	{
    		;file=body2.dof
  	}
 	model_light_l
  	{
    		file=lights.dof
  	}
  	model_braking_l
  	{
    		file=stoplight.dof
  	}
  	width=1.698
  	height=1.091
  	length=4.433
  	manual_box=1
}
;----------------------------------------------------------------------
;Steer:

steer
{
        x=0.34
  	y=0.10
  	z=0.52
  	radius=10
  	xa=16
  	lock=900
  	linearity=1
  	model
  	{
    		file=volan.dof
  	}
}

engine
{
  	mass=0
  	idle_rpm=850
        idle_method=1
        idle_throttle=0.08
  	max_rpm=6500
  	start_rpm=1150
  	stall_rpm=450
  	autoclutch_rpm=1050
  	starter=1
  	starter_torque=80
  	start_stalled=1
        torque_reaction=1.0
  	curve_torque=torque.crv
  	max_torque=175
  	reaction=0
  	shifting
  	{
    		automatic=0
    		shift_up_rpm=5750
    		shift_down_rpm=2750
    		time_to_declutch=325
    		time_to_clutch=135
  	}
  	inertia
  	{
    	  engine=0.39
          final_drive=2.93
  	}
  	braking_coeff=2.55
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
	gears=6
  	gear0
  	{
    		ratio=-4.096
    		inertia=0.163
  	}
  	gear1
  	{
    		ratio=4.5
    		inertia=0.121
  	}
  	gear2
  	{
    		ratio=2.4
    		inertia=0.072
  	}
  	gear3
  	{
    		ratio=1.40
    		inertia=0.048
  	}
  	gear4
  	{
    		ratio=1.15
    		inertia=0.035
  	}
  	gear5
  	{
    		ratio=0.98
    		inertia=0.029
  	}
}

clutch
{
	max_torque=550
}
;----------------------------------------------------------------------
;Handbrakes:

handbrakes
{
	wheels=23
}
;----------------------------------------------------------------------
;Differential:

differential
{
  	type=1
  	ratio=3.44
  	inertia=0.1
  	locking_coeff=23
  	output0=2
  	output1=3
}
;----------------------------------------------------------------------
;Aero:

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.40
    		area=1.50
  	}
  	wings=2
  	wing0
  	{
    		name=overall
    		span=1.0
    		cord=0.1
    		coeff_drag=0.0
   		coeff_down=0.4
    		center=0 0 0.0
    		angle=0
    		angle_offset=1
  	}
  	wing1
  	{
    		name=rear wing
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
		;400N @ 248km/h
   		coeff_down=7.89
    		center=0.000 0.000 -1.176
    		angle=0
    		angle_offset=1
  	}
}

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

susp_front
{
  	y=-0.05
  	z=1.52
  	restlen=0.395
  	minlen=0.1									
  	maxlen=0.41
        bumpstop_len=0.04
        bumpstop_k=70000		
 	k=40000		
 	bump_rate=4000	
  	rebound_rate=10500	
  	bump_function=0
 	bump_max=1750
 	rebound_function=0
 	camber_change_per_m=0.10
  	roll_center
  	{
    		x=0
    		y=-0.552
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.74
    	camber_change_steering=0.147
        caster_offset=-0.0235
    	toe_change_per_m=0
    
}
susp1~susp_front
{
    	x=-0.74
    	camber_change_steering=-0.147
        caster_offset=-0.0235
    	toe_change_per_m=0
}

susp_rear
{
  	y=-0.14
  	z=-1.27
  	restlen=0.352		
 	minlen=0.13		
 	maxlen=0.38
        bumpstop_len=0.04
        bumpstop_k=70000										
  	k=36000		
  	bump_rate=3300	
  	rebound_rate=9500	
  	bump_function=0
  	bump_max=2250
  	rebound_function=0
  	camber_change_per_m=0.15
  	roll_center
  	{
    		x=0
    		y=-0.504
    		z=0
  	}
}

susp2~susp_rear
{
    	x=0.76
}

susp3~susp_rear
{
    	x=-0.76
}

tire_model_front
{
	damping_predict_lat=0
  	damping_predict_long=0
}

tire_model_rear
{
  	damping_predict_lat=0
  	damping_predict_long=0
}
pacejka
{
    	a0=0.8
    	a1=-35
    	a2=1750
    	a3=1620
    	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.4
    	b1=-70
    	b2=1500
    	b3=2
    	b4=325
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0.015
    	b10=0.4
    	b11=-80
    	b12=0

    	c0=2.2
    	c1=-4
    	c2=-3
    	c3=-1.0
    	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.09655
    	optimal_slipangle=0.14444
}
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
	z=0
	powered=0
  	steering=1
	reverse_steering=0
	lock=65.542
	mass=15
	inertia=0.9
	radius=0.33
	rolling_coeff=0.017
	friction_road=1
	max_braking=1600
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
        ackerman=1.15
	toe=0.20
	camber=-1
    	model
  	{
    		file=lw.dof
  	}
    		model_brake
  	{
    		file=lz.dof
  	}
}

wheel1~wheel_front
{
	x=0
        ackerman=1.15
  	toe=0.20
  	camber=-1
    	model
  	{
    		file=rw.dof
  	}
    		model_brake
  	{
    		file=pz.dof
  	}
}

wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	mass=15
  	inertia=0.9
  	radius=0.33
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=870
  	max_handbrake_torque=1500
  	braking_factor=1
  	tire_rate=175000
  	pacejka~pacejka
  	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}

wheel2~wheel_rear
{
  	x=0
  	toe=0.30
  	camber=-1
    	model
  	{
    		file=lw.dof
  	}
   	model_brake
  	{
    		file=lz.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.30
  	camber=-1
    	model
  	{
    		file=rw.dof
  	}
    	model_brake
  	{
    		file=pz.dof
  	}
}

camera0
{
	name=Driver
	fov=67
	model=0
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.355
		y=0.39
		z=-0
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera1
{
  	name=Close Behind
  	fov=50
  	model=0
  	view=0
  	wheels=0
	offset
  	{
    		x=0
    		y=1.5
    		z=-5
  	}
  	angle
  	{
    		x=21
    		y=180
    		z=50
  	}
  	follow
  	{
    		pitch=0
    		yaw=1
    		roll=0
  	}
  	src
  	{
    		mass=1
    		k=200
    		damping=30
   		maxdist=1.5
  	}
  	dst
  	{
   		mass=1
    		k=150
    		damping=20
    		maxdist=1.5
  	}
}

camera2
{
	name=Chase
  	fov=45
  	model=0
  	view=0
  	wheels=0
   	offset
   	{
      		x=0.00
      		y=1.50
      		z=-6.00
   	}
   	angle
   	{
      		x=15.50
      		y=180.00
      		z=0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=1
      		roll=0
   	}
 	src
 	{
  		mass=5
  		k=50
  		damping=100
  		maxdist=2
 	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera3
{
 	name=Hi-Speed Bumper Cam
 	fov=85
 	model=2
 	view=2
 	wheels=0
 	offset
 	{
  		x=0
  		y=0.15
  		z=2.1
 	}
 	angle
 	{
  		x=0
  		y=180
  		z=0
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera4
{
  	name=Hood Cam
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	offset
  	{
    		x=0
    		y=-0.7
    		z=0.7
  	}
  	angle
  	{
    		x=9
    		y=180
    		z=0
  	}
}

camera5
{
  	name=Effect Cam 1
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	offset
  	{
    		x=-0.67
    		y=-0.17
    		z=-3.94
  	}
  	angle
  	{
    		x=2.5
    		y=-150
    		z=-15
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
}

camera6
{
 	name=Effect Cam 2
 	fov=68
 	model=0
 	view=1
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=-0.25
  		z=-5.5
 	}
 	angle
 	{
  		x=6
  		y=30
  		z=0
 	}
}

camera7
{
 	name=Effect Cam 3
 	fov=68
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=1
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0
  		z=-9
 	}
 	angle
 	{
  		x=4
  		y=34
  		z=-14
 	}
}

camera8
{
 	name=Effect Cam 4 - Wheel
 	fov=68
 	model=0
 	view=0
 	wheels=0
 	offset
 	{
  		x=1.15
  		y=0.2
  		z=0.35
 	}
 	angle
 	{
  		x=-2
  		y=-175
  		z=-7
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera9
{
 	name=Effect Cam 5
 	fov=25
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0.25
  		z=-9
 	}
 	angle
 	{
  		x=10
  		y=150
  	z=0
 	}
}