car
{
  name=BMW E34 M5
  year=1996
  id=bmw_
  credits=model: Majkel,Mirror-Venusek,vievs.ini-Ansebasti
  comments=BMW S38 B36 - 6-cylindrowy rzędowy, 24 zaworowy DOHC
  version=090
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=3.25
    length=6.75
    offset_z=-0.25
  }
  cg
  {
    x=0
    y=-0.4
    z=0
  }
  ff_factor=2
}

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

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

	}
}
ai
{
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.2
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.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
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
body
{
  mass=1570
  inertia
  {
    x=3500
    y=3700
    z=2750
  }
  width=1.75
  height=1.0
  length=4.55
  manual_box=0
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_lightroad_l
  {
    file=int_lights.dof
  }
}

steer
{
  x=0.444
  y=0.09
  z=0.40
  xa=19
  lock=900
  linearity=0.85
  model
  {
    file=kiera.dof
  }
}

fuel
{
  type=0
  max=60
  bsfc=5.0e-5
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=850
	max_rpm=7051
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=torque.crv
	max_torque=361
	shifting
	{
		automatic=0
		shift_up_rpm=6500
		shift_down_rpm=2000
		time_to_declutch=0
		time_to_clutch=0
		time_in_neutral=0
		time_to_declutch_down=0
		time_to_clutch_down=0
		time_in_neutral_down=0
	}
	inertia
	{
		engine=0.26
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}

;----------------------drivetrain----------------------

gearbox
{
	gears=6

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

	gear1
	{
		ratio=3.30
		inertia=0.02
	}

	gear2
	{
		ratio=1.94
		inertia=0.03
	}

	gear3
	{
		ratio=1.31
		inertia=0.04
	}

	gear4
	{
		ratio=1.03
		inertia=0.05
	}

	gear5
	{
		ratio=0.84
		inertia=0.06
	}
}
differential
{
  type=1
  ratio=3.33
  inertia=0.05
  locking_coefficient=0.05
}

traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.05
  enable=0
}

abs
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.05
  enable=1
}

aero
{
  body
  {
    center=0 0.2 0.5
    cx=0.33
    area=2.25
  }
  wings=1
  wing0
  {
    name=Body lift
    span=1.6
    cord=0.3
    coeff_drag=0.31
    coeff_down=-3.1	;50kg@200kph
    center=0 0 0
    angle=10
    angle_offset=0
  }
}

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

susp_front
{
  y=-0.43
  z=1.625
  restlen=0.20
  minlen=0.02
  maxlen=0.20
  k=50000
  bump_rate=2500
  bump_function=3
  rebound_rate=5000
  rebound_function=0
  anti_pitch=0.25
  roll_center
  {
    x=0
    y=-0.3
    z=0
  }
}
susp_rear
{
  y=-0.43
  z=-1.59
  restlen=0.20
  minlen=0.02
  maxlen=0.20
  k=42000
  bump_rate=2500
  bump_function=3
  rebound_rate=5000
  rebound_function=0
  anti_pitch=0.15
  roll_center
  {
    x=0
    y=-0.25
    z=0
  }
}

susp0~susp_front
  {
    x=0.87
  }
susp1~susp_front
  {
    x=-0.87
  }
susp2~susp_rear
  {
    x=0.87
  }
susp3~susp_rear
  {
    x=-0.87
  }

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=-40
    a2=1500
    a3=2600
    a4=8.7
    a5=0.014
    a6=-0.24
    a7=1.0
    a8=-0.03
    a9=-0.0013
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.5
    b1=-80
    b2=1250
    b3=23.3
    b4=390
    b5=0.05
    b6=0
    b7=0.055
    b8=-0.024
    b9=0.014
    b10=0.26
    c0=2.2
    c1=-3.9
    c2=-3.9
    c3=-1.26
    c4=-8.2
    c5=0.025
    c6=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.1
    optimal_slipangle=0.15
}

wheel_all
{
  brake_heating=1e-5
  brake_dissipation=1e-6
  brake_max_temp=1000
}

wheel_front~wheel_all
{
  y=0
  z=0

  mass=30
  inertia=1.3
  radius=0.385

  steering=1
  lock=48
  powered=0

  rolling_coeff=0.017
  friction_road=1

  max_braking=3000
  braking_factor=.75

  tire_rate=125000

  pacejka~pacejka
  {  
  }
}
wheel_rear~wheel_all
{
  y=0
  z=0

  mass=30
  inertia=1.3
  radius=0.385

  steering=0
  powered=1

  rolling_coeff=0.019
  friction_road=1

  max_braking=3000
  braking_factor=.25
  max_handbrake_torque=2500

  tire_rate=125000

  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0
  camber=-2.5
  ackerman=1.2
  model
  {
    file=lewa.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0
  camber=-2.5
  ackerman=1.2
  model
  {
    file=prawa.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.5
  camber=-2.5
  model
  {
    file=lewa.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.5
  camber=-2.5
  model
  {
    file=prawa.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}

camera0
{
	name=Chase Normal
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.45
		y=-0.35
		z=-0.30
	}
	follow
	{
		pitch=0
		yaw=1
		roll=0
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}

camera1
{
	name=Chase Close
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.45
		y=-0.35
		z=-0.09
	}
	follow
	{
		pitch=0
		yaw=1
		roll=0
	}
	angle
	{
		x=10
		y=180
		z=0
	}
}

camera2
{	
	name=Bumper
	fov=75
	model=2
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.2
		z=2.7
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=0
		y=180
		z=0
	}
}

camera3
{	
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-1
		z=-6.5
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}

camera4
{
  name=Static Side View
  offset
  {
    x=0
    y=0.45
    z=-7
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=16
    y=130
    z=0
  }
}

camera5
{
	name=Front View
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=0.5
		z=-6
	}
	follow
	{
		pitch=0
		yaw=1
		roll=0
	}
	angle
	{
		x=20
		y=0
		z=0
	}
}

camera6
{
	name=Front Left Wheel
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.75
		y=0.2
		z=-1
	}
	angle
	{
		x=25
		y=240
		z=0
	}
	follow
	{
		pitch=0
		yaw=1
		roll=0
	}
}

camera7
{
	name=Left Mirror
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.8
		y=-0.75
		z=-0.75
	}
	angle
	{
		x=0
		y=-155
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera8
{
  name=Driver Looking Back
  fov=50
  model=1
  view=1
  wheels=0
  offset
  {
    x=-0.25
    y=-0.8
    z=-0.15
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=0
    y=345
    z=0
  }
}

camera9
{
  name=Driver
  model=1
  view=1
  wheels=0
  offset
  {
    x=0.444
    y=-0.75
    z=-0.2
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=0
    y=180
    z=0
  }
}
;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
  skid
  {
    smp0
    {
      sample=skid.wav
      attack=0.3
      decay=1
      min=0.4
      max=20
    }
    smp1
    {
      sample=SkidRoadHeavyMajor.wav
      attack=0.2
      decay=1
      min=0.7
      max=20
    }
  }
  horn
  {
    sample=horn
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
	gearwhine
	{
		smp0
		{
		sample=
		natural=240
		volume=0.2
		}
	}
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=onidle.wav
      min=0
      max=1500
      natural=1147
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=onlow.wav
      min=1501
      max=4000
      natural=2964
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=onmid.wav
      min=4001
      max=6000
      natural=5400
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=onhigh.wav
      min=6001
      max=9500
      natural=7720
      volume=1
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1500
      natural=780
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=offlow.wav
      min=1500
      max=4000
      natural=2720
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=offmid.wav
      min=4001
      max=6000
      natural=7058
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=offhigh.wav
      min=6001
      max=9500
      natural=7461
      volume=1
    }
  }
    accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=onidle.wav
      min=0
      max=1500
      natural=2147
      volume=0.2
    }
    smp1~audio.acc_all
    {
      sample=onlow.wav
      min=1490
      max=4000
      natural=2964
      volume=0.2
    }
    smp2~audio.acc_all
    {
      sample=onmid.wav
      min=3990
      max=6000
      natural=6400
      volume=0.2
    }
    smp3~audio.acc_all
    {
      sample=onhigh.wav

      min=5990
      max=9500
      natural=7720
      volume=0.2
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=onidle.wav
      min=0
      max=1500
      natural=780
      volume=0.2
    }
    smp1~audio.acc_all
    {
      sample=offlow.wav
      min=1490
      max=3000
      natural=2720
      volume=0.2
    }
    smp2~audio.acc_all
    {
      sample=offmid_in.wav
      min=3990
      max=6000
      natural=7058
      volume=0.2
    }
    smp3~audio.acc_all
    {
      sample=offhigh.wav
      min=5990
      max=9500
      natural=7461
      volume=0.2
    }
  }
  wind
  {
    volume=2
    pitch_scale=0
    pitch_offset=50
    smp0
    {
      sample=
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}