car
{
  name=Lamborghini Diablo vt
  year=1994
  credits=By Max3Dguru
  comments=V1.1
  id=LDiablo
  version=090b
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.88
    length=5.4
  }
  cg
  {
    x=0
    y=-.1
    z=-0.3
  }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=capot.dof
                }
                model1
                {
                        file=choques_frente.dof
                }
                model2
                {
                        file=choques_tras.dof
                }
                model3
                {
                        file=mala.dof
                }
                model4
                {
                        file=porta_condutor.dof
                }
                model5
                {
                        file=porta_passageiro.dof
                }
                model6
                {
                        file=
                }
                model7
                {
                        file=
                }
                model8
                {
                        file=
                }
                model9
                {
                        file=

    		}
	}
}
body
{
  mass=1476
  restitution_coeff=0.1
  inertia
  {
    x=3352.61
    y=3873.22
    z=849.94
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  width=2.04
  height=1.0
  length=4.4
  manual_box=1
}
steer
{
  x=0.37
  y=0.2
  z=0.52
  radius=10
  xa=17.5
  lock=1080
  model
  {
    file=volante.dof
  }
}
engine
{
  mass=200
  max_rpm=9000
  idle_rpm=800
  stall_rpm=350
  start_rpm=700
  autoclutch_rpm=1500
  starter=1
  starter_torque=100
  curve_torque=torque.crv
  max_torque=580
  reaction=1
  shifting
  {
    automatic=0
    shift_up_rpm=6500
    shift_down_rpm=4500
    time_to_declutch=250
    time_to_clutch=250
  }
  inertia
  {
    engine=0.4
    final_drive=0.12
  }
  braking_coeff=4.0
  rolling_friction_coeff=2.0
  sample=engine.wav
  sample_rpm=8000
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-2.12
    inertia=0.45
  }
  gear1
  {
    ratio=2.31
    inertia=0.065
  }
  gear2
  {
    ratio=1.52
    inertia=0.045
  }
  gear3
  {
    ratio=1.12
    inertia=0.035
  }
  gear4
  {
    ratio=.88
    inertia=0.025
  }
  gear5
  {
    ratio=0.68
    inertia=0.02
  }
  end_ratio=3.83
}
clutch
{
  max_torque=750
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.83
  power_angle=60
  coast_angle=40
  clutches=3
  clutch_factor=1.0
  locking_coefficient=100
  differential.output0=2
  differential.output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.31
    area=1.5
  }
  wings=1
  wing0
  {
    name=Frontsplitter
    span=1.5
    cord=0.25
    coeff_drag=2.29
    coeff_down=.75
    center=0 .5 -1.97
    angle=10
    angle_offset=0
  }
  
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    K=15000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=40000
  }
}
susp_front
{
  y=0
  z=1.285
  restlen=0.270 ; 3170N
  minlen=0.01
  maxlen=0.25
  k=45000
  bump_rate=3708	; static critical damping 7626
  rebound_rate=6180	; static critical damping 7626
  anti_dive=0.1
  anti_lift=0
  anti_pitch=0.06
  bump_function=3
  rebound_function=0
  camber_change_per_m=0.0 
  roll_center
  {
    x=0
    y=-0.386	; 30mm
    z=0
  }
}
susp_rear
{
  y=0
  z=-1.40
  restlen=0.29 ; 4430N
  minlen=0.01
  maxlen=0.25
  k=55000
  bump_rate=3900	; static critical damping 9967
  rebound_rate=6920	; static critical damping 9967
  anti_rise=0.15
  anti_squat=0.25
  anti_pitch=0.13
  bump_function=3
  rebound_function=0
  camber_change_per_m=0.0
  roll_center
  {
    x=0
    y=-0.385	; 50mm
    z=0
  }
}
susp0~susp_front
{
  x=0.85
}
susp1~susp_front
{
  x=-0.85
}
susp2~susp_rear
{
  x=0.9
}
susp3~susp_rear
{
  x=-0.9
}
tire_model
{
  relaxation_length_lat=0.91
  relaxation_length_long=.091
  damping_speed=0.15
  damping_coefficient_lat=0.75
  damping_coefficient_long=1.5
}
pacejka
{
  ; Lateral force
  a0=1.6
  a1=-38
  a2=1201
  a3=1914
  a4=8.7
  a5=0.014
  a6=-0.24
  a7=1
  a8=-0.03
  a9=-0.0013
  a10=-0.15
  a111=-8.5
  a112=-0.29
  a12=17.8
  a13=-2.4
  ; Longitudinal force
  b0=1.7
  b1=-80
  b2=1571
  b3=23.3
  b4=300
  b5=0
  b6=0.0068
  b7=0.055
  b8=-0.024
  b9=0.014
  b10=0.26
  b11=-86
  b12=350
  ; Aligning moment
  c0=2.3
  c1=-3.8
  c2=-3.14
  c3=-1.16
  c4=-7.2
  c5=0
  c6=0
  c7=0.044
  c8=-0.58
  c9=0.18
  c10=0.043
  c11=0.048
  c12=-.0035
  c13=-0.18
  c14=0.14
  c15=-1.029
  c16=0.27
  c17=-1.1
}
pacejkarear
{
  ; Lateral force
  a0=1.6
  a1=-38
  a2=1400
  a3=1914
  a4=8.7
  a5=0.014
  a6=-0.24
  a7=1
  a8=-0.03
  a9=-0.0013
  a10=-0.15
  a111=-8.5
  a112=-0.29
  a12=17.8
  a13=-2.4
  ; Longitudinal force
  b0=1.7
  b1=-80
  b2=1571
  b3=23.3
  b4=300
  b5=0
  b6=0.0068
  b7=0.055
  b8=-0.024
  b9=0.014
  b10=0.26
  b11=-86
  b12=350
  ; Aligning moment
  c0=2.3
  c1=-3.8
  c2=-3.14
  c3=-1.16
  c4=-7.2
  c5=0
  c6=0
  c7=0.044
  c8=-0.58
  c9=0.18
  c10=0.043
  c11=0.048
  c12=-.0035
  c13=-0.18
  c14=0.14
  c15=-1.029
  c16=0.27
  c17=-1.1
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=0
  camber=-1
  lock=45
  ackerman=0
  mass=10
  inertia=1
  radius=.314
  rolling_coeff=0.015
  max_braking=3150
  braking_factor=.5
  tire_rate=200000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=1
  camber=0
  mass=10
  inertia=1
  radius=.333
  rolling_coeff=0.015
  max_braking=3000
  braking_factor=.5
  tire_rate=200000
  pacejka~pacejkarear
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-2
  model
  {
    file=left_front.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=2
  model
  {
    file=right_front.dof
  }
}
wheel2~wheel_rear
{
  x=0.
  toe=-1
  model
  {
    file=left_back.dof
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=1
  model
  {
    file=right_back.dof
  }
}
camera0
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.42
    y=0.45
    z=-0.10
  }
  offset_to
  {
    x=0.42
    y=0
 ; 0.48
    z=10
  }
  angle
  {
    x=0
    y=180.0
    z=0
  }
  fov=62
  model=1
  wheels=0
  view=1
  name=Inside
  src
  {
	mass=5
	k=1200
	damping=150
	maxdist=0.1
;    mass=2.5
;    k=750
;    damping=75
;    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.65
    z=1.3
  }
  angle
  {
    x=4
    y=180
    z=0
  }
  name=Bonnet
  fov=65
}
camera2
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.000000
    y=-0.5000
    z=1.500000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumber
  fov=60
  model=2
  wheels=0
}
camera3
{
  offset
  {
    x=0.059375
    y=-0.700001
    z=-5.5
  }
  angle
  {
    x=6.666651
    y=-180.729126
    z=0.000000
  }
  name=Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
}
camera4
{
  offset
  {
    x=0
    y=1.0
    z=-4.7
  }
  name=GT Type Active Chase Cam
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=60
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=600
    damping=120
    maxdist=2
  }  
}
camera5
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.9
    z=0.1
  }
  angle
  {
    x=10
    y=0
    z=0
  }
  name=Engine
  fov=55
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=0.5
    z=-5.5
  }
  angle
  {
    x=15
    y=-360
    z=0
  }
  fov=40
}
camera7
{
  offset
  {
    x=1.4
    y=0
    z=-0.6
  }
  angle
  {
    x=-2
    y=-160
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=60
}
camera8
{
  offset
  {
    x=0
    y=-0
    z=-6
  }
  angle
  {
    x=15
    y=-140
    z=0
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=55
}
camera9
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=1.6
    y=-0.5
    z=-10
  }
  angle
  {
    x=0
    y=-45
    z=0
  }
  fov=35
}
audio
{
	skid
	{
		sample=Skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
  	shiftout
  	{
    		sample=Shift_Out.wav
  	}
	acc_all
	{
		attack=2600
		decay=2600
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Engine.wav
			min=0
			max=9000
			natural=5000
			volume=1.5
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Engine.wav
			min=0
			max=9000
			natural=4800
			volume=1
		}
	}
	wind
	{
		volume=9
		pitch_scale=1
		pitch_offset=30
	}
}
