Trigger hurt ghost: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{l4d2 point|trigger_hurt_ghost}} ==Entity Description== A trigger volume that damages entities (and ghosts) that touch it. {{sensor_brush}} Fo…')
 
(kinda duplicate)
 
(12 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{l4d2 point|trigger_hurt_ghost}}
{{LanguageBar}}
{{CD|CTriggerHurtGhost}}
{{This is a|brush entity|name=trigger_hurt_ghost|series=Left 4 Dead|sprite=Toolstrigger.gif}} It is a [[triggers|trigger]] volume that damages [[entity|entities]] that touch it. It behaves exactly as {{ent|trigger_hurt}} with primary purpose being ability to kill ghost infected.


==Entity Description==
{{Important|To kill infected ghosts, Damage Type 32 (DMG_FALL) '''must''' be chosen}}
A [[trigger]] [[brush entity|volume]] that damages [[entity|entities]] (and ghosts) that touch it.


{{sensor_brush}}


For a list on how different damage types will affect the player, see [[Damage_types|here]].
{{Note|Any other info that applies to {{ent|trigger_hurt}} also applies here}}


==Keyvalues==
== See also ==
* {{KV Trigger}}
* {{ent|trigger_hurt}}
* '''damage'''
: <integer> The amount of damage done to entities that touch this trigger every second on the "Normal" difficulty setting. (Half of this damage is done every half-second.) See also '''damagemodel''' for extra details on how damage can be dealt. Use '''negative''' value to heal.
* '''damagecap'''
: <integer> Maximum damage dealt per second. This field is only used if you set '''damagemodel'''
* '''[[Damage Types|damagetype]]'''
: <choices>
:{| class=standard-table
! Literal Value || Description
|-
| 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
|}
* '''damagemodel'''
: {{boolean}} How damage is dealt. If set, doubling starts with the specified amount and doubles it each time it hurts the toucher. Forgiveness means that if the toucher gets out of the trigger the damage will reset to the specified value. Good for making triggers that are deadly over time without having to cause massive damage on each touch. If not set, always does the specified amount of damage each half second.
* '''Zero Damage Force''' ''nodmgforce''
: <choices> Should the damaged entity receive no physics force from this trigger.


==Flags==
{{sensor_brush}}
*1 : Applies to clients (players)
*2 : Applies to NPCs
*4 : Applies to pushables
*8 : Applies to physics objects
*16 : Applies to player ally NPCs
*32 : Applies to clients in vehicles
*64 : Applies to everything
*512 : Applies to clients '''not''' in vehicles
*1024 : Applies to physics debris
*2048 : Applies to NPCs in vehicles (Respects player ally flag)
 
==Inputs==
* {{I Trigger}}
* '''SetDamage <float>'''
: Set a new amount of damage for this trigger.
 
==Outputs==
* {{O Trigger}}
* '''OnHurt'''
: Fired whenever this trigger hurts something other than a player.
* '''OnHurtPlayer'''
: Fired whenever this trigger hurts a player.
 
==See also==
* [[trigger_hurt]]

Latest revision as of 18:19, 30 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTriggerHurtGhost
CTriggerHurt
CBaseTrigger
CBaseToggle
CBaseEntity
Toolstrigger.gif

trigger_hurt_ghost is a brush entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It is a trigger volume that damages entities that touch it. It behaves exactly as trigger_hurt with primary purpose being ability to kill ghost infected.

Icon-Important.pngImportant:To kill infected ghosts, Damage Type 32 (DMG_FALL) must be chosen


Note.pngNote:Any other info that applies to trigger_hurt also applies here

See also