trigger_hurt

From Valve Developer Community
Revision as of 15:21, 12 March 2024 by N0one (talk | contribs) (trigger_hurt (GoldSrc))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

trigger_hurt is an e2 available in all Template:1 games.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This entity hurts anyone in its area.

Key Values

Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Master (master) <targetname>
Name of a master entity. If the master hasn't been activated, this entity will not activate.
Damage (dmg) <integer>
Delay before trigger (delay) <string>
The time in seconds before the trigger should trigger its target (after being triggered itself).
Goal Activation bitfields (g_a) <choices> (only in Team Fortress Classic)
  • 5 : 5 - if AP fails criteria
Death type (deathtype) <string> (only in Team Fortress Classic)
Damage Type (damagetype) <choices>
  • 0: GENERIC
  • 1: CRUSH
  • 2: BULLET
  • 4: SLASH
  • 8: BURN
  • 16: FREEZE
  • 32: FALL
  • 64: BLAST
  • 128: CLUB
  • 256: SHOCK
  • 512: SONIC
  • 1024: ENERGYBEAM
  • 16384: DROWN
  • 32768: PARALYSE
  • 65536: NERVEGAS
  • 131072: POISON
  • 262144: RADIATION
  • 524288: DROWNRECOVER
  • 1048576: CHEMICAL
  • 2097152: SLOWBURN
  • 4194304: SLOWFREEZE


TFButtonCriteria:
Team allowed to activate entity (team_no) <choices> (only in Team Fortress Classic)
  • 0: Any
  • 1: Blue
  • 2: Red
  • 3: Yellow
  • 4: Green
Targetname of teamcheck goal (teamcheck) <string> (only in Team Fortress Classic)
Player class allowed to activate entity (playerclass) <choices> (only in Team Fortress Classic)
  • 0: Any
  • 1: Scout
  • 2: Sniper
  • 3: Soldier
  • 4: Demolitions man
  • 5: Medic
  • 6: Heavy Weapons Guy
  • 7: Pyro
  • 8: Spy
  • 9: Engineer
Has item # (items_allowed) <integer> (only in Team Fortress Classic)
The player must be carrying this item to use this entity.
Has item from group # (h_i_g) <integer> (only in Team Fortress Classic)
To use this entity, the player must be carrying any item from this group.
Hasn't item from group # (hasnt_item_from_group) <integer> (only in Team Fortress Classic)
To use this entity, the player must not be carrying any item from this group.
If item # has moved (if_item_has_moved) <integer> (only in Team Fortress Classic)
A player can only use the entity if this item is not in its original spawn location.
If item # hasn't moved (if_item_hasnt_moved) <integer> (only in Team Fortress Classic)
A player can only use the entity if this item is in its original spawn location.
If goal # active (if_goal_is_active) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the active state.
If goal # inactive (if_goal_is_inactive) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the inactive state.
If goal # removed (if_goal_is_removed) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the removed state.
If group # active (if_group_is_active) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the active state.
If group # inactive (if_group_is_inactive) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the inactive state.
If group # removed (if_group_is_removed) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the removed state.


Flags

Target Once : [1]
Start Off : [2]
No clients : [8]
FireClientOnly : [16]
TouchClientOnly : [32]