trigger_hurt

A trigger_hurt is a brush trigger that hurts the players, monsters and objects inside it, or heals them if you give
it a negative damage.
Attributes
targetnameTriggering the entity turns it on or off, and Obey Trigger Mode sets how (see Trigger modes). Without a name, the trigger is always on.
targetThe trigger fires this each time it hurts or heals something, and passes that entity on as the activator. See Common keys.
delaySets how many seconds the trigger waits before it fires the Target.
0killtargetRemoves the entities with this name each time the trigger fires its targets, and it works without a Target too. The name can end in *. See Entity triggering for more details.
masterNames a master, and while the master is off, the trigger neither hurts anything nor fires its targets.
Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.
If you leave this key empty, the entity doesn't move with anything.
parentflagsKeeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.
0dmgSets how much damage the trigger deals per second. It deals half of the value every 0.5 seconds, and a negative value heals.
If you leave this key empty, it is 0 and the trigger deals no damage.
10The trigger never hurts an entity with this class name or this name, for example monster_scientist.
The damage never takes health below this value, so something that already has this much health or less takes no damage. Empty or 0 means no minimum.
Sets what happens to a body that this trigger kills.
- Default (0) - The body only breaks into gibs if the damage takes its health far below 0
- Always gib (1) - The body always breaks into gibs
- Never gib (2) - The body never breaks into gibs
Default (0)damagetypeSets the kind of damage. Some types show an icon on the player's HUD or change a rule, and the rest deal plain damage like GENERIC.The 21 choices
GENERIC (0)Flags
1Target OnceFires the Target and the KillTarget only the first time the trigger hurts something
2Start OffThe trigger starts off, and it needs a Name so you can turn it on
8No clientsHurts monsters and objects, but not players
16FireClientOnlyFires the Target only when the trigger hurts a player
32TouchClientOnlyHurts only players
Also hurts monsters that stand still inside the trigger, where normally it only hurts a monster while the monster moves. It doesn't work with the damage type RADIATION
Battery armor doesn't reduce the damage, and the player keeps it (see Armor)
Armor
A player can have two kinds of armor, but only one of them works against a trigger.
- Loadout armor - The armor skin, the cyber torso armor and the torso + skull armor (see Loadout). This armor only protects against hits on body parts, and a trigger doesn't hit a body part. So loadout armor never reduces trigger damage, and Ignore Armor makes no difference
- Battery armor - Armor from an
item_batteryor afunc_recharge, on a player with no loadout armor. It takes half of the damage, as in Half-Life, but not FALL or DROWN damage, and Ignore Armor turns it off for this trigger
Notes
- The trigger hurts every player inside it every 0.5 seconds
- A healing trigger doesn't heal dead players, and it doesn't raise health above the maximum
- With Affect non-moving NPC's, the trigger checks the box around the brush for monsters that stand still. If the brush isn't a box, a monster outside the brush can get hurt
- If you set both No clients and TouchClientOnly, the trigger hurts nothing
- In a rare case, a shot hits a player on a body part that their armor doesn't cover. Right after that, trigger damage to another player whose loadout armor covers that part is reduced, and that player hears a ricochet sound. Ignore Armor stops this
See also
trigger_hurt_remote- hurts or heals entities by name or class when you trigger it, without a brushgame_player_hurt- hurts or heals the player who triggers it- Masters and states - how a Master locks an entity
- Trigger modes - the use types On, Off, Toggle and Set
Changes since 1.38
- You can use the new keys Untouchable entity name, Minimum health threshold, Gibbing policy and Obey Trigger Mode
- You can use the new flags Affect non-moving NPC's, Full dmg every 0.5 seconds, Ignore Armor and No Camera Punch
- Fixed a healing
trigger_hurthealing dead players. It did not check that the player was alive. This was a bug in SBO 1.38 - Fixed the Master key doing nothing on
button_target,trigger_hurt,trigger_push,trigger_monsterjump,momentary_rot_buttonand a triggeredgame_player_equip. These entities never checked their Master, so they worked while locked - Fixed a
trigger_hurtwith only a Kill target not removing that target. It fired its targets only when it also had a Target


