car
{
   name=BMW E46 330d (Sedan)
  year=2000
  credits=Converted by Djvolt Car.ini by Szaki; edit by Miguel1.8Turbo
  comments=2926 cc; 184 Hp(135Kw) @ 4000 rpm; 390 Nm @ 1750 rpm; 0-100:7,8s; Top:227km/h
  wheels=4
  front_area=
  id=e46
  version=090
  skid
  {
    sample=skid.wav
  }
         shadow
  {
    texture=shadow.tga
    width=0
    length=0
  }
  cg
  {
    x=0
    y=-0.198
    z=0.02
  }
  ff_factor=0.20
}
graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=e46.dof
    }
  }

	generic
	{
		model0
		{
		file=b.dof
		}
		model1
		{
		file=le.dof
		}
		model2
		{
		file=pe.dof
		}
		model3
		{
		file=sht.dof
		}
    		model4
    		{
      		file=si8l.dof
    		}

	}
     }
  }
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=2.5
    ; Distance to car
    z=0.5
    ; Pitching with respect to car (in degrees)
    pitch=2.5
    ;Light color
    color=3 3.5 4
    ;Max distance
    far=100
  }
}

body
{
  mass=1600
  inertia
  {
    x=3200 
    y=4210 
    z=625
  }
  model
  {
    file=e46.dof
  }
  model_incar
  {
    file=e46.dof
  }
 model_braking_l
{
  file=brakelights.dof
}
 model_light_l
  {
  file=lights.dof
  }
 model_lightroad_l
 {
  file=lights.dof
}
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=r.dof
}
  width=1.96
  height=0.75
  length=4.46
  manual_box=0
}
steer
{
  x=0.3234
  y=0.2792
  z=0.3660
  radius=10
  xa=20
  lock=900
  linearity=1.0	;3 turns lock to lock = 1080 degrees 15.4:1 steering ratio
  model
  {
      file=kiera.dof
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.56 0.041 1.8
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare1
  {
    pos=0.56 0.041 1.8
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
}
lights
{
   Projected lights
  light0
  {
    texture=light.tga
     Field of view (vertical)
    fov=35
     Aspect (horizontal)
    aspect=10.5
     Distance to car
    z=1.2
     Pitching with respect to car (in degrees)
    pitch=100
     Fall-off distance
    far=1000
  }
  light1
  {
    texture=light0.tga
     Field of view (vertical)
    fov=35.0
     Aspect (horizontal)
    aspect=10.5
     Distance to car
    z=6
     Pitching with respect to car (in degrees)
    pitch=100
  }
}
engine
{
  	mass=0
  	idle_rpm=750
        idle_method=1
        idle_throttle=0.08
  	max_rpm=5001
  	start_rpm=750
  	stall_rpm=450
  	autoclutch_rpm=1500
	autoclutch=0
	launch_control=0
  	starter=1
  	starter_torque=110
  	start_stalled=1
        torque_reaction=0.6
  	curve_torque=torque.crv
  	max_torque=390
  	reaction=0
  	shifting
  	{
    		automatic=0
    		shift_up_rpm=5750
    		shift_down_rpm=2750
    		time_to_declutch=0
    		time_to_clutch=0
  	}
  	inertia
  	{
    	  engine=0.39
          final_drive=2.56;1
  	}
  	braking_coeff=2.55
}
gearbox
{
	gears=6
  	gear0
  	{
    		ratio=-4.72
    		inertia=0.163
  	}
  	gear1
  	{
    		ratio=5.24
    		inertia=0.121
  	}
  	gear2
  	{
    		ratio=2.92
    		inertia=0.072
  	}
  	gear3
  	{
    		ratio=1.82
    		inertia=0.048
  	}
  	gear4
  	{
    		ratio=1.27
    		inertia=0.035
  	}
  	gear5
  	{
    		ratio=1.04
    		inertia=0.029
  	}
  	
 }
}

differential
{
  type=0
  ratio=2.28
  inertia=0
  locking_coeff=0
  output2=2
  output3=3
}

clutch
{
    max_torque=455
}
handbrakes
{
    wheels=23
}

aero
{
  body
  {
    center=0 0 0
    cx=0.30	
    area=2.26
  }
  wings=1
  wing0
  {
    name=overall body lift	; 13kg front, 19kg rear at 200kmh
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}

antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=22500
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=16100
   }
}
susp_front                    
{
  y=0.11
  z=1.3700
  restlen=0.372		
  minlen=0.12
  maxlen=0.38
  k=55800
  bump_rate=6640
  bump_function=0
  rebound_rate=6640
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=135000
  bumpstop_damping=5600
  reboundstop_len=0.01
  reboundstop_damping=5500
  anti_pitch=0.09
  roll_center
  {
    x=0
    y=-0.56	
    z=0
  }
}
susp_rear
{
  y=0.11
  z=-1.1620
  restlen=0.382		
  minlen=0.1
  maxlen=0.36
  k=57200
  bump_rate=5890
  bump_function=0
  rebound_rate=5520
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=10000
  bumpstop_damping=5500
  reboundstop_len=0.01
  reboundstop_damping=5500
  anti_pitch=0.14
  roll_center
  {
    x=0
    y=-0.54	
    z=0
  }
}
susp0~susp_front
  {
    x=0.71
    toe_change_per_m=0.029			
    caster_offset=-0.017		
  }
susp1~susp_front
  {
    x=-0.71
    toe_change_per_m=-0.029  	
    camber_change_steering=-0.1062	
    caster_offset=-0.017		
  }
susp2~susp_rear
  {
    x=0.73
    toe_change_per_m=0.015		
  }
susp3~susp_rear
  {
    x=-0.73
    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.2
    a1=-25
    a2=1400
    a3=1850
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1540
    b3=20
    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
}
pacejka_rear
{
    a0=1.2
    a1=-25
    a2=1450
    a3=2400
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1200
    b3=20
    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
}
wheel_front
{
  y=0
  z=0
  steering=1
  lock=63
  ackerman=1.24
  mass=30 
  inertia=1.5
  width=0.255
  radius=0.30
  powered=0
  rolling_coeff=0.0180
  friction_road=1
  max_braking=2300
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=30
  inertia=1.6
  width=0.255
  radius=0.30
  powered=1
  rolling_coeff=0.0205
  max_braking=900
  max_handbrake_torque=8070
  braking_factor=0.98
  tire_rate=265000
  pacejka~pacejka_rear
 {
a0=1.25
  a1=-30
  a2=1450
  a3=2400
  b0=1.35
  b1=-50
  b2=1130
  optimal_slipratio=0.12
  optimal_slipangle=0.159
}
}
wheel0~wheel_front
{
  x=0
  toe=-0.1
  camber=-1.00
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=k.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0.1
  camber=-1.00
  model
  {
    file=fp.dof
  }
  model_brake
  {
    file=k2.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.05
  camber=-1.00
  model
  {
    file=fl.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=k3.dof
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.05
  camber=-1.00
  model
  {
    file=fp.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=k4.dof
  }
}
camera0
{
  name=Driver
  fov=62 ;62
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.3875
    y=0.57
    z=-0.25
  }
  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.35
    y=0.52
    z=-0.26
  }
  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=0.5
    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=0.53
    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=80
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=1.5
    y=0.3 ;-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.0
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
starter
{
sample=starter.wav
}
skid
  	{
    		sample=skid.wav
		sample2=skid.wav
  	}
  	acc_all
  	{
    		attack=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idle.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/t.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000.wav
      			min=3900
      			max=6666
      			natural=5000
    		}
        }
  	decelerate_out
  	{
   		smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idle.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/t.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000.wav
      			min=3900
      			max=6666
      			natural=5000
		}
      }	
accelerate_in
  {
    smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idlein.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500in.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000in.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500in.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/tin.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000in.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000in.wav
      			min=3900
      			max=6666
      			natural=5000
    }
  }  
decelerate_in
  {
    smp0~audio.acc_all
    		{
      			volume=1
			sample=bmwr6dieseloncr/idlein.wav
      			min=0
      			max=1000
      			natural=750
    		}
		smp1~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/1500in.wav
      			min=1000
      			max=1500
      			natural=1250
		}
		smp2~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2000in.wav
      			min=1500
      			max=2000
      			natural=1750
		}
		smp3~audio.acc_all
    		{
      			volume=2
     			sample=bmwr6dieseloncr/2500in.wav
      			min=2000
      			max=2500
      			natural=2250
		}
		smp4~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/tin.wav
      			min=1750
      			max=4500
      			natural=2500
		}
		smp5~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/3000in.wav
      			min=2500
      			max=6000
      			natural=3250
		}
		smp6~audio.acc_all
    		{
      			volume=1
     			sample=bmwr6dieseloncr/4000in.wav
      			min=3900
      			max=6666
      			natural=5000
    }
 }
}



abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}