car
{
   name=Shelby Mustang GT500
   year=1967
   id=gt500v2004
   version=052b6
   wheels=4
   front_area=1.9
   skid
   {
      sample=skid.wav
   }
   ; CoG from nullpoint
   cg
   {
      x=0
      y=0.12
;0.02
      z=0.2
   }
   shadow
   {
    texture=shadow.tga
    width=1.761
    length=5.303
    offset_z=-0.15
   }
   credits=Ryan T
   comments=
   shadow
   {
      texture=
      length=0
      width=0
      offset=0
   }
}
body
{
   mass=1391
   inertia
   {
      x=3900
      y=2200
      z=540
   }
   ; Elasticity of Collisions
   restitution_coeff=0.11
   manual_box=0
   cockpit_start=1
   cockpit_length=1
   model
   {
      file=body.dof
   }
   model_incar
   {
     ; file=incar.dof
   }
   model_braking_l
   {
      file=blight.dof
   }
   model_light_l
   {
      file=fogs_n.dof
   }
   model_light_r
   {
      ;file=rollbar.dof
   }
   width=0
   length=0
   height=0
}
steer
{
   ; Location
   x=0.365
   y=0.44
   z=0.05
   ; Tilt
   xa=30
   ; degrees to lock
   lock=150
   ; linearity=0.3
   model
   {
      file=stwheel.dof
   }
}
engine
{
   ;[[Engine Physical Properties]]
   mass=250
   sample=eng2.wav
   sample_rpm=7000
   ;[[Starter Settings]]
   starter=1
   starter_torque=80
   start_stalled=0
   max_rpm=7000
   idle_rpm=950
   stall_rpm=400
   start_rpm=1000
   ;[[Engine Dynamics]]
   curve_torque=torque.crv
   max_torque=575
   inertia
   {
      engine=0.29
      final_drive=0.06
   }
   braking_coeff=1.44
   torque_reaction=.75
   ; v-NYI-v
   rolling_friction_coeff=0
   friction=0
   ; ^-NYI-^
   ;[[Transmission Settings]]
   autoclutch_rpm=2750
   shifting
   {
      automatic=0
      shift_up_rpm=5000
      shift_down_rpm=2500
      time_to_declutch=100
      time_to_clutch=100
   }
   sample_rate=0
}
clutch
{
   max_torque=600
}
traction_control
{
  enable=0
  max_velocity_ratio=1.35
  min_velocity_ratio=1
}
abs
{
  enable=0
  max_velocity_ratio=1.2
  min_velocity_ratio=1
}
gearbox
{
   gears=5
   ; [reverse]
   gear0
   {
      ratio=-3.2
      inertia=0.5
   }
   gear1
   {
      ratio=2.32
      inertia=0.05
   }
   gear2
   {
      ratio=1.69
      inertia=0.04
   }
   gear3
   {
      ratio=1.29
      inertia=0.04
   }
   gear4
   {
      ratio=1
      inertia=0.19
   }
   ; [backward compatibility w/0.49]
   end_ratio=3.25
}
differential
{
   ; 0=free 1=viscous 2=salisbury
   type=1
   ; Final Drive [0.5 and up]
   ratio=3.25
   ; Viscous locking
 ;  locking_coefficient=10
 ;  ; Power ramp angle (degrees)
 ;  power_angle=60
 ;  ; Coast ramp angle
 ;  coast_angle=40
 ;  ; Number of clutches in use
 ;  clutches=1
 ;  ; Clutch factor to adjust effect of clutches
 ;  clutch_factor=1
 ;  locking_coeff=50
 ;  output0=2
 ;  output1=3
inertia=0.05
locking_coeff=30
power_angle=60
coast_angle=40
clutches=2
clutch_factor=1.0
split=0.5
output0=2
output1=3
}
aero
{
   body
   {
      center=0 0.25 0.025
      cx=0.38
      area=2.05
   }
   wings=2
   wing0
   {
      name=FrontDam
      span=0.85
      cord=0.15
      coeff_drag=0
      coeff_down=-0.75
      center=0.000 -0.200 2.100
      angle=10
      angle_offset=0
   }
   wing1
   {
      name=RearSpoil
      span=1.761
      cord=0.15
      coeff_drag=0
      coeff_down=-0.98
      center=0.000 0.500 -2.560
      angle=25
      angle_offset=0
   }
}
antirollbar
{
   count=2
   ; [Front Anti-Sway bar]
   arb0
   {
      susp_left=0
      susp_right=1
      k=18500
   }
   ; [Front Anti-Sway bar]
   arb1
   {
      susp_left=2
      susp_right=3
      k=12500
   }
}
susp_front
{
  restlen=.35
;.39
;.4
  minlen=.15
  maxlen=.57
; .47
  bump_rate=5900
  rebound_rate=6550
  y=0.23
; 0.29
;0.25
;0.29
  z=1.20500
  k=49000
  roll_center
  {
     x=0
     y=-.1
;-.235
     z=0
  }
  anti_pitch=0.1
}

susp0~susp_front
{
   x=0.69
}
susp1~susp_front
{
   x=-0.69
}

susp_rear
{
   y=0.20
; 0.40
;0.38
;0.29
   z=-1.562
   restlen=.3
;.507
   minlen=.12
   maxlen=.6
   k=33500
   bump_rate=4200
   rebound_rate=5450
   roll_center
   {
      x=0
      y=0
;-.1
      z=0
   }
   anti_pitch=0.1
}

susp2~susp_rear
{
   x=.73
;0.69
}
susp3~susp_rear
{
   x=-.73
;-0.69
}

tire_model
{
   ; SAE 950311 low-speed tire implementation
   ; Relaxation length laterally (in m)
   relaxation_length_lat=0.91
   ; Relaxation length longitudinally (in m)
   relaxation_length_long=.091
   ; Damping lat/long speed (in m/s, same for longitudinal and lateral)
   damping_speed=1.45
   ; Strength of damping; too little and the car keeps vibrating (low freq.)
   damping_coefficient_lat=0.8
   damping_coefficient_long=1
}
; [[Pacejka by Alpine. Real-world 225/60 HR 16"]]
pacejka
{
  ; Lateral force
  a0=1.3
  a1=-35
;-29
  a2=1216
  a3=1432
  a4=11
  a5=0
  a6=0
;-0.04
  a7=0
;-0.4
  a8=0
;0.003
  a9=0
;-0.002
  a10=0
;0.16
  a111=0
  a112=0
  a12=0
  a13=0
  ; Longitudinal force
  b0=1.57
  b1=-55
;-48
  b2=1638
  b3=6.8
  b4=444
  b5=0
  b6=0.0034
  b7=-0.008
  b8=0.66
  b9=0
  b10=0
  b11=0
  b12=0
  ; Aligning moment
  c0=2.46
  c1=-2.77
  c2=-2.9
  c3=-0
  c4=-3.6
  c5=-0.1
  c6=0.0004
  c7=0.22
  c8=-2.31
  c9=3.87
  c10=0.0007
  c11=-0.05
  c12=-0.006
  c13=0.33
  c14=-0.04 
  c15=-0.4
  c16=0.092
  c17=0.0114
  optimal_slipratio=0.2
  optimal_slipangle=0.139626
}
wheel_front
{
   ; [[Settings]]
   y=0
;.0125
   z=0
   steering=1
   lock=50
   toe=0
   ackerman=1
   camber=-2.25
   powered=0
   ; [[Properties]]
   mass=20
   radius=0.3345
;0.2945
;3045
;0.3345
   inertia=1
   rolling_coeff=0.015
   friction_road=3.3
;1.9
   tire_rate=190000
;160000
   pacejka~pacejka
   {
   }
   ; [[Braking]]
   max_braking=3000
; 4000
   braking_factor=0.7
}

wheel0~wheel_front
{
   x=0
   model
   {
      file=10-l.dof
   }
   model_brake
   {
      file=
   }
}
wheel1~wheel_front
{
   x=0
   model
   {
      file=10-r.dof
   }
   model_brake
   {
      file=
   }
}

handbrakes
{
   ; [wheels to lock]
   wheels=23
}

wheel_rear
{
   ; [[Settings]]
   y=0
;.0125
   z=0
   steering=0
   toe=0
   camber=-2.25
   powered=1
   ; [[Properties]]
   mass=20
   radius=0.3345
   inertia=1
   rolling_coeff=0.015
   friction_road=3.3

   tire_rate=175000
   pacejka~pacejka
   {
      ;A2=1220
      ;B2=1480
   }
   ; [[Braking]]
   max_braking=3000
   braking_factor=.3
   max_handbrake_torque=4000
}

wheel2~wheel_rear
{
   x=0
   model
   {
      file=10-l.dof
   }
   model_brake
   {
      ; file=
   }
}
wheel3~wheel_rear
{
   x=0
   model
   {
      file=10-r.dof
   }
   model_brake
   {
      ; file=caliper-r
   }
}
camera0
{
  offset
  {
    x=0.0
    y=-0.35
    z=-5.5
  }
  angle
  {
    x=15.000000
    y=180.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=55
  model=0
  wheels=0
  view=0
}
camera3
{
  offset
  {
    x=0
    y=-0.75
    z=-8.200000
  }
  angle
  {
    x=15.000000
    y=-180.000000
    z=0.000000
  }
  name=Chase High
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=45
  model=0
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=0
    y=-0.55
    z=2.3100000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumper
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=70
  model=2
  wheels=0
  view=2
}
camera2
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-00.95
    z=0.470000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Hood
  fov=50
  model=0
  wheels=0
  view=0
}
camera1
{
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  offset
  {
    x=0.365
    y=-0.74
    z=-0.391
  }
  angle
  {
    x=-01.000000
    y=-180
    z=0.000000
  }
  fov=55
  ;Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=1
  view=1
  name=Inside Driver
}
camera5
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.25
    y=-0.76
    z=0.1
  }
  angle
  {
    x=-05.000000
    y=-17
    z=0.000000
  }
  fov=45
  ;Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=1
  name=Inside Driver Rear
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.60
    y=-0.5
    z=-06
  }
  angle
  {
    x=5.1
    y=25
    z=0
  }
  fov=40
  model=0
  wheels=0
  view=1
  name=Front Car Cam
}
camera7
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=0.0
    y=-0.550
    z=-25
  }
  angle
  {
    x=70
    y=180
    z=0
  }
  fov=35
  model=0
  wheels=1
  view=0
  name=overhead
}
camera8
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.38
    y=-0.28751
    z=-4.9994
  }
  angle
  {
    x=4.861111
    y=33.853992
    z=-14.322908
  }
  fov=55
  model=0
  wheels=1
  view=0
  name=Jim Seamus Cam
}
camera9
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.013
    y=0.35
    z=-8.385002
  }
  angle
  {
    x=21.666662
    y=-105.555519
    z=19.704857
  }
  name=Side High
  fov=30
  model=0
  wheels=1
  view=0
}
audio
{
  acc_all
  {
    attack=2000
    decay=2000
  }
  accelerate_out
  {
    ;volume=40
    minvol=0.1
    maxvol=10
    smp0~audio.acc_all
    {
      sample=eng2.wav
      min=0
      max=7500
      attack=0
      natural=5500
      volume=3
;1.5
    }
    smp1~audio.acc_all
    {
      sample=engine.wav
      ; low_in2.wav
      min=1
      max=7500
      ;attack=0
      volume=2
;1
      natural=7000
    }
  }
  decelerate_out
  {
    ;volume=24
  }
 }
  gearwhine
  {
    ; Master volume for this set
    volume=0.35
    ; Pitch input is shaft rotational velocity in radians/sec
    pitch_scale=0.0015
    pitch_offset=0
    ; Acceleration; outside of the car
    smp0~audio.acc_all
    {
      ; All engine samples depend on engine RPM
      sample=gearwhine.wav
      min=0
      max=10000
      ; RPM of used sample
      natural=1000
    }
  }
}