Point hurt
From Valve Developer Community
This point-based entity is available in all Source games.
| Table of contents |
[edit]
Entity Description
An entity that does damage to all entities in a radius around itself, with a specified delay. If 'Target Entity' is specified, the damage is only done to that entity. You will need to create a brush and then move that to an entity .[edit]
Availability
This point-based entity is available in: all Source games.
In code it is represented by class CPointHurt (http://doxygen.page.needed/class_c_point_hurt.html), defined in pointhurt.cpp (http://doxygen.page.needed/pointhurt_8cpp-source.html).
[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- DamageTarget
- <string> If specified, only this entity will take damage. Otherwise, all entities within the Radius will take damage.
- DamageRadius
- <float> All entities within this radius of this entity will take damage. If a 'Target Entity' is specified, only that entity will take damage.
- Damage
- <integer> Damage done to all affected entities each time this entity fires.
- DamageDelay
- <float> Delay between refires, in seconds.
- DamageType
- <choices> Damage Type. : "Type of damage to inflict on entities damaged."
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
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- Hurt
- Force a single fire, damaging either the Target Entity or all entities within the radius.
- TurnOn
- Enable this entity. It will start damaging entities everytime it fires, and refire based upon the specified Delay.
- TurnOff
- Disable this entity. It will stop damaging entities.
- Toggle
- Toggle this entity between On/Off state.
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator

