car
{
	name=BPM Cascada L 1.4 16V
	year=2010
	credits=0-100 km/h: 11.6s, Top Speed: 189 km/h
        comments=B01416 4 cylinders in line, 1392cc, 16V n/a, 110hp@6300rpm, 125 lb-ft @3900rpm
	id=CascadaS
	version=063b
	wheels=4
	shadow
	{
		texture=shadow.tga
		width=2.4
		length=5
		offset_z=-0.1
	}
	cg
	{
		x=0
		y=-0.2  
		z=0.38	         ; 60 - 40
	}
	ff_factor=0.6
}
body
{
	mass=1300	
	inertia
	{
		x=1810
		y=1650
		z=515
	}
	width=1.74
	height=1.05
	length=4.07
	manual_box=0
	model
	{
		file=cascadaL.dof
	}
	model_incar
	{
		file=cascadaL.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.06 2.20
    color=1.0 0.8 0.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare1
  {
    pos=0.53 0.06 2.20
    color=1.0 0.8 0.6
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare2
  {
    pos=-0.53 0.06 2.20
    color=1.0 0.8 0.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare3
  {
    pos=0.53 0.06 2.20
    color=1.0 0.8 0.6
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare4
  {
    pos=-0.7 0.08 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.08 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.08 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.08 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
  }
  ; Brake lights
  flare8
  {
    rule=brake
    pos=-0.68 0.23 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare9
  {
    rule=brake
    pos=0.68 0.23 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare10
  {
    rule=brake
    pos=-0.68 0.23 -2.23
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare11
  {
    rule=brake
    pos=0.68 0.23 -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.33
	z=0.54
	xa=20
        lock=540
	linearity=0.3
	model
	{
		file=str.dof
		lod0_z=0
		lod_out=2
	}
}

engine
{
	mass=0
	idle_rpm=830
	max_rpm=7100
	stall_rpm=500
	start_rpm=1200
	start_stalled=0
        reaction=0.45
        starter=1
	starter_torque=75
	autoclutch_rpm=1500

	curve_torque=torque16v.crv
	max_torque=140
	shifting
	{
		automatic=0
		shift_up_rpm=7000 ; Maximum power rpm
		shift_down_rpm=3100
		time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
	}
	inertia
	{
		engine=0.295
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	;sample=
	;sample_rpm=
}
  jitter
  {
    amplitude=1.05
    time_min=300
    time_var=400
    frequency_min=4
    frequency_var=7
  }

; gearbox ratios section

gearbox
{
	gears=7

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

	gear1
	{
		ratio=3.62
		inertia=0.01
		linearity=1
	}

	gear2
	{
		ratio=2.06
		inertia=0.02
		linearity=1.2
	}

	gear3
	{
		ratio=1.47
		inertia=0.03
		linearity=1.4
	}

	gear4
	{
		ratio=1.09
		inertia=0.04
		linearity=1.6
	}

	gear5
	{
		ratio=0.93
		inertia=0.06
		linearity=1.8
        }
	gear6
	{
		ratio=0.76
		inertia=0.07
		linearity=1.9
	}
}

differential
{
	type=1
	ratio=5.07
	inertia=0.1
	locking_coeff=25
	output0=0    ;RWD
	output1=1    ;RWD
}

clutch
{
	max_torque=400
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.33
		area=2.381475
	}
	  wings=1
	  wing0
	{
		name=lift
		span=1
		cord=1
		coeff_drag=0
		coeff_down=0
		center=0 0 0
		angle=0
		angle_offset=10
	}
}

antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=41000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=34000
	}
}


susp_front
{
	y=0.0
	z=1.49
	restlen=0.451			
	minlen=0.22
	maxlen=0.46
	k=27000              
	bump_rate=1350	
	rebound_rate=4600	
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.75
		z=0
	}
}

susp_rear
{
	y=0.0
	z=-1.26
	restlen=0.420			
	minlen=0.2
	maxlen=0.43
	k=24500	        
	bump_rate=1400	
	rebound_rate=4200	
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.60
		z=0
	}
}

susp0~susp_front
{
	x=0.76
	camber_change_steering=0.147
	caster_offset=-0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.76
	camber_change_steering=-0.147
	caster_offset=-0.0235		
	toe_change_per_m=0
}

susp2~susp_rear
{
	x=0.76
}
susp3~susp_rear
{
	x=-0.76
}

; tires section

tire_model_front
{
	damping_predict_lat=0.492
	damping_predict_long=0.018
}
tire_model_rear
{
	damping_predict_lat=0.504
	damping_predict_long=0.020
}
pacejka
{
    a0=1.4
   	a1=-29
   	a2=1065		;rear wheels grip
   	a3=10000		;higher value decrease tendency to oversteer
   	a4=11
   	a5=0.015
   	a6=-0.25
   	a7=1.0
   	a8=-0.03
   	a9=-0.001
   	a10=-0.15
   	a111=-8.0
   	a112=-0.29
   	a12=17.8
   	a13=-2.4

   	b0=1.5
   	b1=-58
   	b2=1270  	;front wheels grip
   	b3=23.3
   	b4=325
   	b5=0.08
   	b6=0.0
   	b7=0.05
   	b8=-0.024
   	b9=0.015
   	b10=0.25
   	b11=-86
   	b12=0.0

   	c0=2.3
   	c1=-3.8
   	c2=-3.14
   	c3=-1.0
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1

   	optimal_slipratio=0.10
   	optimal_slipangle=0.23
}

; wheels section

wheel_front
{
	y=0
	z=0
	steering=1
	lock=50
	mass=20
	inertia=1.4
	radius=0.32
        width=0.195		;Typical endo`s wheels radius
	rolling_coeff=0.0180
	max_braking=2000
	braking_factor=0.8
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	mass=20
	inertia=1.35
	radius=0.32
        width=0.195
	rolling_coeff=0.0180
	max_braking=1600
	braking_factor=0.25
	max_handbrake_torque=3400
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

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

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

wheel2~wheel_rear
{
	x=0
	toe=-0.15	
	camber=-0.500
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=caliper_left1.dof
  offset
  {
   x=0.058
  }
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.15
	camber=-0.500
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=caliper_right1.dof
  offset
  {
   x=0.058
  }
	}
}
; ai opponents
     
ai
{
	grip_factor=1.1
}

; sounds section

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.wav
  }
  acc_all
  {
    attack=1000
    decay=1000

  }
  
;	throttle_off
;	{
;	smp0~audio.acc_all
;		{
;		sample=-wastegate.wav
;		natural=30000
;		volume=1
;		min=0
;		max=7800
;		}
;
;	}
  accelerate_out
  {
    smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.6
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=9000
      natural=4060
      volume=0.9
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
    accelerate_in
  {
     smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=9000
      natural=4060
      volume=0.6
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.6
    }
    smp1~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=9000
      natural=4060
      volume=0.9
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
    decelerate_in
  {
     smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=9000
      natural=4060
      volume=0.6
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
  wind
  {
    volume=1.5
    pitch_scale=1
    pitch_offset=50
    smp0
    {
      sample=wind1.wav
      min=27
      max=28
      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=0
}


; camera settings section

camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.35
    y=0.6
    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.6
    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.6
    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.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
  }
}
  ; 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=25
  ; 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=5.3e-5
}
