car
{
  name=BMW M3 E46
  year=2000-2007
  credits=Model: Turn10 Studios (FM3) Konwert i zmiany: Swift
  comments=R6 3.2 24v - 343HP
  id=E46M3
  version=090b
  wheels=4
  skid
  	shadow
  	{
    		texture=shadow.tga
    		width=2.5
    		length=5.192
    		offset_z=0
  	}
  	cg
  	{
    		x=0
    		y=-0.22
    		z=0.19
  	}
	ff_factor=0.30
	}
}

graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=body.dof
    }
  }

	generic
	{
		model0
		{
		file=lusterko.dof
		}
		model1
		{
		file=lewe.dof
		}
		model2
		{
		file=prawe.dof
		}
		model3
		{
		file=signal_right.dof
		}
    		model4
    		{
      		file=signal_rl.dof
    		}
    		model5
    		{
      		file=signal_rr.dof
    		}
    		model6
    		{
      		file=signal_il.dof
    		}
    		model7
    		{
      		file=signal_ir.dof
    		}
    		model8
    		{
      		file=przeciwmglowe.dof
    		}
    		model9
    		{
      		file=fog_in.dof
    		}
    		model10
    		{
      		file=dlugie.dof
    		}
    		model11
    		{
      		file=high_beam_in.dof
    		}
    		model12
    		{
      		file=szybalewa.dof
    		}
    		model13
    		{
      		file=radio.dof
    		}
    		model14
    		{
      		;file=maska.dof
    		}
    		model15
    		{
      		;file=maska.dof
    		}
    		model16
    		{
      		;file=awaryjne.dof
    		}

	}
}

abs
{
  	enable=0
	min_velocity=1.667
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}
;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{
  skid
  {
    sample=audio/skid.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio/a1000.wav
      min=1000
      max=1001
      attack=1300
      decay=1300
      natural=1000
      volume=1.4
    }
    smp1~audio.acc_all
    {
      sample=audio/a2000.wav
      min=2000
      max=2001
      attack=1300
      natural=2000
      volume=1.
    }
    smp2~audio.acc_all
    {
      sample=audio/a4000.wav
      min=4000
      max=4001
      natural=4000
      volume=1.3
    }
    smp3~audio.acc_all
    {
      sample=audio/m33.wav
;m32.wav
      min=6000
      max=6001
      natural=2000
      volume=1.4 ;1.6
    }
    smp4~audio.acc_all
    {
      sample=audio/a6000.wav
      min=6000
      max=6001
      natural=6000
      volume=1.5
    }
    smp5~audio.acc_all
    {
      sample=audio/a8000.wav
      min=8000
      max=9000
      natural=8000
      volume=1.5
    }
    smp6~audio.acc_all
    {
       sample=audio/turbo.wav
       min=5000
       max=8000
       natural=8000
       volume=0.7
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio/d1000.wav
      min=1000
      max=1001
      attack=1300
      decay=1300
      natural=1000
      volume=1.4
    }
    smp1~audio.acc_all
    {
      sample=audio/d2000.wav
      min=2000
      max=2001
      attack=1300
      natural=2000
      volume=1.0
    }
    smp2~audio.acc_all
    {
      sample=audio/d4000.wav
      min=4000
      max=4001
      natural=4000
      volume=1.3
    }
    smp3~audio.acc_all
    {
      sample=audio/d6000.wav
      min=6000
      max=6001
      natural=6000
      volume=1.4
    }
    smp4~audio.acc_all
    {
      sample=audio/d8000.wav
      min=8000
      max=9000
      natural=8000
      volume=1.5
    }
    smp1~audio.acc_all
    {
      sample=audio/wastegate.wav
      min=3500
      max=8000
      natural=8000
      volume=1.5
    }
  }
  wind
  {
    volume=2
    pitch_scale=0
    pitch_offset=50
    smp0
    {
      sample=audio/wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=audio/wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=audio/wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}
;----------------------------------------------------------------------
;Body:}
body
{
  	mass=1490
        restitution_coeff=0.24
  	inertia
  	{
    		x=2300
    		y=2070
    		z=1380
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		;file=body.dof
  	}
 	model_light_l
  	{
    		file=dzienne.dof
  	}
	model_lightroad_l
  	{
    		file=podswietlenie.dof
  	}
  	model_braking_l
  	{
    		file=stop.dof
  	}
  	model_reverse_l
  	{
    		file=rev.dof
  	}
  	width=1.698
  	height=1.091
  	length=4.433
  	manual_box=1
}
;----------------------------------------------------------------------
;Steer:

steer
{
        x=0.3679
  	y=0.3
  	z=0.43
  	radius=10
  	xa=20
  	lock=900
  	linearity=1
  	model
  	{
    		file=kiera.dof
  	}
}

engine
{ 
  mass=0
  stall_rpm=450
  start_rpm=1350
  idle_rpm=1300
  autoclutch_rpm=2500
  max_rpm=7900
  curve_torque=torque.crv
  max_torque=0.875
  idle_method=1
  starter=1
  starter_torque=95
  start_stalled=0
  enable_stall=1

  jitter
  {
    amplitude=0.5
    time_min=550
    time_var=10
    frequency_min=10
    frequency_var=1
  }
  shifting
  {
    automatic=0
    shift_up_rpm=8100
    shift_down_rpm=5000
    time_to_declutch=50
    time_in_neutral=250
    time_to_clutch=10
    time_to_declutch_down=50
    time_in_neutral_down=250
    time_to_clutch_down=200
  }

 inertia
  {
    engine=0.25
    final_drive=0.1
  }
  braking_coeff=2.5
}
clutch
{
  max_torque=500
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-3.75
    inertia=0.13
  }
  gear1
  {
    ratio=4.23
    inertia=0.13
  }
  gear2
  {
    ratio=2.53
    inertia=0.09
  }
  gear3
  {
    ratio=1.67
    inertia=0.07
  }
  gear4
  {
    ratio=1.23
    inertia=0.05
  }
  gear5
  {
    ratio=1
    inertia=0.03
  }
 gear6
  {
    ratio=0.83
    inertia=0.02
  }
}

handbrakes
{
   wheels=23
}
differential
{
  type=1
  ratio=3.846
  inertia=0.1
  locking_coeff=135
  output0=2
  output1=3
}
;----------------------------------------------------------------------
;Aero:

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.40
    		area=2.06
  	}
  	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.04
  	z=1.71
  	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.85
    	camber_change_steering=0.147
        caster_offset=-0.0235
    	toe_change_per_m=0
    
}
susp1~susp_front
{
    	x=-0.85
    	camber_change_steering=-0.147
        caster_offset=-0.0235
    	toe_change_per_m=0
}

susp_rear
{
  	y=-0.045
  	z=-1.30
  	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.86
}

susp3~susp_rear
{
    	x=-0.86
}

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.5
    a1=-35
    a2=1375
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=1.0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-70
    b2=1600
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.25
    b11=-80
    b12=350
    c0=2.3
    c1=-3.8
    c2=-3.14
    c3=-1.16
    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.14
    c15=-1.029
    c16=0.27
    c17=-1.1
    optimal_slipratio=0.11
    optimal_slipangle=0.159
}
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.39
	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=left.dof
  	}
    		model_brake
  	{
    		file=leweprzod.dof
  	}
}

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

wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	mass=15
  	inertia=0.9
  	radius=0.39
  	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=left.dof
  	}
   	model_brake
  	{
    		file=leweprzod.dof
  	}
}

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

camera0
{
  name=Driver
  fov=57
  model=0
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
		x=0.3679
		y=0.57
		z=-0.05
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver
  fov=57
  model=0
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
	offset
	{
		x=0.36
		y=0.57
		z=-0.05
	}
	offset_to
	{
		x=20
		y=0
		z=10
  }
  src
  {
    mass=1
    k=250
    damping=500
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver
  fov=57
  model=0
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
	offset
	{
		x=0.36
		y=0.57
		z=-0.05
	}
	offset_to
	{
		x=-12
		y=0
		z=10
  }
  src
  {
    mass=1
    k=250
    damping=500
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
		x=0.30
		y=0.57
		z=-0.4
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=500
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.3
    z=-4.8
  }
  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=-4.5
  }
  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=0.2
		y=-0.2
		z=-2.6
	}

	angle
	{
		x=-1.361085
		y=150
		z=10
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.5
		z=0.7
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
 	name=External
 	fov=70
 	model=0
 	view=0
 	wheels=0
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0.1
  		y=-0.3
  		z=-3.3
 	}
 	angle
 	{
  		x=0
  		y=-20
  	      z=30
 	}
}