car
{
  name=bmw x3
  year=2003
  credits=Converted by orges from Gta San Andreas.
  comments=automatic gearbox
  id=bmw_x3
  version=0655
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=
    width=0.0
    length=0.0
  }
  cg
  {
    x=0
    y=-0.198
    z=0.02
  }
  ff_factor=0.20
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=bmw.dof
			use_shaders=1
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=
		}
		model1
		{
		file=
		}
		model2
		{
		file=
		}
		model3
		{
		file=
		}
    		model4
    		{
      		file=signal_rl.dof
    		}
    		model5
    		{
      		file=
    		}
    		model6
    		{
      		file=
    		}
    		model7
    		{
      		file=
    		}
    		model8
    		{
      		file=
    		}
    		model9
    		{
      		file=
    		}
    		model10
    		{
      		file=
    		}
    		model11
    		{
      		file=
    		}
	}
}

body
{
  mass=2100	
  restitution_coeff=0.25
  inertia
  {
    x=2100
    y=2140
    z=440
  }
  x=0
  y=0
  z=0
  width=1.7
  height=1.0
  length=4.4
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=bmw.dof
  }
  model_incar
  {
    file=bmw.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakelights.dof
  }
  model_reverse_r
  {
    file=
  }
  model_lightroad_l
  {
  file=
  }
  width=1.79
  height=1.2
  length=4.92
  manual_box=0
}
steer
{
  x=0.465
  y=0.2500
  z=0.55
  xa=20
  lock=900
  linearity=0.2
  model
  {
     file=stw.dof
  }
}
engine
{
	size=0
  	mass=160
  	stall_rpm=350
  	start_rpm=950
  	idle_rpm=900
  	autoclutch_rpm=1500
  	max_rpm=6900

  	curve_torque=torque.crv
        ;8% loss
  	max_torque=320
  	idle_method=1
  	starter=1
  	starter_torque=200
  	start_stalled=1
    enable_stall=1

  jitter
  {
    amplitude=0.4
    time_min=350
    time_var=10
    frequency_min=5
    frequency_var=1
  }
  shifting
  {
    automatic=1
    shift_up_rpm=6800
    shift_down_rpm=2800
    time_to_declutch=70
    time_in_neutral=95
    time_to_clutch=20
    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
}
gearbox
{
   gears=7
   gear0
   {
      ratio=-3.938
      inertia=0.1
   }
   gear1
   {
      ratio=4.323
      inertia=0.01
   }
   gear2
   {
      ratio=2.456
      inertia=0.02
   }
   gear3
   {
      ratio=1.659
      inertia=0.03
   }
   gear4
   {
      ratio=1.4
      inertia=0.04
   }
   gear5
   {
      ratio=1.2
      inertia=0.05
   }
   gear6
   {
      ratio=1
      inertia=0.04
   }
}
clutch
{
   max_torque=700
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=3.46
	inertia=0.05
	locking_coeff=50
	output2=2
	output3=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.26
    area=2.0		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=1
    susp_right=0
    k=36600
  }
  arb1
  {
    susp_left=3
    susp_right=2
    k=21800
  }
}
susp_front
{
  y=-0.19
  z=1.750
 restlen=0.43
  minlen=0.1
  maxlen=0.45
  k=30000
  bump_rate=2500
  rebound_rate=3500
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp_rear
{
  y=-0.29
  z=-1.53
 restlen=0.4
  minlen=0.1
  maxlen=0.45
  k=22500
  bump_rate=2500
  rebound_rate=3000
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.45
    z=0
  }
}
susp0~susp_front
{
  x=0.9
}
susp1~susp_front
{
  x=-0.9	;723
}
susp2~susp_rear
{
  x=0.9
}
susp3~susp_rear
{
  x=-0.9	;7145
}

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=1300
	a3=2000
	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.5
	b1=-70
	b2=1650
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.145
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=1
  camber=0
  lock=45
  ackerman=1.31
  mass=25
  inertia=1.4
  radius=0.4639375
  rolling_coeff=0.018
  max_braking=2000
  braking_factor=1
  tire_rate=250000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=1
  camber=0
  mass=25
  inertia=1.35
  radius=0.4639375
  rolling_coeff=0.018
  max_braking=1000
  braking_factor=1
  max_handbrake_torque=3000
  tire_rate=230000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=-.5
  toe=-0.1
  model
  {
    file=rear-right.dof
    
  }
  model_brake
  {
   ; file=
  }
}
wheel1~wheel_front
{
  x=0
  camber=-.5
  toe=-0.1
  model
  {
    file=rear-left.dof
     
  }
  model_brake
  {
   ; file=
  }
}
wheel2~wheel_rear
{
  x=0
  camber=-0.5
  toe=-0.1
  model
  {
    file=rear-right.dof
    
  }
  model_brake
  {
   ; file=
  }
}
wheel3~wheel_rear
{
  x=0
  camber=-0.5
  toe=-0.1
  model
  {
    file=rear-left.dof
    ;file=
  }
  model_brake
  {
   ; file=
  }
}
camera0
{
  name=Interior View
  	model=0
  	wheels=0
  	view=1
  	fov=72
  	offset
  	{
    		x=0.49
    		y=0.70
    		z=-0.1
  	}
	offset_to
	{
		x=0.00
		y=0.00
		z=10.00
	}
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	angle
  	{
    		x=7.00
    		y=-180.00
    		z=0.00
  	}
	src
	{
		mass=5
		k=750
		damping=150
		maxdist=0.05
	}
}
camera1
{
  name=Left
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.49
    		y=0.70
    		z=-0.1
  }
  offset_to
  {
    x=15.4
    y=0
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.49
    		y=0.70
    		z=-0.1
  }
  offset_to
  {
    x=-12.6
    y=0.
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.0
    y=0.75
    z=-0.1
  }
  offset_to
  {
    x=-0.2
    y=0.8
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior free
  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=120
    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.5
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=Passenger seat
  fov=70
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.4
    y=-0.7
    z=-0.2
  }
  angle
  {
    x=0
    y=180
    z=0
  }
}
camera8
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=1.4
    y=0.06
    z=-0.6
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  view=0
  wheels=2
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.0
    y=-0.60
    z=-0.9
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
;audio-----------------------------------------------

audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1.25
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
     }
  }
  accelerate_in
  {
    volume=0.85
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
  }
  decelerate_in
  {
    volume=0.8
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
  }
   wind
   {
      smp0
      {
         volume=0.5
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.2
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}


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

}