car
{
  name=BPM Booster New R
  year=2010
  credits=Brazilian Performance Motorsport - Performance = Top Speed: 325 km/h  =  0-100 km/h=3.8s
  comments=B038v Alluminium V8 DOHC 3.8L 40V 410hp@7700rpm  420Nm@5000rpm- 6 M/T
  wheels=4
  id=newBPMboo
  version=063b
  shadow
  {
    texture=shadow.tga
    width=2.8
    length=5.4
    offset_z=-0.11
    ;}
  }
  	cg
  	{
    		x=0
		;420mm - from dry sumped engine
    		y=0.06 ;-0.0885
		;45% front, 55% rear
    		z=-0.155 ;0.231
  	}
  	ff_factor=0.55
}
body
{
  mass=830 ;1200kg
  inertia
  {
    x=2300
    y=2400
    z=475
  }
  model
  {
    file=newbooster.dof
  }
  model_incar
  {
    file=newbooster.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_light_l
  {
  file=lights.dof
  }
  model_lightroad_l
  {
  file=lightsin.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.31
  y=0.28
  z=0.3
  radius=10
  xa=20
  lock=900
  linearity=1
  model
  {
    file=str.dof
  }
}
flares
{
  ; outer lamps
  flare0
  {
    pos=-0.638 0.096 1.6
    color=1.0 0.86 0.74
	normal=-0.05 0.1 0.6
	z_offset=-3000
	size_factor=1.2
	intensity=1.0
  }
  flare1
  {
   pos=0.638 0.096 1.6
    color=1.0 0.86 0.74
	normal=0.05 0.1 0.6
	z_offset=-3000
	size_factor=1.2
	intensity=1.0
  }
  ;fog lamps
   flare2
  {
    pos=-0.563 -0.2 1.85
    color=1.0 0.9 0.8
	normal=-0.05 0.1 0.5
	z_offset=-3000
	size_factor=1.0
	intensity=1.0
	}
  flare3
  {
    pos=0.563 -0.2 1.85
    color=1.0 0.9 0.8
	normal=0.05 0.1 0.6
	z_offset=-3000
	size_factor=1.0
	intensity=1.0
  }
  ; Brake lights
  flare4
  {
    rule=brake
    pos=-0.596 0.32 -2.002
	normal=-0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.2
	intensity=0.8
	z_offset=-1000
  }
  flare5
  {
    rule=brake
    pos=0.596 0.32 -2.002
	normal=0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.2
	intensity=0.8
	z_offset=-1000
  }
    flare6
  {
    rule=brake
    pos=-0.72 0.32 -2.002
	normal=-0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.2
	intensity=0.9
	z_offset=-1000
  }
  flare7
  {
    rule=brake
    pos=0.72 0.32 -2.002
	normal=0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.2
	intensity=0.9
	z_offset=-1000
  }
   flare8
  {
    rule=brake
    pos=-0.5 0.32 -2.002
	normal=-0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.2
	intensity=0.9
	z_offset=-1000
  }
  flare9
  {
    rule=brake
    pos=0.5 0.32 -2.002
	normal=0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.2
	intensity=0.9
	z_offset=-1000
  }
    flare10
  {
    rule=brake
    pos=0 0.48 -2.1
	normal=0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1.6
	intensity=0.9
	z_offset=-1000
  }
  ;rear
     flare11
  {
    pos=-0.5 0.28 -2.002
	normal=-0.05 0 -0.5
	color=1.0 0.3 0.0
	size_factor=1
	intensity=0.8
	z_offset=-1000
  }
  flare12
  {
    pos=0.5 0.28 -2.002
	normal=0.05 0 -0.5
	color=1.0 0.3 0.0
	size_factor=1
	intensity=0.8
	z_offset=-1000
  }
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=30
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine
  bsfc=4e-5
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=65
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=1
    ; Pitching with respect to car (in degrees)
    pitch=-2
    ; Fall-off distance
    far=300
  }
}
engine
{
	size=0
  	mass=230
  	stall_rpm=450
  	start_rpm=1350
  	idle_rpm=1300
  	autoclutch_rpm=2500
  	max_rpm=8500

  	curve_torque=torque.crv
				;3788cc 40v V8 Alluminium
                                ;420 nm @ 5000 rpm

				;410 hp @ 7700 rpm
        ;12.5% loss
  	max_torque=0.875
  	idle_method=1
  	starter=1
  	starter_torque=95
  	start_stalled=0   ;1
    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.2
    inertia=0.13
  }
  gear1
  {
    ratio=3.2
    inertia=0.13
  }
  gear2
  {
    ratio=2.1
    inertia=0.09
  }
  gear3
  {
    ratio=1.5
    inertia=0.07
  }
  gear4
  {
    ratio=1.18
    inertia=0.05
  }
  gear5
  {
    ratio=0.94
    inertia=0.03
  }
 gear6
  {
    ratio=0.76
    inertia=0.02
  }
}

handbrakes
{
  wheels=23
}
differential
{
  type=1
      ; LSD diff: preload torque (the defaults will give an open differential!)
    preload=500
    ; LSD diff: power-on coefficient (clutchTorque+=power_coeff*engineInputTorque)
    power_coeff=0.07
    ; LSD diff; power-off coefficient. For a 1-way LSD, coast_coeff=0, for a 2-way LSD
    ; coast_coeff=1 and for a 1.5 way coast_coeff is somewhere inbetween 0 and 1
    coast_coeff=0
  ratio=3.95
  ;inertia=0.1
  ;locking_coeff=125
  output0=2
  output1=3
}

aero
{
  body
  {
    center=0 0 0
    cx=0.29
    area=2	;1.85 for car, 0.05 for front wheel cross section...
  }
  wings=2
  wing0
  {
    name=Overall aerodynamic effect F
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=21.18	;2746N (1275f 1471r) @ 300km/h
    center=0 -0.3 -1.21
    angle=0
    angle_offset=10
  }
  wing1
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=20.82	;2746N (1275f 1471r) @ 300km/h
    center=0 -0.3 -1.39
    angle=0
    angle_offset=10
  }
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.09
  enable=0
}

abs
{ 
  enable=1
  max_velocity_ratio=1.11 
  min_velocity_ratio=1.09
  min_velocity=0.1
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=45000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=35000
  }
}

susp_front
{
  	y=0.15
  	z=1.26
	;245mm
  	restlen=0.345
  	minlen=0.12
  	maxlen=0.365
  	k=56000
        bumpstop_len=0.05
        bumpstop_k=100000
  	bump_rate=3354
  	bump_function=0
  	rebound_rate=7507
  	rebound_function=0
  	;anti_pitch=0.40
  	camber_change_per_m=0.010
        caster_offset=-0.03
  	roll_center
  	{
    		x=0
		;45mm
    		y=-0.427
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.85
   	toe_change_per_m=0.025
    	camber_change_steering=0.100
  kingpin_offset=0.02
}

susp1~susp_front
{
    	x=-0.85
    	toe_change_per_m=-0.025
    	camber_change_steering=-0.100
  kingpin_offset=-0.02
}

susp_rear
{
  	y=0.14
  	z=-1.29
	;245mm
  	restlen=0.335
  	minlen=0.05
  	maxlen=0.360
        bumpstop_len=0.05
        bumpstop_k=100000
  	k=55000
  	bump_rate=2872
  	bump_function=0
  	rebound_rate=6800
  	rebound_function=0
  	;anti_pitch=0.35
  	camber_change_per_m=0.05
  	roll_center
  	{
    		x=0
		;80mm
    		y=-0.372
    		z=0
  	}
}

susp2~susp_rear
{
   	x=0.8
    	toe_change_per_m=0.015
}

susp3~susp_rear
{
   	x=-0.8
    	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=1450
    	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=1450 ;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
  	power_gearing=0
  	lock=51
  	camber=-0.9
  	mass=35
  	inertia=1.5
  	radius=0.3259
        width=0.275
  	rolling_coeff=0.015
  	max_braking=3690
  	braking_factor=1.0
 	tire_rate=160000
  	pacejka~pacejka
  	{
  	}
}

wheel0~wheel_front
{
	;-0.100
  	toe=-0.1695
	;-0.700
  	ackerman=1.1
  	model
  	{
    		file=lf.dof
  	}
  	model_brake
  	{
    		file=caliper_left.dof
  	}
}

wheel1~wheel_front
{
	;0.100
  	toe=0.1695
	;-0.700
  	ackerman=1.1
  	model
  	{
    		file=rfw.dof
  	}
  	model_brake
  	{
    		file=caliper_right.dof
  	}
}

wheel_rear
{
  	y=0
  	z=0
  	steering=0
  	powered=1
  	camber=-1.5
  	mass=35
  	inertia=1.5
  	radius=0.33315
        width=0.335
  	rolling_coeff=0.015
  	max_braking=685
  	braking_factor=0.8
  	max_handbrake_torque=3000
  	tire_rate=160000
  	pacejka~pacejka
	{
        a2=1550
        b2=1550
	}
}

wheel2~wheel_rear
{
	;-0.050
  	toe=-0.133
	;-0.850
  	model
  	{
    		file=lrw.dof
		offset
		{
			x=0.030
		}
  	}
  	model_brake
  	{
    		file=caliper_left1.dof
  	}
}

wheel3~wheel_rear
{
	;0.050
  	toe=0.133
	;-0.850
  	model
  	{
    		file=rrw.dof
		offset
		{
			x=-0.030
		}
                offset
		{
			x=0.030
		}
  	}
  	model_brake
  	{
    		file=caliper_right1.dof
  	}
}
camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.35
    y=0.54
    z=-0.22
  }
  offset_to
  {
    x=0.38
    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, left
  fov=55
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.35
    y=0.54
    z=-0.37
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.54
    z=-0.37
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  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
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=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.8
    z=-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
{
  skid
  {
    smp0
    {
      sample=skid.wav
      attack=0.3
      decay=1
      min=0.4
      max=20
    }
    smp1
    {
      sample=skid2.wav
      attack=0.2
      decay=1
      min=0.7
      max=20
    }
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=g1100.wav
      min=300
      max=1322
      natural=1847
      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
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=g1100.wav
      min=300
      max=1622
      natural=1847
      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
    }
  }
      accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=g1100.wav
      min=300
      max=1322
      natural=1847
      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
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=g1100.wav
      min=300
      max=1622
      natural=1847
      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
    }
  }
    
  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
    }
  }
}
  ; Projected lights
  light0
  {
    texture=lightx.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  OLD_light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
;   }
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=7
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine. 7/11-alcool, 5.2e-5 8.5/13.5-gasol
  bsfc=6.3e-5
}