car
{
  name=Hummvee H1 Militar
  year=2001
  credits=Original by GTA V 
  comments=Conversion by Arouca21
  id=hummveeH1Militar
  version=090b
  wheels=4
  ff_factor=0.40
  shadow
  {
    texture=shadow.tga
    width=4.5
    length=7.8
  }
  cg
  {
    x=0
    y=-0.25
    z=0
  }
  grip_factor=1.0
  ;grip_factor=0.86
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=porta_condutor.dof
                }
                model1
                {
                        file=porta_pendura.dof
                }
                model2
                {
                        file=porta_tras_direita.dof
                }
                model3
                {
                        file=porta_tras_esquerda.dof
                }
                model4
                {
                        file=
                }
                model5
                {
                        file=
                }
                model6
                {
                        file=
                }
                model7
                {
                        file=
                }
                model8
                {
                        file=
                }
                model9
                {
                        file=

    		}
	}
}

body
{
  mass=1016
  inertia
  {
    x=1200
    y=1100
    z=550
  }
  width=1.77
  height=1.2
  length=4.35
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model_light_l
  {
    file=lights.dof
  }
  model_reverse_l
  {
    file=reverselight.dof
  }
  model
  {
    file=body.dof
    }
  }
}
steer
{
  x=0.5
  y=0.6
  z=0.45
  radius=10
  xa=15.9
  lock=1080
  model
  {
  file=volante.dof
  }
}
engine
{
  mass=150
;nothing right here yet - just for starters
  max_rpm=3000
  idle_rpm=1000
  stall_rpm=500
  start_rpm=900
  starter=1
  enable_stall=1
  start_stalled=1
  starter_torque=70
  curve_torque=torque.crv
  autoclutch_rpm=4500
  max_torque=340
  shifting
  {
    automatic=0
    shift_up_rpm=6500
    shift_down_rpm=2800
    time_to_declutch=180
    time_to_clutch=180
    fast=0
  }
  inertia
  {
    engine=0.1
    final_drive=0.10
  }
  braking_coeff=4.2
  torque_reaction=0
}
clutch
{
  max_torque=600
}
handbrakes
{
  wheels=23
}
traction_control 
{
  enable=1
  ; Allowed front/rear wheel speed ratio
  max_velocity_ratio=1.12
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=1
}
abs
{
  ; Anti-lock braking system
  enable=1
  ; Allowed rear/front wheel speed ratio
  max_velocity_ratio=1.1
  ; When to turn ABS off
  min_velocity_ratio=1.0
  min_velocity=1
  braking_factor=1.4
}
gearbox
{
   gears=6
   ; Gear ratios; note that negative gears are reverse gears
   ; You may have multiple reverse gears (or 0)
   ; "Ratios taken from Alison transmission specs - automatic?"
  gear0
  {
      inertia=0.9
      ratio=-3.545
  }
  gear1
  {
      ratio=3.10
      inertia=0.13
  }
  gear2
  {
      ratio=1.81
      inertia=0.09
  }
  gear3
  {
      ratio=1.41
      inertia=0.07
  }
  gear4
  {
      ratio=1.0
      inertia=0.05
  }
  gear5
  {
      ratio=0.71
      inertia=0.03
   }
}
differential
{
  type=1
  ratio=4.677
  power_angle=60
  coast_angle=40
  clutches=3
  clutch_factor=1.0
  locking_coefficient=40
  output0=2
  output1=3
}
;
;
; --- Exterior related ---
;
;
aero
{
  body
  {
    center=0 0 0
    cx=0.353
    area=2.5
  }
  wings=2
  wing0
  {
    name=FrontDam
    span=1.7
    cord=0.2
    coeff_drag=0.4
    coeff_down=0.6
    center=0 -0.5 1.2
    angle=20
    angle_offset=0
  }
  wing1
  {
    name=RearSpolier
    span=1.5
    cord=0.25
    coeff_drag=0.7
    coeff_down=1.2
    center=0 0.6 -2.4
    angle=10
    angle_offset=0
  }
}
;
;
; --- Suspension ---
;
;
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=800
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=000
  }
}
susp_front
{
  y=0.1
  z=1.6
  restlen=0.46
  minlen=.1
  maxlen=.42
  k=14000
  bump_rate=2200
  ;bump_rate=3200
  rebound_rate=4000
  ;rebound_rate=8000
  anti_pitch=0.0
  caster_offset=-0.02
  roll_center
  {
    x=0
    y=-.38
    z=0
  }
}
susp_rear
{
  y=.065
  z=-1.5
  restlen=0.46
  minlen=.1
  maxlen=.42
  k=14000
  bump_rate=2800
  rebound_rate=6200
  anti_pitch=0.0
  roll_center
  {
    x=0
    y=-.28
    z=0
  }
}
susp0~susp_front
{
  x=0.70
  ;x=1
;verified
}
susp1~susp_front
{
  x=-0.70
  ;x=-1
;verified
}
susp2~susp_rear
{
  x=.70
;verified
}
susp3~susp_rear
{
  x=-.70
;verified
}
;
;
; --- Wheels ---
;
;
tire_model
{
  relaxation_length_lat=0.4
  relaxation_length_long=0.091
}
;Crudentire
pacejka
{
  ; Pacejka constants
  ; Lateral coefficients
  a0=1.25
  a1=-50
  a2=1600
  a3=2400
  a4=8.45
  a5=0.015
  a6=-0.03
  a7=-0.5
  a8=-0.11
  a9=0.0
  a10=0.0
  a111=-2.61
  a112=0.0
  a12=0.0
  a13=0.0
  ; Longitudinal coefficients
  b0=1.12
  b1=-25
  b2=1600
  b3=0.0
  b4=213
  b5=0.0
  b6=0.0
  b7=0.0
  b8=-10
  b9=0.0
  b10=0.0
  b11=0.0
  b12=0.0
  ; Aligning moment coefficients
  c0=2.365
  c1=-3.80000
  c2=-3.14000
  c3=-1.16000
  c4=-7.20000
  c5=0.0
  c6=0.0
  c7=0.04400
  c8=-0.3
  c9=0.18
  c10=0.043
  c11=0.0
  c12=0.0
  c13=0.0
  c14=0.1
  c15=-1.0
  c16=0.0
  c17=0.0
  ; Statistical data (SR, SA in radians)
  optimal_slipratio=0.11034
  optimal_slipangle=0.14926
}
;verified 225-45/17, except b5, a2, b2
pacejka_r~pacejka
{
  a2=1615
  a3=2900
  ; Statistical data (SR, SA in radians)
  optimal_slipratio=0.11034
  optimal_slipangle=0.142
}
pacejka_drift~pacejka
{
      a0=1
   	a1=-35
      a2=1800
      a3=2350
   	a4=10
   	a5=0.014
   	a6=-0.24
   	a7=1.0
   	a8=0.0
   	a9=-0.0013
   	a10=0.0
   	a111=-11
   	a112=-0.29
   	a12=17.8
   	a13=0.0
   	b1=-70
   	b3=23.3
   	b4=400
   	b5=0.05
   	b6=0
   	b7=0.055
   	b8=-0.024
   	b9=0
   	b10=0
   	b11=0
   	b12=0
   	c0=2.2
   	c1=-3
   	c2=-3
   	c3=-1.26
   	c4=-4
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1
   	optimal_slipratio=0.1
   	optimal_slipangle=0.15
}
wheel_all
{
  ; Brakedisc temperature
  brake_heating=0.002
  brake_dissipation=0.0005
  brake_max_temp=1000
}
wheel_front~wheel_all
{
  y=0
  z=0
  camber=-0
  ackerman=1.01
  steering=1
  powered=1
  power_gearing=0.7
  lock=47
  mass=42.05
  inertia=2.4
  radius=.50
  rolling_coeff=0.01
  max_braking=6000
  braking_factor=0.6
  tire_rate=170000
}

wheel_rear~wheel_all
{
  y=0
  z=0
  camber=0
  steering=0
  powered=0
  mass=39.48
  inertia=2.2
  radius=.5
  rolling_coeff=0.01
  tire_rate=170000
  max_braking=3000
  braking_factor=.4
  max_handbrake_torque=6000
}

wheel0~wheel_front
{
  toe=-0
  model
  {
    file=left.dof
    offset
    {
      x=0.2
    }
  }
  model_brake
  {
    file=
    offset
    {
      x=0.13
      ;x=-0.27
    }
  }
  pacejka~pacejka_drift
  {
  }
}
wheel1~wheel_front
{
  toe=0
;verified
  model
  {
    file=right.dof
    offset
    {
      x=-0.2
    }
  }
  model_brake
  {
    file=
    offset
    {
      x=-0.13
	  ;x=0.07
    }
  }
  pacejka~pacejka_drift
  {
  }
}
wheel2~wheel_rear
{
  toe=0
;verified
  model
  {
    file=left.dof
    offset
    {
      x=0.2
    }
  }
  model_brake
  {
    file=
    offset
    {
      x=0.32
      y=0.07
      z=-0.12
    }
  }
  pacejka~pacejka_drift
  {
  }
}
wheel3~wheel_rear
{
  toe=1
;verified
  model
  {
    file=right.dof
    offset
    {
      x=-0.2
    }
  }
  model_brake
  {
    file=
    offset
    {
      x=-0.32
      y=0.07
      z=-0.12
    }
  }
  pacejka~pacejka_drift
  {
  }
}
;
;
; --- Cameras ---
;
;
camera0
{
  offset
  {
    x=0.38
    y=0.95
    ;y=0.19
    z=-0.1
  }
  offset_to
  {
    ; Look at offset
    x=0.34
    y=0.18
    z=10.25
  }
  angle
  {
    x=0.000000
    ;y=180.000000
    z=0.000000
  }
  ; FOV for Apple Cinema HD display 30"
  ;fov=37
  ; FOV for HP 2335 23" display
  fov=55
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=0
  name=incar
  ; Source/target inertia
  src
  {
    mass=1.0
    k=1000
    ;k=5000
    damping=50
    maxdist=0.2
  }
  dst
  {
    mass=1.0
    k=150
    damping=20
    maxdist=0.2
  }
}
camera1
{
  offset
  {
    x=0
    y=-0.454165
    z=-4.649996
  }
  angle
  {	

	

    x=11.000005
    y=-180.000000
    z=0.000000
  }
  name=Chase High
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
}
camera2
{
  offset
  {
    x=0
    y=-0.4
    z=2.100000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumper
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=60
  model=2
  wheels=0
  view=2
}
camera3
{
  offset
  {
    x=0
    y=-0.513334
    z=-5.745006
  }
  angle
  {
    x=21
    y=180
    z=0
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
}

camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Rear Side
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.121874
    y=-0.064583
    z=-5.590004
  }
  angle
  {
    x=35.555546
    y=-83.159645
    z=16.579861
  }
  name=Side High
  fov=40
  model=0
  wheels=1
  view=0
}
camera6
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.231250
    y=-0.050001
    z=-4.834995
  }
  angle
  {
    x=7.361108
    y=27.083181
    z=18.923620
  }
  fov=30
  model=0
  wheels=1
  view=0
  name=Front Side
}
camera7
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.001563
    y=-0.179167
    z=-9.000000
  }
  angle
  {
    x=44.000000
    y=0.000000
    z=0.000000
  }
  fov=26
  model=0
  wheels=1
  view=0
  name=Front High
}
camera8
{
  offset
  {
    x=0.0
    y=-0.6
    z=-1
  }
  angle
  {
    x=8.000000
    y=180.000000
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=50
  model=2
  wheels=1
  view=0
  name=Driver
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.820827
    z=1.2
  }
  angle
  {
    x=8
    y=0
    z=0
  }
  fov=70
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=1
  wheels=0
  view=0
  name=Rear view
}
audio
{
  skid
  {
    sample=skid.wav
  }
  shiftout
  {
    sample=gearshft.wav
  }
  shiftin
  {
    sample=shift.wav
  }
  horn
  {
    sample=horn.wav
  }
	acc_all
	{
		attack=1000
		decay=1000
	}
	accelerate_out
	{	
		smp0~audio.acc_all
		{
			volume=1.0			
			sample=r_idle_ex.wav
			min=0
			max=1500
			natural=1000
			attack=800
			decay=200
		}
		smp1~audio.acc_all
		{
			volume=1.0			
			sample=r_onlow_ex.wav
			min=1000
			max=3500
			natural=1000
		}		
  }
  decelerate_out
  {
		smp0~audio.acc_all
		{
			volume=1.0			
			sample=r_idle_ex.wav
			min=0
			max=1500
			natural=1000
			attack=800
			decay=200
		}
		smp1~audio.acc_all
		{
			volume=1.0			
			sample=r_offlow_ex.wav
			min=1500
			max=3500
			natural=1000
		}		
	}
	gearwhine
  	{
	;Pitch input is shaft rotational velocity in radians/sec
	pitch_scale=0.5
	pitch_offset=100
    		smp0
    		{
      			sample=whine.wav
      			volume=1.0
      			min=1
      			max=100
      			decay=2000
      			natural=600
    		}
  	}
}