car
{
   name=BMW M5 F10 
  year=2012
  credits=Converted by Vixen Oryginal model from Forza Motorsport 4
  comments=
  wheels=4
  front_area=2.2
  id=bmwm5f10
  version=090b
  skid
  {
    sample=skid.wav
  }
 cg
 {
  x=0
  y=-0.15
  z=0.0
 }
ff_factor=0.42
}

graphics
{
  	shadow
  	{
    		model
    		{
      			file=body.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=.dof
		}
		model1
		{
		file=.dof
		}
		model2
		{
		file=.dof
		}
    		model3
    		{
      		file=.dof
    		}
    		model4
    		{
      		file=dlugie.dof
    		}
    		model5
    		{
      		file=lewy.dof
    		}
    		model6
    		{
      		file=prawy.dof
    		}
    		model7
    		{
      		file=przeciwmglowe.dof
    		}
	}
}


body
{
  mass=1670 ;1880
  inertia
  {
    x=2450
    y=2500
    z=470
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
 model_braking_l
{
  file=stop.dof
}
 model_light_l
  {
  file=lights.dof
  }
 model_lightroad_l
 {
  file=lightsin.dof
}
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
  width=1.96
  height=0.75
  length=4.46
  manual_box=0
}
steer
{
  x=0.4
  y=0.73
  z=0.36
  radius=10
  xa=25
  lock=900
  linearity=0.3
  model
  {
      file=kiera.dof
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=1.7
    ; Pitching with respect to car (in degrees)
    pitch=7
  }
}

engine
{
	x=0
	y=0
	z=0
	autoclutch=0
	autoclutch_rpm=0
	braking_torque_curve=braking_torque.crv
	curve_torque=torque.crv
	cylinders=8
	enable_stall=1
	enable_stall=1
	friction=0
	idle_method=1
	idle_throttle=0.05
	idle_rpm=900
	mass=220
	max_rpm=7000
	max_torque=0.79
	max_warn_rpm=7000
	min_warn_rpm=6700
	size=0
	start_rpm=1300
	stall_rpm=450
	starter=1
	starter_torque=100
	start_stalled=1   ;1
	torque_reaction=0.35

	inertia
	{
		engine=0.42
	}
	jitter
	{
		amplitude=0.1
		frequency_min=1
		frequency_var=0.1
		time_min=150
		time_var=10
	}
	shifting
	{
		automatic=0
		shift_up_rpm=6600
		shift_down_rpm=3200
		time_to_declutch=350
		time_to_clutch=50
	}
}

fuel
{
	bsfc=6.5e-5
	max=90
	type=0
}


gearbox 
{
	gears=8

	gear0
	{
		ratio=-3.403
		inertia=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=3.23  
		inertia=0.03
		linearity=1
	}

	gear2
	{
		ratio=2.19
		inertia=0.04
		linearity=1.2
	}

	gear3
	{ 
		ratio=1.71   
		inertia=0.05
		linearity=1.4
	}

	gear4
	{
		ratio=1.39 
		inertia=0.06
		linearity=1.6
	}

	gear5
	{
		ratio=1.16   
		inertia=0.08
		linearity=1.8
	}

	gear6
	{
		ratio=0.93   
		inertia=0.08
		linearity=1.8
	}

	gear7
	{
		ratio=0.75   
		inertia=0.08
		linearity=1.8
	}
}
clutch
{
  max_torque=600
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.15
  inertia=0.05
  locking_coeff=80
}

aero
{
 body
 {
  center=0 0 0
  cx=0.36
  area=1.94
 }
 wings=2
 wing0
 {
  name=frontaxledf
  span=1
  cord=1
  coeff_drag=0
  coeff_down=45
  center=0 0 1.25
  angle=0
  angle_offset=1
 }
 wing1
 {
  name=rearaxledf
  span=1
  cord=1
  coeff_drag=0
  coeff_down=45
  center=0 0 -1.25
  angle=0
  angle_offset=1
 }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=39000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=23000
   }
}
susp_front                    
{
  y=0.47
  z=1.48
  restlen=0.382		
  minlen=0.12
  maxlen=0.38
  k=45000
  bump_rate=4300
  bump_function=0
  rebound_rate=6000
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=135000
  bumpstop_damping=5600
  reboundstop_len=0.01
  reboundstop_k=120000
  reboundstop_damping=5500
  anti_pitch=0.14
  roll_center
  {
    x=0
    y=-0.45	
    z=0
  }
}
susp_rear
{
  y=0.445
  z=-1.48
  restlen=0.385		
  minlen=0.1
  maxlen=0.36
  k=37000
  bump_rate=4100
  bump_function=0
  rebound_rate=5900
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=115000
  bumpstop_damping=5500
  reboundstop_len=0.01
  reboundstop_k=110000
  reboundstop_damping=5500
  roll_center
  {
    x=0
    y=-0.42	
    z=0
  }
}
susp0~susp_front
  {
    x=0.83
    toe_change_per_m=0.029		
    camber_change_steering=0.1062	
    caster_offset=-0.017		
  }
susp1~susp_front
  {
    x=-0.83
    toe_change_per_m=-0.029  	
    camber_change_steering=-0.1062	
    caster_offset=-0.017		
  }
susp2~susp_rear
  {
    x=0.82
    toe_change_per_m=0.015		
  }
susp3~susp_rear
  {
    x=-0.82
    toe_change_per_m=-0.015		
  }
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=1330
    	a3=2100
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-4.3
    	a112=-0.29
    	a12=17.8
    	a13=-2.4

    	b0=1.5
    	b1=-70
    	b2=1800 ;1550
    	b3=21
    	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.11
    	optimal_slipangle=0.157
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=0
  lock=61.2 ;61.2
  ackerman=1.15
  mass=30 
  inertia=1.5
  width=0.255
  radius=0.354
  rolling_coeff=0.0180
  friction_road=1
  max_braking=2400 
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=1
  mass=30
  inertia=1.6
  width=0.255
  radius=0.354
  rolling_coeff=0.0205
  max_braking=2200
  max_handbrake_torque=760
  braking_factor=0.9
  tire_rate=265000
  pacejka~pacejka
 {
  a2=1525
  a3=2100
  a4=9.5
  b2=1700
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
}
}
wheel0~wheel_front
{
  x=0
  toe=-0.16
  camber=-0.9
  model
  {
    file=lewa.dof
  }
  model_brake
  {
    file=caliper1.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0.16
  camber=-0.9
  model
  {
    file=prawa.dof
  }
  model_brake
  {
    file=caliper1.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.133
  camber=-0.500
  model
  {
    file=lewa.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=caliper1.dof
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.133
  camber=-0.500
  model
  {
    file=prawa.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=caliper1.dof
  }
}
camera0
{
  name=Driver
  fov=62 ;62
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.402
    y=1
    z=-0.3
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=67
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.4
    y=1
    z=-0.3
  }
  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=72
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=1
    z=-0.3
  }
  offset_to
  {
    x=-10
    y=0.5
    z=8
  }
  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=1
    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
{
  offset
  {
    x=0.029688
    y=-0.904162
    z=-6.870018
  }
  angle
  {
    x=15.694407
    y=179.652771
    z=0.000000
  }
  name=Behind
fov=68
  follow
  {
    pitch=0
    yaw=1
    roll=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.42 ;-0.8
    z=-4  ;-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
    z=1
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
	gearwhine
	{
		smp0
		{
		sample=driveshaft.wav
		natural=240
		volume=0.2
		}
	}
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=sounds\onidle_ex.wav
      min=1
      max=2822
      natural=2147
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow_ex.wav
      min=2234
      max=4170
      natural=2964
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sounds\onlow_ex.wav
      min=3540
      max=5384
      natural=4258
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sounds\onmid_ex.wav
      min=4851
      max=7395
      natural=6400
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh_ex.wav
      min=6708
      max=9500
      natural=7720
      volume=1
    }
    smp5~audio.acc_all
    {
      sample=turbo2.wav
      min=1500
      max=9001
      volume=0.15
      natural=800
    }
    smp6~audio.acc_all
    {
      sample=turbo3.wav
      min=5500
      max=9001
      volume=0.1
      natural=300
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=sounds\idle_ex.wav
      min=1
      max=1417
      natural=780
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow_ex.wav
      min=971
      max=4115
      natural=2720
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow_ex.wav
      min=3150
      max=5632
      natural=5116
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid_ex.wav
      min=4944
      max=7544
      natural=7058
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh_ex.wav
      min=6677
      max=9500
      natural=7461
      volume=1
    }
    smp5~audio.acc_all
    {
      sample=turbo2.wav
      min=1500
      max=9001
      volume=0.1
      natural=800
    }
    smp6~audio.acc_all
    {
      sample=turbo3.wav
      min=5500
      max=9001
      volume=0.1
      natural=300
    }
  }
    accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=sounds\onidle_in.wav
      min=1
      max=2822
      natural=2147
      volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow_in.wav
      min=2234
      max=4171
      natural=2964
      volume=0.4
    }
    smp2~audio.acc_all
    {
      sample=sounds\onlow_in.wav
      min=3490
      max=5761
      natural=4258
      volume=0.4
    }
    smp3~audio.acc_all
    {
      sample=sounds\onmid_in.wav
      min=5025
      max=7686
      natural=6400
      volume=0.4
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh_in.wav

      min=6906
      max=9500
      natural=7720
      volume=0.4
    }
    smp5~audio.acc_all
    {
      sample=turbo2.wav
      min=1500
      max=9001
      volume=0.3
      natural=800
    }
    smp6~audio.acc_all
    {
      sample=turbo3.wav
      min=5500
      max=9001
      volume=0.2
      natural=300
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=sounds\idle_in.wav
      min=1
      max=1417
      natural=780
      volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow_in.wav
      min=972
      max=4115
      natural=2720
      volume=0.4
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow_in.wav
      min=3150
      max=5631
      natural=5116
      volume=0.4
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid_in.wav
      min=4944
      max=7543
      natural=7058
      volume=0.4
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh_in.wav
      min=6677
      max=9500
      natural=7461
      volume=0.4
    }
    smp5~audio.acc_all
    {
      sample=turbo2.wav
      min=1500
      max=9001
      volume=0.1
      natural=800
    }
    smp6~audio.acc_all
    {
      sample=turbo3.wav
      min=5500
      max=9001
      volume=0.1
      natural=300
    }
  }
  wind
  {
    volume=2
    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
    }
  }
}