car
{
  name=AM General Hummer H1 4-Door Wagon
  year=2004
  credits=original by Andy (a.k.a - Repoman), conversion by MBW13, performance by Cosmo°
  comments=To learn more about the Hummer, call 1.800.REAL.4WD
  id=amg_hummer
  version=090
  wheels=4
  shadow
  {
    texture=
    length=0
    width=0
    offset_z=0
    intensity_dark=0.75
    intensity_light=0.25
  }
  cg
  {
    x=0
    ; ~1.0m?
    y=0
    ; ~50% front / 50% rear @ kerb mass
    z=0
  }
  ff_factor=0.20
  ff_gain=1.00
  ff_damping=0.00
  ff_friction=0.10
  ff_inertia=0.30
  ff_stickfriction=0.20
}
abs
{
  enable=1
  max_velocity_ratio=1.3
  min_velocity_ratio=1.1
  min_velocity=2.778
  braking_factor=1
}
traction_control
{
  enable=0
  max_velocity_ratio=1.2
  min_velocity_ratio=1.1
  min_velocity=0
}
ai
{
  grip_factor=1.0
  understeer_correct=10
  oversteer_correct=10
}
body
{
  ; 3428kg + 82kg driver - 400kg engine - 340kg unsprung mass
  mass=2770
  inertia
  {
    x=6000
    y=6500
    z=1870
  }
  length=4.686
  width=2.197
  height=1.499
  manual_box=1
  box_offset=0.000 0.100 0.000
  model
  {
    file=body.dof
    offset
    {
      x=0
      y=0
      z=0
    }
  }
  model_incar
  {
    file=body.dof
  }
  model_light_l
  {
    file=lights.dof
    offset
    {
      x=0.000
      y=-0.675
      z=-0.100
    }
    scale
    {
      x=1.003
      y=1.000
      z=1.001
    }
  }
  model_reverse_l
  {
    file=reverselight.dof
    offset
    {
      x=0.000
      y=-0.675
      z=-0.100
    }
    scale
    {
      x=1.003
      y=1.000
      z=1.001
    }
  }
}
steer
{
  x=0.71
  y=0.135
  z=0.375
  radius=10
  xa=18
  ; 2.5 turns lock-to-lock
  lock=900
  linearity=1
  model
  {
    file=swheel.dof
  }
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=400
  idle_method=1
  idle_throttle=0
  idle_rpm=750
  min_warn_rpm=3000
  max_warn_rpm=3500
  max_rpm=3650
  rev_limiter_time=50
  start_rpm=1000
  stall_rpm=300
  autoclutch=1
  autoclutch_rpm=0
  launch_control=1
  starter=1
  starter_torque=100
  start_stalled=1
  enable_stall=1
  curve_torque=engine_torque.crv
  max_torque=0.5
  torque_reaction=1
  braking_coeff=
  braking_offset=0
  braking_torque_curve=engine_braking.crv
  friction=0
  cylinders=8
  cylinder_angle=90
  rumble_amplitude=0
  rumble_maxrpm=3650
  inertia
  {
    engine=0.3
  }
  jitter
  {
    amplitude=0.25
    frequency_min=0
    frequency_var=10
    time_min=0
    time_var=500
  }
  shifting
  {
    automatic=1
    blip_throttle=0
    cut_throttle=1
    fast=1
    shift_up_rpm=3400
    shift_down_rpm=850
    time_to_declutch=300
    time_in_neutral=0
    time_to_clutch=300
    time_to_declutch_down=300
    time_in_neutral_down=0
    time_to_clutch_down=300
  }
  speedlimiter
  {
    time=0
    velocity=0
  }
}
fuel
{
  bsfc=7.500e-5
  max=159
  type=1
}
clutch
{
  max_torque=750
}
; GM 4L80E
gearbox
{
  gears=5
  gear0
  {
    ratio=-2.08
    inertia=0.10
    engine_map=1.0
  }
  gear1
  {
    ratio=2.48
    inertia=0.10
    engine_map=1.0
  }
  gear2
  {
    ratio=1.48
    inertia=0.06
    engine_map=1.0
  }
  gear3
  {
    ratio=1.00
    inertia=0.04
    engine_map=1.0
  }
  gear4
  {
    ratio=0.75
    inertia=0.02
    engine_map=1.0
  }
}
differentials
{
  ; transfer case ratios	1.00	2.72
  ; axle ratios			2.56
  ; hub ratios			1.92
  ; total			4.915	13.369
  count=1
  diff0
  {
    type=0
    friction=200
    inertia=0.1
    ratio=4.9152
    output0=2
    output1=3
  }
}
handbrakes
{
  wheels=23
}
aero
{
  body
  {
    center=0.000 0.000 0.000
    cx=0.7
    area=3.25
  }
  draft
  {
    scale_lat_front=0.09
    scale_lon_front=0.2
    scale_lat_rear=0.45
    scale_lon_rear=1
  }
  wings=1
  wing0
  {
    name=total_lift
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=-25
    center=0.000 0.000 0.000
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=1
  arb0
  {
    susp_left=0
    susp_right=1
    k=55000
  }
}
susp_front
{
  y=0.000
  z=1.651
  ; static ride height			>0.550m
  restlen=0.700
  minlen=0.420
  maxlen=0.680
  warplen=0.550
  ; sprung corner mass			787.5kg
  ; heavy duty spring rate		1728lb/in
  ; critical damping			13808N/m/s
  k=60525
  bumpstop_len=0.070
  bumpstop_k=100000
  bumpstop_damping=5000
  reboundstop_len=0.025
  reboundstop_k=100000
  reboundstop_damping=5000
  damper_curve=suspension_damper_front.crv
  anti_pitch=0
  roll_center
  {
    x=0
    ; 0.325m?
    y=-0.695
    z=0
  }
}
susp0~susp_front
{
  x=0.9095
  camber_change_per_m=0.284
  camber_change_steering=0.030
  ; 3.000°
  caster_angle=0.052
  caster_offset=-0.025
  kingpin_angle=0.176
  kingpin_offset=-0.050
  toe_change_per_m=-0.166
  model
  {
    file=
  }
}
susp1~susp_front
{
  x=-0.9095
  camber_change_per_m=0.284
  camber_change_steering=-0.030
  ; 3.000°
  caster_angle=0.052
  caster_offset=-0.025
  kingpin_angle=0.176
  kingpin_offset=0.050
  toe_change_per_m=0.166
  model
  {
    file=
  }
}
susp_rear
{
  y=0.000
  z=-1.651
  ; static ride height			>0.550m
  restlen=0.700
  minlen=0.420
  maxlen=0.680
  warplen=0.550
  ; sprung corner mass			797.5kg
  ; heavy duty spring rate		3000lb/in
  ; critical damping			18309N/m/s
  k=105079
  bumpstop_len=0.070
  bumpstop_k=100000
  bumpstop_damping=5000
  reboundstop_len=0.025
  reboundstop_k=100000
  reboundstop_damping=5000
  damper_curve=suspension_damper_rear.crv
  anti_pitch=0
  roll_center
  {
    x=0
    ; 0.325m?
    y=-0.695
    z=0
  }
}
susp2~susp_rear
{
  x=0.9095
  camber_change_per_m=0.284
  camber_change_steering=0
  caster_angle=0
  caster_offset=0
  kingpin_angle=0
  kingpin_offset=0
  toe_change_per_m=0.166
  model
  {
    file=
  }
}
susp3~susp_rear
{
  x=-0.9095
  camber_change_per_m=0.284
  camber_change_steering=0
  caster_angle=0
  caster_offset=0
  kingpin_angle=0
  kingpin_offset=0
  toe_change_per_m=-0.166
  model
  {
    file=
  }
}
; 37x12.50R16.5LT radial-ply tires
; 97~0km/h	50m
; skidpad	0.62g
pacejka
{
  a0=1.25
  a1=-27
  a2=1200
  a3=2000
  a4=19
  a5=0.015
  a6=-0.25
  a7=0
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=0
  a112=-0.29
  a12=17.8
  a13=-2.4
  b0=1.4
  b1=-38
  b2=1200
  b3=20
  b4=250
  b5=0.08
  b6=0
  b7=0.05
  b8=-0.025
  b9=0.015
  b10=0.4
  b11=-50
  b12=0
  c0=3
  c1=-4
  c2=-4
  c3=-0.9
  c4=-5
  c5=0.02
  c6=0.06
  c7=0.044
  c8=-0.58
  c9=0.18
  c10=0.043
  c11=0.048
  c12=-0.0035
  c13=0
  c14=0.14
  c15=-1.029
  c16=0.27
  c17=0
  ; 8.6kN
  optimal_slipratio=0.15172
  optimal_slipangle=0.20944
}
wheel_front
{
  x=0
  y=0
  z=0
  powered=1
  power_gearing=2.4575
  steering=1
  reverse_steering=0
  ; turning radius		8.1m
  ; 13~16:1 steering rack ratio
  ; ackerman percentage is a guesstimation
  lock=51.136
  ackerman=1.15
  ; rim				25kg
  ; tyre				33kg
  ; hub				15kg
  mass=90
  inertia=7.1
  radius=0.4699
  width=0.315
  rolling_coeff=0.01
  friction_road=1
  max_braking=12000
  max_handbrake_torque=0
  braking_factor=0.6
  inboard_brakes=1
  brake_dissipation=0.00004
  brake_heating=0.00005
  brake_max_temp=800
  ;
  ; surface type		tyre pressure	deflection	tire_rate	tire_damping
  ;
  ; very loose		69kPa		0.064m		124000N/m	292N/m/s
  ; low grip		138kPa		0.040m		199000N/m	???N/m/s
  ; regular		179kPa		0.034m		234000N/m	???N/m/s
  ; high			241kPa		0.025m		318000N/m	???N/m/s
  ; max payload		310kPa		0.023m		346000N/m	100N/m/s ???
  ;
  tire_rate=234000
  tire_damping=292
  tire_damping_lowspeed=2500
  tire_damping_threshold=5
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  ; 0.250°
  camber=2.687
  ; -0.095°
  toe=1.328
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  ; 0.250°
  camber=2.687
  ; 0.095°
  toe=-1.328
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=
  }
}
wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  reverse_steering=0
  lock=0
  ackerman=0
  ; rim				25kg
  ; tyre				33kg
  ; hub				15kg
  mass=80
  inertia=7.1
  radius=0.4699
  width=0.315
  rolling_coeff=0.01
  friction_road=1
  max_braking=12000
  max_handbrake_torque=10000
  braking_factor=0.4
  inboard_brakes=1
  brake_dissipation=0.00004
  brake_heating=0.00005
  brake_max_temp=800
  ;
  ; surface type		tyre pressure	deflection	tire_rate	tire_damping
  ;
  ; very loose		69kPa		0.064m		124000N/m	292N/m/s
  ; low grip		138kPa		0.040m		199000N/m	???N/m/s
  ; regular		193kPa		0.032m		249000N/m	???N/m/s
  ; high			241kPa		0.025m		318000N/m	???N/m/s
  ; max payload		310kPa		0.023m		346000N/m	???N/m/s
  ;
  tire_rate=249000
  tire_damping=292
  tire_damping_lowspeed=2500
  tire_damping_threshold=5
  pacejka~pacejka
  {
  }
}
wheel2~wheel_rear
{
  ; 0.500°
  camber=2.938
  ; 0.095°
  toe=-1.330
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  ; 0.500°
  camber=2.938
  ; -0.095°
  toe=1.330
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=
  }
}
graphics
{
  shadow
  {
    intensity=0.25
    model
    {
      ;file=
      ;use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=
    }
  }
}
animation
{
  flash_lights=0
}
lights
{
  light0
  {
    aspect=5
    color=20 18 7
    far=75
    fov=50
    pitch=0
    texture=light.tga
    z=1
  }
}
flares
{
  ; headlight left
  flare0
  {
    color=40 36 14
    hor_scale=1
    intensity=0.4
    normal=0.000 0.000 1.000
    pos=0.475 -0.040 2.165
    rule=
    size_factor=4
    z_offset=-1000
  }
  ; headlight right
  flare1
  {
    color=40 36 14
    hor_scale=1
    intensity=0.4
    normal=0.000 0.000 1.000
    pos=-0.475 -0.040 2.165
    rule=
    size_factor=4
    z_offset=-1000
  }
  ; daylight running light left
  flare2
  {
    color=40 18 0
    hor_scale=1
    intensity=0.3
    normal=0.000 0.000 1.000
    pos=0.905 0.015 2.095
    rule=
    size_factor=1
    z_offset=-1000
  }
  ; daylight running light right
  flare3
  {
    color=40 18 0
    hor_scale=1
    intensity=0.3
    normal=0.000 0.000 1.000
    pos=-0.905 0.015 2.095
    rule=
    size_factor=1
    z_offset=-1000
  }
  ; roof marker left
  flare4
  {
    color=32 12 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 1.000
    pos=0.145 0.795 0.650
    rule=
    size_factor=0.75
    z_offset=-1000
  }
  ; roof marker centre
  flare5
  {
    color=32 12 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 1.000
    pos=0.000 0.795 0.650
    rule=
    size_factor=0.75
    z_offset=-1000
  }
  ; roof marker right
  flare6
  {
    color=32 12 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 1.000
    pos=-0.145 0.795 0.650
    rule=
    size_factor=0.75
    z_offset=-1000
  }
  ; tail light left
  flare7
  {
    color=38 4 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=0.875 -0.015 -2.450
    rule=
    size_factor=2.5
    z_offset=-1000
  }
  ; tail light right
  flare8
  {
    color=38 4 4
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=-0.875 -0.015 -2.450
    rule=
    size_factor=2.5
    z_offset=-1000
  }
  ; brake light left
  flare9
  {
    color=38 4 4
    hor_scale=1
    intensity=0.3
    normal=0.000 0.000 -1.000
    pos=0.875 -0.015 -2.450
    rule=brake
    size_factor=3
    z_offset=-1000
  }
  ; brake light right
  flare10
  {
    color=38 4 4
    hor_scale=1
    intensity=0.3
    normal=0.000 0.000 -1.000
    pos=-0.875 -0.015 -2.450
    rule=brake
    size_factor=3
    z_offset=-1000
  }
  ; rear light left
  flare11
  {
    color=40 2 0
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=0.285 -0.210 -2.445
    rule=
    size_factor=0.75
    z_offset=-1000
  }
  ; rear light centre
  flare12
  {
    color=40 2 0
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=0.000 -0.210 -2.445
    rule=
    size_factor=0.75
    z_offset=-1000
  }
  ; rear light right
  flare13
  {
    color=40 2 0
    hor_scale=1
    intensity=0.25
    normal=0.000 0.000 -1.000
    pos=-0.285 -0.210 -2.445
    rule=
    size_factor=0.75
    z_offset=-1000
  }
}
pilot
{
  helmet
  {
    model
    {
      file=
    }
    pos=0.000 0.000 0.000
  }
  body
  {
    model
    {
      file=
    }
  }
}
wipers
{
  count=0
}
camera0
{
  fov=70
  model=1
  name=driver
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0.75
    y=0.525
    z=-0.15
  }
  offset_to
  {
    x=0.75
    y=-5
    z=50
  }
  src
  {
    mass=7
    k=3000
    damping=300
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  fov=70
  model=1
  name=check
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0.7
    y=0.525
    z=-0.05
  }
  offset_to
  {
    x=-12
    y=0
    z=10
  }
  src
  {
    mass=7
    k=3000
    damping=300
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  fov=80
  model=2
  name=bumper
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=-0.35
    z=2.1
  }
  offset_to
  {
    x=0
    y=0
    z=50
  }
  src
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  fov=55
  model=0
  name=roof
  wheels=0
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=1.2
    z=0.35
  }
  offset_to
  {
    x=0
    y=-20
    z=50
  }
  src
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  fov=50
  model=0
  name=chase
  wheels=1
  angle
  {
    x=0
    y=0
    z=0
  }
  follow
  {
    pitch=0
    roll=0
    yaw=1
  }
  offset
  {
    x=0
    y=2.3
    z=-7.5
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  src
  {
    mass=6
    k=300
    damping=100
    maxdist=4
  }
  dst
  {
    mass=6
    k=300
    damping=100
    maxdist=4
  }
}
camera5
{
  fov=15
  model=0
  name=side
  wheels=1
  angle
  {
    x=0
    y=270
    z=0
  }
  follow
  {
    pitch=0
    roll=0
    yaw=1
  }
  offset
  {
    x=0
    y=0
    z=-20
  }
}
camera6
{
  fov=29
  model=0
  name=front
  wheels=1
  angle
  {
    x=14
    y=0
    z=0
  }
  follow
  {
    pitch=0
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=0.425
    z=-7.3
  }
}
camera7
{
  fov=15
  model=0
  name=front_angle
  wheels=1
  angle
  {
    x=-3
    y=330
    z=-6
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=-0.225
    z=-17
  }
}
camera8
{
  fov=25
  model=0
  name=rear_angle
  wheels=1
  angle
  {
    x=5
    y=145
    z=10
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0.65
    y=0.375
    z=-10
  }
}
camera9
{
  fov=25
  model=0
  name=far
  wheels=1
  angle
  {
    x=1
    y=240
    z=-2
  }
  follow
  {
    pitch=0
    roll=0
    yaw=0
  }
  offset
  {
    x=-0.9
    y=-1.425
    z=-25
  }
}
audio
{
  horn
  {
    sample=horn.wav
  }
  skid
  {
    sample=skid.wav
    sample2=skid.wav
  }
  shiftout
  {
    sample=gearshft.wav
  }
  shiftin
  {
    sample=shift.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      volume=0.5
      sample=r_idle_ex.wav
      min=0
      max=1500
      natural=1000
      attack=800
      decay=200
    }
    smp1~audio.acc_all
    {
      volume=0.5
      sample=r_onlow_ex.wav
      min=1000
      max=3500
      natural=1000
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      volume=0.5
      sample=r_idle_ex.wav
      min=0
      max=1500
      natural=1000
      attack=800
      decay=200
    }
    smp1~audio.acc_all
    {
      volume=0.5
      sample=r_offlow_ex.wav
      min=1500
      max=3500
      natural=1000
    }
  }
  gearwhine
  {
    pitch_scale=0.5
    pitch_offset=100
    smp0
    {
      sample=whine.wav
      volume=1.0
      min=1
      max=100
      decay=2000
      natural=600
    }
  }
}
