car
{
  name=Ferrari F40 
  year=1989
  credits=Converted and modified by JerryCBM
  comments=Original from "Forza Motorsport 3"
  wheels=4
  id=ferrarif40
  version=088b
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=5.06
    offset_z=-0.06
  }
 cg
 {
  x=0
  y=-0.2
  z=0.54
 }
}
body
{
  mass=1330
  inertia
  {
    x=1890
    y=2245
    z=562
  }
  model
  {
    file=f40.dof
  }
  model_incar
  {
    file=f40.dof
  }
  model_light_l
  {
    file=luci.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_lightroad_l
  {
    file=luci.dof
  }
  width=1.96
  height=0.75
  length=4.92
  manual_box=1
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
  x=0.325
  y=0.185
  z=0.455
  radius=10
  xa=14
  lock=540
  linearity=0.3
  model
  {
      file=volante.dof
  }
}
engine
{
  mass=0
  max_rpm=10000
  idle_rpm=1100
  curve_torque=ferrari.crv
  max_torque=0.88
  autoclutch_rpm=1500
  starter=1
  starter_torque=159
  start_stalled=1
  stall_rpm=500
  start_rpm=1270
  reaction=0
  shifting
  {
 	fast=1
	automatic=0
	cut_throttle=1
	blip_throttle=0.9573
	shift_up_rpm=9000
	shift_down_rpm=5700
	time_to_declutch=67
	time_in_neutral=37.5
	time_to_clutch=7
	time_to_declutch_down=67
	time_in_neutral_down=13.5
	time_to_clutch_down=7
  }
  inertia
  {
    engine=0.248
    final_drive=0.1
  }
  braking_coeff=2.5
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-2.73
    inertia=0.12
  }
  gear1
  {
    ratio=3.29
    inertia=0.14
  }
  gear2
  {
    ratio=2.16
    inertia=0.10
  }
  gear3
  {
    ratio=1.61
    inertia=0.08
  }
  gear4
  {
    ratio=1.27
    inertia=0.06
  }
  gear5
  {
    ratio=1.03
    inertia=0.04
  }
  gear6
  {
    ratio=0.87
    inertia=0.02
  }
}
clutch
{
   max_torque=980
}
abs
{
  enable=1
  max_velocity_ratio=1.7
  min_velocity_ratio=1.3
  min_velocity=3
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=4.34
	inertia=0.15
	locking_coeff=50
	output2=2
	output3=3
}
aero
{
  body
  {
    center=0  0  0
    cx=0.28
    area=1.85
  }
  wings=2
  wing0
  {
    name=BodyLift
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=0.240
    center=0 0 0
    angle=0
    angle_offset=10
  }
  wing1
  {
    name=RearSpoilerandDiffuser
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=30
    center=0 -0.2 -1.27
    angle=0
    angle_offset=10
  }
}
antirollbar
{
  count=1
  arb0
  {
    susp_left=0
    susp_right=1
    k=32000
  }
}
susp_front                    
{
  y=0.07
  z=1.14
  restlen=0.4055
  minlen=0.27
  maxlen=0.41
  k=40950		
  bump_rate=1450	
  rebound_rate=6500	
  bump_function=0
  bump_max=1300
  rebound_function=0
  anti_pitch=0.1
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.552	
    z=0
  }
}
susp_rear
{
  y=0.135
  z=-1.49
  restlen=0.4	
  minlen=0.14
  maxlen=0.41
  k=49550		
  bump_rate=1300	
  rebound_rate=6700	
  bump_function=0
  bump_max=1800
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0	
  roll_center
  {
    x=0
    y=-0.504
    z=0
  }
}
susp0~susp_front
{
	x=0.785
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.785
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}

susp2~susp_rear
{
	x=0.84
}
susp3~susp_rear
{
	x=-0.84
}
tire_model_front
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
tire_model_rear
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
pacejka
{
    a0=1.6
    a1=-30
    a2=2050
    a3=2400
    a4=8.7
    a5=0.014
    a6=-0.24
    a7=1.0
    a8=-0.03
    a9=-0.0013
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-60
    b2=2150
    b3=23.3
    b4=350
    b5=0.05
    b6=0
    b7=0.055
    b8=-0.024
    b9=0.014
    b10=0.26
    c0=2.2
    c1=-3.9
    c2=-3.9
    c3=-1.26
    c4=-8.2
    c5=0.025
    c6=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
  lock=40
  mass=22
  inertia=1.5
  radius=0.34
  width=0.205
  powered=0
  rolling_coeff=0.015
  friction_road=1
  max_braking=2300
  braking_factor=0.75
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0.14
  steering=0
  mass=22
  inertia=1.6
  radius=0.34
  width=0.205
  powered=1
  rolling_coeff=0.015
  friction_road=1
  max_braking=800
  max_handbrake_torque=3000
  braking_factor=0.6
  tire_rate=265000
  pacejka~pacejka
  {

  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.1
  toe=-0.36
  camber=-0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=flb.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.1
  toe=0.36
  camber=-0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=frb.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=0
  model
  {
    file=lf.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=flb1.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=0
  model
  {
    file=rf.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=frb1.dof
  }
}
camera0
{
  name=Driver
  fov=60
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.371
    y=-0.4
    z=-0.250
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=47
  model=1
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.371
    y=0.4
    z=-0.13
  }
  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=47
  model=1
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.371
    y=0.4
    z=-0.13
  }
  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=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=0.475
    z=-0.32
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
	
	}
}
camera4
{
  name=Chase Close
  model=0
  wheels=0
  fov=65
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=1.4
    z=-5.5
  }
  src
  {
    mass=6
    k=600
    damping=120
    maxdist=2
  }
}
camera5
{
  name=Exterior
  fov=60
  model=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
  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
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.15
    y=0.06
    z=-2.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
camera8
{
  name=Far
  fov=20
  model=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
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.9
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
	skid
	{
		sample=skid.wav
	}
	acc_all
	{
		attack=4550
		decay=4550
	}


	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Exhaust_hi.wav
			min=7000
			max=9000
			natural=10800
			volume=1.4
			attack=2500
			decay=2500
		}
		smp1~audio.acc_all
		{
			sample=Accel_lo.wav
			min=500
			max=6000
			natural=10800
			volume=4
			attack=7000
			decay=7000
		}
		smp2~audio.acc_all
		{
			sample=Purr.wav
			min=500
			max=9000
			natural=10800
			volume=0.6
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Deccel.wav
			min=500
			max=9000
			natural=10800
			volume=3
		}
		smp1~audio.acc_all
		{
			sample=Purr.wav
			min=500
			max=9000
			natural=10800
			volume=0.8
		}		
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=Accel_hi.wav
			min=6000
			max=9000
			natural=10800
			volume=4
		}
		smp1~audio.acc_all
		{
			sample=Accel_lo.wav
			min=500
			max=6000
			natural=10800
			volume=3
		}
		smp2~audio.acc_all
		{
			sample=Purr.wav
			min=500
			max=9000
			natural=10800
			volume=0.6
		}
	}

	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=Deccel.wav
			min=500
			max=9000
			natural=10800
			volume=2
		}
		smp1~audio.acc_all
		{
			sample=Purr.wav
			min=500
			max=9000
			natural=10800
			volume=0.7
		}
	}

	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
		}
	}
}
flares
{
  ; Front lights
;	normal=0.05 0.1 0.6   ;normal direction 0 0 1 is forward
;	normal=-0.2 0 1   ; x rotates +left-right, y rotates +up-dwn, z rotates +fwd-back
;	pos=-0.60 0.431 1.770   ;flare center relative to car null point x y z
;	color=0.0 0.0 0.0    ;color rgb  0 0 0=none 1 1 1=white default
;	size_factor=1   ;2   ;scales size of flare
;	hor_scale=1   ;scales width of flare
;	intensity=0.5   ;<1 make flare smaller
;	z_offset=-3000   ;negative if flare cuts thru car body
  flare0
  {
      normal=-0.05 0.1 0.6
      ;normal=0 0 1
      pos=-0.666 -0.069 1.783
      color=1 1 1
	size_factor=1.8
      hor_scale=1
      intensity=1
	z_offset=-3000
  }
  flare1
  {
      normal=-0.05 0.1 0.6
      ;normal=0 0 1
      pos=0.666 -0.069 1.783
      color=1 1 1
	size_factor=1.8
      hor_scale=1
      intensity=1
	z_offset=-3000
  }
}