car
{
	name=BPM Cascada R 3.8L
	year=2010
  credits=Brazilian Performance Motorsport - Performance = Top Speed: 300 km/h  =  0-100 km/h= 4.7s
  comments=B038v Alluminium V8 DOHC 3.8L 40V 410hp@7700rpm  420Nm@5000rpm - 6 M/T - RWD
	id=CascadaR
	version=063b
	wheels=4
	shadow
	{
		texture=shadow.tga
		width=2.5
		length=6
	}
  }
  cg
  {
    x=0
    y=0		;515mm
    z=0
  }
  ff_factor=0.45
}

body
{
	mass=1080	
  inertia
  {
    x=2450
    y=2500
    z=470
  }
	width=1.74
	height=1.05
	length=4.07
	manual_box=0
	model
	{
		file=cascadaR.dof
	}
	model_incar
	{
		file=cascadaR.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
	model_light_l
	{
		file=lights.dof
	}
                  model_lightroad_l
                  {
                                    file=lightsin.dof
                   }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=reverse_light.dof
  }
  model_reverse_r
  {
    file=reverse_light.dof
}
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=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.3
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
  light2
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=35.0
    ; Aspect (horizontal)
    aspect=1.8
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.53 0.13 2.20
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare1
  {
    pos=0.53 0.13 2.20
    color=1.0 0.8 1.6
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare2
  {
    pos=-0.53 0.13 2.20
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare3
  {
    pos=0.53 0.13 2.20
    color=1.0 0.8 1.6
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare4
  {
    pos=-0.7 0.16 2.17
    color=1.0 0.3 0.1
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare5
  {
    pos=0.7 0.16 2.17
    color=1.0 0.3 0.1
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare6
  {
    pos=-0.7 0.16 2.17
    color=1.0 0.3 0.1
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare7
  {
    pos=0.7 0.16 2.17
    color=1.0 0.3 0.1
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare8
  {
    pos=-0.55 -0.18 2.25
    color=1.0 0.7 0.55
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare9
  {
    pos=0.55 -0.18 2.25
    color=1.0 0.7 0.55
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare10
  {
    pos=-0.55 -0.18 2.25
    color=1.0 0.7 0.55
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare11
  {
    pos=0.55 -0.18 2.25
    color=1.0 0.7 0.55
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  ; Rear lights
  flare12
  {
    pos=0.67 0.2184 -2.22
	normal=-0.05 0 -0.5
	color=1.0 0.3 0.0
	size_factor=1
	intensity=0.7
	z_offset=-1000
  }
  flare13
  {    
	pos=0.67 0.2184 -2.22
	normal=-0.05 0 -0.5
	color=1.0 0.3 0.0
	size_factor=1
	intensity=0.7
	z_offset=-1000
  }
  ; Brake lights
  flare14
  {
    rule=brake
    pos=-0.68 0.4 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare15
  {
    rule=brake
    pos=0.68 0.4 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare16
  {
    rule=brake
    pos=-0.68 0.4 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare17
  {
    rule=brake
    pos=0.68 0.4 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
}

steer
{
	x=0.34
	y=0.44
	z=0.54
	xa=20
        lock=540
	linearity=0.3
	model
	{
		file=str.dof
		lod0_z=0
		lod_out=2
	}
}

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=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=1
    inertia=0.03
  }
 gear6
  {
    ratio=0.84
    inertia=0.02
  }
}

handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.846
  inertia=0.1
  locking_coeff=135
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.36
    area=2
  }
  wings=2
  wing0
  {
    name=Overall aerodynamic effect F
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.0	
    center=0 -0.1 1.49
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=19.3	;1000N @ 250km/h
    center=0 -0.1 -1.25
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=38500
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=27500
  }
}


susp_front
{
	y=0.045
	z=1.49
	;245mm
  restlen=0.348		;3433N load, 168mm Restlength + 331mm wheel rad ~ 498mm		143 lb/in * 175.5 ~ 25,097 N/m
  minlen=0.1		;								
  maxlen=0.35		;
  k=24598		;Motion Ratio = 0.99, Wheel Rate = 0.9801 * Spring Rate
  bump_rate=1750	;1718 static critical damping ratio * 1.0			sachs dampers
  rebound_rate=4250	;5868 static critical damping ratio * 0.7
  bump_function=0
  bump_max=1750
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.448		;50mm RC -- 498mm - 50mm ~ 448mm RC>SuspXYZ
    z=0
  }
}

susp_rear
{
	y=0.0
	z=-1.25
	;245mm
  restlen=0.302		;3573N load, 200mm Restlength + 331mm wheel rad ~ 531mm		345>685 lb/in * 175.5 ~ 60548>120218 N/m
  minlen=0.1		;								190mm spring travel. Quite linear until high
  maxlen=0.31		;								deflection. Assume rate of 1/3rd of range.
  k=35039		;Motion Ratio = 0.66, Wheel Rate = 0.4356 * Spring Rate		((120218-60548)/3)+60548 = 80438
  bump_rate=2250	;2190 static critical damping ratio * 1.0			Wheel rate = 35039
  rebound_rate=5000	;7146 static critical damping ratio * 0.7
  bump_function=0
  bump_max=2250
  rebound_function=0
  anti_pitch=0.08
  camber_change_per_m=0.05	;0.25 degrees per 0.1m deflection!
  roll_center
  {
    x=0
    y=-0.421		;110mm RC -- 531mm - 110mm ~ 402mm RC>SuspXYZ
    z=0
  }
}

susp0~susp_front
{
	x=0.825
    toe_change_per_m=0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=-0.017		;5.78 degrees static caster -0.017!
}
susp1~susp_front
{
	x=-0.825
    toe_change_per_m=-0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=-0.017		;5.78 degrees static caster -0.017!
}

susp2~susp_rear
{
	x=0.78
    	toe_change_per_m=0.015
}
susp3~susp_rear
{
	x=-0.78
    	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.5
    a1=-35
    a2=1375
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=1.0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-70
    b2=1600
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.25
    b11=-80
    b12=350
    c0=2.3
    c1=-3.8
    c2=-3.14
    c3=-1.16
    c4=-7.2
    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.159
}

; wheels section

wheel_front
{
  y=0
  z=0
  steering=1
  lock=55.2
  mass=30
  inertia=1.5
  radius=0.331	;245/40 R19
  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
  mass=30
  inertia=1.5
  radius=0.331	;295/35 R19
  rolling_coeff=0.0205
  friction_road=1
  max_braking=550
  max_handbrake_torque=750
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
 {
  a2=1500
  a3=2100
  a4=9.5
  b2=1650
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}

wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0.16
	camber=-0.9
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=caliper_left.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=-1.15
	toe=0.16
	camber=-0.9
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=caliper_right.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.133	
	camber=-0.500
	model
	{
		file=lrw.dof
	}
	model_brake
	{
		file=caliper_left1.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.133
	camber=-0.500
	model
	{
		file=rrw.dof
	}
	model_brake
	{
		file=caliper_right1.dof
	}
}
; ai opponents
     
ai
{
	grip_factor=1.1
}

;	------------------ 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=1422
      natural=1147
      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=1422
      natural=1147
      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=1422
      natural=1147
      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=1422
      natural=1147
      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
    }
  }
}

; driving aids section

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

abs
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1.15
	enable=1
}


; camera settings section

camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.35
    y=0.7
    z=0.02
  }
  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.7
    z=0.05
  }
  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.7
    z=0.05
  }
  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.63
    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
  }
}

