Difference between revisions of "Damage types"

From Valve Developer Community
Jump to: navigation, search
m (Fixed an error.)
(Damagetype: Values Added and DMG_PREVENT_PHYSICS_FORCE)
Line 12: Line 12:
  
 
== Generic ==
 
== Generic ==
Nothing special.
+
* Nothing special.
 +
* Damagetype: Value 0
  
 
== Crush ==
 
== Crush ==
 
* The whole screen flashes red even if you're wearing a HEV suit.
 
* 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.
 
* Always does 50% of the ''Damage'' value every half-second, regardless of difficulty setting.
 +
* Damagetype: Value 1
  
 
== Bullet ==
 
== Bullet ==
 
* Plays bullet impact sounds.
 
* Plays bullet impact sounds.
 +
* Damagetype: Value 2
  
 
== Slash ==
 
== Slash ==
 
* Displays spurts of blood if player HEV suit power is 0.
 
* Displays spurts of blood if player HEV suit power is 0.
 +
* Damagetype: Value 4
  
 
== Burn ==
 
== Burn ==
Line 30: Line 34:
 
* (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.")
 
* (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.")
 
{{tf2}} Does NOT ignite players.
 
{{tf2}} Does NOT ignite players.
 +
* Damagetype: Value 8
  
 
== Freeze ==
 
== 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.
 
* 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.
 
* 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 ==
 
== Fall ==
 
* Always does 50% of the ''Damage'' value every half-second, regardless of difficulty setting.
 
* 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.
 
* The HEV suit will not protect you from this type of damage.
 
* {{tf2}} A player killed by this type of damage will display the fall-specific kill feed line "fell to a clumsy, painful death".
 
* {{tf2}} 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 ==
 
== Blast ==
 
* Nothing special; may temporarily deafen the player.
 
* Nothing special; may temporarily deafen the player.
 
* {{tf2}} A player killed by this type of damage will leave gibs instead of a ragdoll.
 
* {{tf2}} A player killed by this type of damage will leave gibs instead of a ragdoll.
 +
* Damagetype: Value 64
  
 
== Club ==
 
== Club ==
 
* Nothing special.
 
* Nothing special.
 
* {{tf2}} 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).
 
* {{tf2}} 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 ==
 
== Shock ==
 
* Sparks for every hit.
 
* 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.")
 
* (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 ==
 
== Sonic ==
 
* Plays damage sounds.
 
* Plays damage sounds.
 +
* Damagetype: Value 512
  
 
== Energy beam ==
 
== Energy beam ==
Nothing special.
+
* Nothing special.
 +
* Damagetype: Value 1024
  
 
== Drown ==
 
== Drown ==
Line 63: Line 76:
 
* Always does 50% of the ''Damage'' value every half-second, regardless of difficulty setting.
 
* 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.
 
* The HEV suit will not protect you from this type of damage.
 +
* Damagetype: Value 16384
  
 
== Paralyze ==
 
== Paralyze ==
 
* HEV suit warning: "Warning: Bloodtoxin levels detected." (hl1/fvox/blood_toxins.wav)
 
* HEV suit warning: "Warning: Bloodtoxin levels detected." (hl1/fvox/blood_toxins.wav)
 +
* Damagetype: Value 32768
  
 
== Nerve gas ==
 
== Nerve gas ==
 
* HEV suit warning: "Warning: Biohazard detected." (hl1/fvox/biohazard_detected.wav)
 
* HEV suit warning: "Warning: Biohazard detected." (hl1/fvox/biohazard_detected.wav)
 
* {{tf2}} A player killed by this type of damage will be displayed as a kill by a sawblade.
 
* {{tf2}} A player killed by this type of damage will be displayed as a kill by a sawblade.
 +
* Damagetype: Value 65536
  
 
== Poison ==
 
== Poison ==
Line 80: Line 96:
 
* The damage received is healed after awhile (even if the player is not wearing a suit, oddly enough).
 
* The damage received is healed after awhile (even if the player is not wearing a suit, oddly enough).
 
* {{tf2}} Similar to GENERIC.
 
* {{tf2}} Similar to GENERIC.
 +
* Damagetype: Value 131072
  
 
== Radiation ==
 
== Radiation ==
Line 88: Line 105:
 
* Double HUD damage directions are given.
 
* Double HUD damage directions are given.
 
* HEV suit warning: "Warning: Hazardous radiation levels detected." (hl1/fvox/radiation_detected.wav)
 
* HEV suit warning: "Warning: Hazardous radiation levels detected." (hl1/fvox/radiation_detected.wav)
 +
* Damagetype: Value 262144
  
 
== Drown recover ==
 
== Drown recover ==
Nothing special.
+
* Nothing special.
 +
* Damagetype: Value 524288
  
 
== Chemical ==
 
== Chemical ==
Line 97: Line 116:
 
* HEV suit warning: "Warning: Hazardous chemical detected." (hl1/fvox/chemical_detected.wav)
 
* HEV suit warning: "Warning: Hazardous chemical detected." (hl1/fvox/chemical_detected.wav)
 
* {{tf2}} Critical damage. Deals 200% of the ''Damage'' value.
 
* {{tf2}} Critical damage. Deals 200% of the ''Damage'' value.
 +
* Damagetype: Value 1048576
  
 
== Slow burn ==
 
== Slow burn ==
Nothing special.
+
* Nothing special.
 +
* Damagetype: Value 2097152
  
 
== Slow freeze ==
 
== Slow freeze ==
Nothing special. This bit is set when attempting to use an [[env_entity_dissolver]] on a live player.
+
* 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  ==
 +
* Prevents the player from taking physics damage.
 +
* Damagetype: Value 2048 {{note|You must turn off SmartEdit mode to enter this value.}}
  
 
[[Category:Level Design]]
 
[[Category:Level Design]]

Revision as of 06:52, 20 July 2017

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

  • Prevents the player from taking physics damage.
  • Damagetype: Value 2048
    Note.png Note: You must turn off SmartEdit mode to enter this value.