car
{
  name=Bentley Continental
  year=2010
  credits=Converted,shaders by PaulCAM, converted to CG by Eholov, vk.com/racergame
  comments=Engine V12 6.0L 6.0L w/twin liquid-to-air intercooled turbo, 612hp @ 4800 rpm, 
  id=bentleycont
  version=090
  wheels=4

  skid
  {
    sample=skid.wav
  }

  shadow
  {
    texture=shadow.tga
    width=2.55
    length=6.2
    offset_z=-0.1
  }

 cg
 {
  x=0
  y=-0.22
  z=0.1
 }
  ff_factor=0.45
}


;----------------------------------------------------------------------
;Body:}
body
{
  mass=2140	
  inertia
  {
    x=3000
    y=3300
    z=650
  }
  model
  {
    file=bentley.dof
  }
  model_incar
  {
    file=bentley.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
 model_lightroad_l
 {
  file=lightsin.dof
 }
  width=1.871
  height=1.15
  length=5.084
  manual_box=1
}

;----------------------------------------------------------------------
;Steer:

steer
{
  x=0.45
  y=0.24
  z=0.46
  radius=0 ;12
  xa=10
  lock=740
  linearity=0.85
  model
  {
    file=bvolan.dof
  }
}


;----------------------------------------------------------------------
;Engine:

engine
{
  mass=0
  idle_rpm=890
  max_rpm=6400
  max_torque=500              ;(738lbft - 102kgfm - 1000Nm) @ 2000rpm
  
  sample=acc-320.wav
  sample_rpm=4800

  curve_torque=torque.crv
  autoclutch_rpm=1100
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=200
  start_rpm=650
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=5450
    shift_down_rpm=800
    time_to_declutch=85
    time_to_clutch=85
  }
 inertia
 {
  engine=0.45
 }
 braking_coeff=3.2
 rolling_friction_coeff=1.9
 sample=idle.wav
 sample_rpm=8300
}
;------------audio------------
audio
{
   skid
   {
      volume=1
      sample=skid.wav
   }

   acc_all
   {
      attack=1000
      decay=1000
   }

   accelerate_in
   {
      smp0
      {
         sample=IDLE - IN.wav
         volume=1
         min=300
         max=900
         natural=750
         decay=800
      }
      smp1
      {
         sample=LUGGING - IN.wav
         volume=3
         min=800
         max=2000
         natural=1600
         decay=700
      }
      smp2~audio.acc_all
      {
         sample=2000 - ACC - IN.wav
         volume=1
         min=2000
         max=3200
         natural=2000
         decay=1000
         attack=1000
      }
      smp3
      {
         sample=4000 - ACC - IN.wav
         volume=1.5
         min=3200
         max=5000
         natural=4000
         decay=800
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - IN.wav
         volume=0.9
         min=5300
         max=6800
         natural=6000
         attack=1500
         decay=800
      }
      smp5
      {
         sample=LIMITER - IN.wav
         volume=1
         min=7200
         max=20000
         natural=7500
         attack=300
      }
      smp6
      {
         sample=turbo.wav
         volume=0.2
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }

   decelerate_in
   {
      smp0
      {
         volume=1
         sample=IDLE - IN.wav
         min=100
         max=900
         natural=750
         attack=500
         ;      decay=0
      }
      smp1
      {
         sample=2000 - DEC - IN.wav
         volume=1
         min=900
         max=2800
         natural=1500
         attack=1000
         decay=500
      }
      smp2~audio.acc_all
      {
         sample=4000 - DEC - IN.wav
         volume=.7
         min=2800
         max=4700
         natural=3500
         attack=1000
         decay=1000
      }
      smp3~audio.acc_all
      {
         sample=6000 - DEC - IN.wav
         volume=0.6
         min=4700
         max=8000
         natural=6000
         attack=1000
         decay=1000
      }
      smp4
      {
         sample=LIMITER - IN.wav
         volume=.7
         min=8000
         max=20000
         natural=7500
         decay=100
      }
      smp5
      {
         sample=turbo.wav
         volume=0.2
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }

   accelerate_out
   {
      smp0
      {
         sample=IDLE - OUT.wav
         volume=1
         min=300
         max=1100
         natural=750
         decay=300
      }
      smp1
      {
         sample=LUGGING - OUT.wav
         volume=1
         min=1000
         max=2000
         natural=1600
         decay=500
      }
      smp2
      {
         sample=2000 - ACC - OUT.wav
         volume=1
         min=2000
         max=3500
         natural=2000
         decay=1000
         attack=1700
      }
      smp3~audio.acc_all
      {
         sample=4000 - ACC - OUT.wav
         volume=.7
         min=3500
         max=5000
         natural=4000
         decay=1000
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - OUT.wav
         volume=.6
         min=5000
         max=7000
         natural=6000
         attack=1000
         decay=10
      }
      smp5
      {
         sample=LIMITER - OUT.wav
         volume=.5
         min=7000
         max=20000
         natural=7500
         attack=10
      }
      smp6
      {
         sample=turbo.wav
         volume=0.3
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }

   decelerate_out
   {
      smp0
      {
         volume=1
         sample=IDLE - OUT.wav
         min=100
         max=1000
         natural=750
         attack=100
         decay=1000
      }
      smp1~audio.acc_all
      {
         sample=1500 - DEC - OUT.wav
         volume=1
         min=1000
         max=3000
         natural=1500
         attack=1000
         decay=1000
      }
      smp2~audio.acc_all
      {
         sample=3000 - DEC - OUT.wav
         volume=1
         min=3000
         max=4000
         natural=3000
         attack=1000
         decay=1000
      }
      smp3~audio.acc_all
      {
         sample=6000 - DEC - OUT.wav
         volume=.6
         min=4000
         max=8000
         natural=6500
         attack=1000
         decay=1000
      }
      smp4
      {
         sample=LIMITER - OUT.wav
         volume=0.4
         min=8000
         max=20000
         natural=7500
         decay=100
      }
      smp5
      {
         sample=turbo.wav
         volume=0.3
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }
   wind
   {
      smp0
      {
         volume=2
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
  gears=7
  gear0
  {
    ratio=-3.16
    inertia=0.9
  }
  gear1
  {
    ratio=3.6
    inertia=0.13
  }
  gear2
  {
    ratio=2.19
    inertia=0.09
  }
  gear3
  {
    ratio=1.71
    inertia=0.07
  }
  gear4
  {
    ratio=1.20
    inertia=0.05
  }
  gear5
  {
    ratio=1.03
    inertia=0.02
  }
  gear6
  {
    ratio=0.91
    inertia=0.01
  }
  end_ratio=2.82
}

;----------------------------------------------------------------------
;Clutch:

clutch
{
  max_torque=810
}

abs
{
   max_velocity_ratio=1.7
   min_velocity_ratio=1.3
   enable=1
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.09
  enable=0
}

;----------------------------------------------------------------------
;handbrakes:

handbrakes
{
  wheels=23
}

;----------------------------------------------------------------------
;Differential:

differential
{
  type=1
  ratio=2.65
  inertia=0.1
  locking_coeff=350
  locking_coeffient=350
  output0=2
  output1=3
}

;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.33		;sourced
    area=2.06		;measured
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5.3	;18kg lift @ 200 km/h
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}

antirollbar
{
 count=2
 arb0
 {
  susp_left=0
  susp_right=1
  k=35000
 }
 arb1
 {
  susp_left=2
  susp_right=3
  k=35500
 }
}

;----------------------------------------------------------------------
;Suspension front

susp_front   
{
  y=0.04
  z=1.745
 restlen=0.4015
 minlen=0.25
 maxlen=0.41
 k=117500
 bump_rate=3200
 rebound_rate=6300
 bump_function=0
 rebound_function=0
 ;anti_pitch=0.4
 roll_center
 {
  x=0
  y=-0.5
  z=0
 }
}

susp0~susp_front
{
  x=0.93
    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.93
    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!
}

;----------------------------------------------------------------------
;Suspension rear


susp_rear  
{
  y=0.04
  z=-1.42
 restlen=0.4205
 minlen=0.22
 maxlen=0.425
 k=115000
 bump_rate=3000
 rebound_rate=4600
 bump_function=0
 rebound_function=0
 roll_center
 {
  x=0
  y=-0.49
  z=0
 }
}

susp2~susp_rear
{
  x=0.95
    toe_change_per_m=0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
}

susp3~susp_rear
{
  x=-0.95
    toe_change_per_m=-0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
}

;----------------------------------------------------------------------
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=1200
    a3=2000
    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

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}
;----------------------------------------------------------------------
;Wheel front:

wheel_front
{
  y=0
  z=-0.08
  camber= -0.8
  steering=1
  powered=1
  lock=85
  ackerman=1.1
  mass=38
  	inertia=1.5
  	radius=0.375
  	rolling_coeff=0.015
	friction_road=1
  	max_braking=3300
  	braking_factor=0.85
  	tire_rate=200000
  pacejka~pacejka
  {
  }
}

wheel0~wheel_front
{
  x=-0.30
  toe=0.95
  ackerman=1.2
  model
  {
    file=rodae.dof
  }
  model_brake
  {
    file=caliper_left.dof
    offset
		{
		x=-0.01
		}
  }

}

wheel1~wheel_front
{
  x=-0.30
  toe=-0.95
  ackerman=-1.2
  model
  {
    file=rodad.dof
  }
  model_brake
  {
    file=caliper_right.dof
	offset
		{
		x=-0.01
		}
  
  }
}

;----------------------------------------------------------------------
;Wheel rear:

wheel_rear
{
  y=0
  z=-0.10
  camber=-0.5
  steering=0
  powered=1
 mass=42
  	inertia=1.5
  	radius=0.375
  	rolling_coeff=0.015
	friction_road=1
  	max_braking=2300
  	braking_factor=0.8
 	max_handbrake_torque=3000
  	tire_rate=200000
  pacejka~pacejka
  {
  a2=1525
  a3=2100
  a4=9.5
  b2=1700
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}

wheel2~wheel_rear
{
  x=-0.50
  toe=0
  model
  {
    file=rodae.dof
  }
  model_brake
  {
    file=caliper_left1.dof
	offset
		{
		x=0.06
		}
  }

}

wheel3~wheel_rear
{
  x=-0.50
  toe=0
  model
  {
    file=rodad.dof
  }
  model_brake
  {
    file=caliper_right1.dof
	offset
		{
		x=0.06
		}
  }

}

;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.52
    z=-0.10
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.47
    z=0.1
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.47
    z=0.1
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.2
    y=0.6
    z=-0.13
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-8
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}
	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  name=Driver2
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.46
    z=0.40
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.8
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.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=70
  ; 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
 }