Damage types

From Valve Developer Community
Revision as of 12:10, 20 July 2017 by Gtamike TSGK (talk | contribs) (== See also == Filter_damage_type)
Jump to: navigation, search

The Damage Type property of a trigger_hurt entity lets you choose between many types of damage, but it may be hard to figure out what these types of damage do exactly, so below is a list (for Half-Life 2).

If nothing else is stated, each damage hit will (besides damaging you) make you jerk a little, make your screen flash red if you don't have a HEV suit, or provide red HUD directions to display where the damage is coming from if you have a HEV suit.

The damage caused depends on the current difficulty setting:

  • The "Easy" (skill 1) setting causes 25% of the Damage value every half-second.
  • The "Normal" (skill 2) setting causes 50% of the Damage value every half-second.
  • The "Hard" (skill 3) setting causes 75% of the Damage value every half-second.
  • <Team Fortress 2>: Always causes 100% of the Damage value every half-second.

Generic

  • Nothing special.
  • Damagetype: Value 0

Crush

  • The whole screen flashes red even if you're wearing a HEV suit.
  • Always does 50% of the Damage value every half-second, regardless of difficulty setting.
  • Damagetype: Value 1

Bullet

  • Plays bullet impact sounds.
  • Damagetype: Value 2

Slash

  • Displays spurts of blood if player HEV suit power is 0.
  • Damagetype: Value 4

Burn

  • Plays heat damage sounds. (Something sizzling and the player going "Ouch!".)
  • The whole screen flashes red even if you're wearing a HEV suit.
  • No HUD damage directions are given.
  • (For additional indication, you can add an ambient_generic playing hl1/fvox/heat_damage.wav to make the HEV suit go: "Extreme heat damage detected.")

<Team Fortress 2> Does NOT ignite players.

  • Damagetype: Value 8

Freeze

  • Nothing special, but when used in Team Fortress 2, a player killed by this type of damage will be displayed as a kill by a train.
  • Also, When Used in Half-Life, The HEV Suit will display a snowflake icon on the left side of the screen.
  • Damagetype: Value 16

Fall

  • Always does 50% of the Damage value every half-second, regardless of difficulty setting.
  • The HEV suit will not protect you from this type of damage.
  • <Team Fortress 2> A player killed by this type of damage will display the fall-specific kill feed line "fell to a clumsy, painful death".
  • Damagetype: Value 32

Blast

  • Nothing special; may temporarily deafen the player.
  • <Team Fortress 2> A player killed by this type of damage will leave gibs instead of a ragdoll.
  • Damagetype: Value 64

Club

  • Nothing special.
  • <Team Fortress 2> A player killed by this type of damage will emit their dramatic death sounds (Team Fortress 2's melee weapons deal this type of damage).
  • Damagetype: Value 128

Shock

  • Sparks for every hit.
  • (For additional indication, you can add an ambient_generic playing hl1/fvox/shock_damage.wav to make the HEV suit go: "Electrical damage detected.")
  • Damagetype: Value 256

Sonic

  • Plays damage sounds.
  • Damagetype: Value 512

Energy beam

  • Nothing special.
  • Damagetype: Value 1024

Drown

  • The whole screen flashes blue even if you're wearing a HEV suit.
  • Double HUD damage directions are given.
  • Plays drowning sounds.
  • Always does 50% of the Damage value every half-second, regardless of difficulty setting.
  • The HEV suit will not protect you from this type of damage.
  • Damagetype: Value 16384

Paralyze

  • HEV suit warning: "Warning: Bloodtoxin levels detected." (hl1/fvox/blood_toxins.wav)
  • Damagetype: Value 32768

Nerve gas

  • HEV suit warning: "Warning: Biohazard detected." (hl1/fvox/biohazard_detected.wav)
  • <Team Fortress 2> A player killed by this type of damage will be displayed as a kill by a sawblade.
  • Damagetype: Value 65536

Poison

The type of damage a black headcrab inflicts.

  • The whole screen flashes yellow even if you're wearing a HEV suit. (This flash seems to stick sometimes, and may appear the next time the player is hurt.)
  • The HEV suit will not protect you from this type of damage.
  • Always does 50% of the Damage value every half-second, regardless of difficulty setting.
  • HEV suit warns: "Warning: Bloodtoxin levels detected." (hl1/fvox/blood_toxins.wav)
  • HUD displays: "Neurotoxin Detected Administering Antidote"
  • The damage received is healed after awhile (even if the player is not wearing a suit, oddly enough).
  • <Team Fortress 2> Similar to GENERIC.
  • Damagetype: Value 131072

Radiation

  • Close proximity to a trigger_hurt with this type of damage will set off the HEV suits Geiger counter.
  • The HEV suit will not protect you from this type of damage.
  • The whole screen flashes white even if you're wearing a HEV suit.
    • <Team Fortress 2> The screen does not flash.
  • Double HUD damage directions are given.
  • HEV suit warning: "Warning: Hazardous radiation levels detected." (hl1/fvox/radiation_detected.wav)
  • Damagetype: Value 262144

Drown recover

  • Nothing special.
  • Damagetype: Value 524288

Chemical

  • The whole screen flashes white even if you're wearing a HEV suit. (This flash seems to stick sometimes, and may appear the next time the player is hurt.)
  • Double HUD damage directions are given.
  • HEV suit warning: "Warning: Hazardous chemical detected." (hl1/fvox/chemical_detected.wav)
  • <Team Fortress 2> Critical damage. Deals 200% of the Damage value.
  • Damagetype: Value 1048576

Slow burn

  • Nothing special.
  • Damagetype: Value 2097152

Slow freeze

  • Nothing special. This bit is set when attempting to use an env_entity_dissolver on a live player.
  • Damagetype: Value 4194304

DMG_PREVENT_PHYSICS_FORCE

See also