Point hurt: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 

 Note:This entity can be parented, although by default it is missing the
Note:This entity can be parented, although by default it is missing the 
 Note:Victims of this entity will see it as the Inflictor and will see the !activator as the Attacker.
Note:Victims of this entity will see it as the Inflictor and will see the !activator as the Attacker.
 Warning:Radius values ≤ 0 are changed to 128 automatically when this entity spawns.
Warning:Radius values ≤ 0 are changed to 128 automatically when this entity spawns.
 Note:The specified amount of damage will be halved. Consider multiplying your amount of damage by 2 and using it as the Value.
Note:The specified amount of damage will be halved. Consider multiplying your amount of damage by 2 and using it as the Value.
 Note:
Note: It is possible that unlike trigger_hurt, point_hurt does not halve the damage for the reason of the damage being the damage per second, as you can manually edit the amount of time between triggers. Damage type CRUSH should ignore armor, and GENERIC is known to halve when dealing with armored players.
 It is possible that unlike trigger_hurt, point_hurt does not halve the damage for the reason of the damage being the damage per second, as you can manually edit the amount of time between triggers. Damage type CRUSH should ignore armor, and GENERIC is known to halve when dealing with armored players.
 Warning:Damage values ≤ 0 are changed to +2 automatically when this entity spawns.
Warning:Damage values ≤ 0 are changed to +2 automatically when this entity spawns.
A workaround might be to change it later using AddOutput. (in ) But there are also games where negative Damage values of this entity result in no damage anyway. (in
) But there are also games where negative Damage values of this entity result in no damage anyway. (in  )
)
 Warning:Delay values ≤ 0 are changed to 0.1 automatically when this entity spawns.
Warning:Delay values ≤ 0 are changed to 0.1 automatically when this entity spawns.
 Note:Some damage types are named incorrectly by default in base.fgd, instead using their GoldSource names.
Note:Some damage types are named incorrectly by default in base.fgd, instead using their GoldSource names.
 Tip:
Tip: Team Fortress 2: Fancy damage effects such as decapitation, disintegration or ice/gold statues on death can be applied via VScript. See TakeDamageCustom function or the trigger example.
 Team Fortress 2: Fancy damage effects such as decapitation, disintegration or ice/gold statues on death can be applied via VScript. See TakeDamageCustom function or the trigger example.
		
	
|  (-added class hierarchy, cleanup) | mNo edit summary | ||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{LanguageBar}} | ||
| {{CD|CPointHurt|file1=pointhurt.cpp}} | {{CD|CPointHurt|file1=pointhurt.cpp}} | ||
| {{entity|sprite=1|point_hurt | {{This is a|point entity|sprite=1|name=point_hurt}} It 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, and radius is ignored. You will need to create a brush and then move that to an entity. | ||
| {{note|This entity can be parented, although by default it is missing the <code>parent</code> keyvalue from Valve's FGDs.}} | {{note|This entity can be parented, although by default it is missing the <code>parent</code> keyvalue from Valve's FGDs.}} | ||
| Line 8: | Line 7: | ||
| ==Flags== | ==Flags== | ||
| {{Fl|1|Start Active}} | {{Fl|1|Start Active|nofgd=1}} | ||
| {{Fl|2|Bypass ÜberCharge|Allows the damage to bypass Medic's {{tfwiki|ÜberCharge}}.|nofgd=1|only={{tf2}}}} | {{Fl|2|Bypass ÜberCharge|Allows the damage to bypass Medic's {{tfwiki|ÜberCharge}}.|nofgd=1|only={{tf2}}}} | ||
| Line 26: | Line 25: | ||
| == Inputs == | == Inputs == | ||
| {{ | {{I|Hurt|Force a single fire, damaging either the Target Entity or all entities within the radius.}} | ||
| {{ | {{I|TurnOn|Enable this entity. It will start damaging entities everytime it fires, and refire based upon the specified Delay.}} | ||
| {{ | {{I|TurnOff|Disable this entity. It will stop damaging entities.}} | ||
| {{ | {{I|Toggle|Toggle this entity between On/Off state.}} | ||
| == See  | == See also == | ||
| * {{ent|trigger_hurt}} | * {{ent|trigger_hurt}} | ||
Latest revision as of 19:04, 14 April 2025

 
|  Class hierarchy | 
|---|
| CPointHurt | 
|  pointhurt.cpp | 

point_hurt  is a   point entity  available in all  Source games. It 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, and radius is ignored. You will need to create a brush and then move that to an entity.
 Source games. It 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, and radius is ignored. You will need to create a brush and then move that to an entity.
 Note:This entity can be parented, although by default it is missing the
Note:This entity can be parented, although by default it is missing the parent keyvalue from Valve's FGDs. Note:Victims of this entity will see it as the Inflictor and will see the !activator as the Attacker.
Note:Victims of this entity will see it as the Inflictor and will see the !activator as the Attacker.Flags
- Start Active : [1] !FGD
- Bypass ÜberCharge : [2] (only in  ) !FGD ) !FGD
- Allows the damage to bypass Medic's  ÜberCharge. ÜberCharge.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Target Entity (DamageTarget) <string>
- If specified, only this DamageTarget will take damage. Otherwise, all entities within the Radius will take damage. Evaluated when used. !activator accepted.
- Radius (DamageRadius) <float>
- All entities within this radius of this entity will take damage. If a Target Entityis specified, only that entity will take damage.
 Warning:Radius values ≤ 0 are changed to 128 automatically when this entity spawns.
Warning:Radius values ≤ 0 are changed to 128 automatically when this entity spawns.- Damage (Damage) <integer>
- Damage done to all affected entities each time this entity fires.
 Note:The specified amount of damage will be halved. Consider multiplying your amount of damage by 2 and using it as the Value.
Note:The specified amount of damage will be halved. Consider multiplying your amount of damage by 2 and using it as the Value. Note:
Note: It is possible that unlike trigger_hurt, point_hurt does not halve the damage for the reason of the damage being the damage per second, as you can manually edit the amount of time between triggers. Damage type CRUSH should ignore armor, and GENERIC is known to halve when dealing with armored players.
 It is possible that unlike trigger_hurt, point_hurt does not halve the damage for the reason of the damage being the damage per second, as you can manually edit the amount of time between triggers. Damage type CRUSH should ignore armor, and GENERIC is known to halve when dealing with armored players. Warning:Damage values ≤ 0 are changed to +2 automatically when this entity spawns.
Warning:Damage values ≤ 0 are changed to +2 automatically when this entity spawns.A workaround might be to change it later using AddOutput. (in
 ) But there are also games where negative Damage values of this entity result in no damage anyway. (in
) But there are also games where negative Damage values of this entity result in no damage anyway. (in  )
)- Delay (DamageDelay) <float>
- Delay between refires, in seconds.
 Warning:Delay values ≤ 0 are changed to 0.1 automatically when this entity spawns.
Warning:Delay values ≤ 0 are changed to 0.1 automatically when this entity spawns.- Damage types (DamageType) <choices>
- Type of damage to inflict on entities damaged.
- 0: GENERIC
- 1: CRUSH
- 2: BULLET
- 4: SLASH
- 8: BURN
- 16: VEHICLE / (TRAIN  ) )
- 32: FALL
- 64: BLAST
- 128: CLUB
- 256: SHOCK (Spawns particle with missing texture in  ) )
- 512: SONIC
- 1024: ENERGYBEAM
- 16384: DROWN
- 32768: PARALYSE
- 65536: NERVEGAS / (SAWBLADE  ) )
- 131072: POISON
- 262144: RADIATION
- 524288: DROWNRECOVER
- 1048576: ACID / (CRITICAL  ) )
- 2097152: SLOWBURN
- 4194304: REMOVENORAGDOLL
- 16777216: FULLGIB (in   ) )
 Note:Some damage types are named incorrectly by default in base.fgd, instead using their GoldSource names.
Note:Some damage types are named incorrectly by default in base.fgd, instead using their GoldSource names.
- VEHICLEis named- FREEZE
- ACIDis named- CHEMICAL
- REMOVENORAGDOLLis named- SLOWFREEZE
 Tip:
Tip: Team Fortress 2: Fancy damage effects such as decapitation, disintegration or ice/gold statues on death can be applied via VScript. See TakeDamageCustom function or the trigger example.
 Team Fortress 2: Fancy damage effects such as decapitation, disintegration or ice/gold statues on death can be applied via VScript. See TakeDamageCustom function or the trigger example.
Inputs
- 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.
























