trigger_hurt
This is an entity, present on Quake, Quake II, Quake III Arena, RTCW Single Player, RTCW Multiplayer, Enemy Territory, DOOM 3, Quake 4 and Prey. Below you can find its spawnflags, keys and editor settings for each game that defines it.
Quake
Any object touching this will be hurt set dmg to damage amount default dmg = 5
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
Quake II
Any entity that touches this will be hurt.
It does dmg points of damage each server frame
Spawnflags
| Flag |
Bit |
Description |
| START_OFF |
1 |
|
| TOGGLE |
2 |
|
| SILENT |
4 |
supresses playing the sound |
| NO_PROTECTION |
8 |
*nothing* stops the damage |
| SLOW |
16 |
changes the damage rate to once per second |
Keys
| Key |
Description |
| dmg |
default 5 (whole numbers only) |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_hurt |
Quake III Arena
Any entity that touches this will be hurt. It does dmg points of damage each server frame Targeting the trigger will toggle its on / off state.
Spawnflags
| Flag |
Bit |
Description |
| START_OFF |
1 |
|
| SILENT |
4 |
supresses playing the sound |
| NO_PROTECTION |
8 |
*nothing* stops the damage |
| SLOW |
16 |
changes the damage rate to once per second |
Keys
| Key |
Description |
| dmg |
default 5 (whole numbers only) |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_hurt |
RTCW Single Player
Any entity that touches this will be hurt. It does dmg points of damage each server frame Targeting the trigger will toggle its on / off state.
default is zero
the entity must be used first before it will count down its life
Spawnflags
| Flag |
Bit |
Description |
| START_OFF |
1 |
|
| PLAYER_ONLY |
2 |
- only damages the player |
| SILENT |
4 |
- supresses playing the sound |
| NO_PROTECTION |
8 |
- *nothing* stops the damage |
| SLOW |
16 |
- changes the damage rate to once per second |
| ONCE |
32 |
|
Keys
| Key |
Description |
| dmg |
default 5 (whole numbers only) |
| life |
time this brush will exist if value is zero will live for ever ei 0.5 sec 2.sec |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_hurt |
RTCW Multiplayer
Any entity that touches this will be hurt. It does dmg points of damage each server frame Targeting the trigger will toggle its on / off state.
default is zero
the entity must be used first before it will count down its life
Spawnflags
| Flag |
Bit |
Description |
| START_OFF |
1 |
|
| SILENT |
4 |
supresses playing the sound |
| NO_PROTECTION |
8 |
*nothing* stops the damage |
| SLOW |
16 |
changes the damage rate to once per second |
| ONCE |
32 |
|
Keys
| Key |
Description |
| dmg |
default 5 (whole numbers only) |
| life |
time this brush will exist if value is zero will live for ever ei 0.5 sec 2.sec |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_hurt |
Enemy Territory
Any entity that touches this will be hurt. It does dmg points of damage each server frame Targeting the trigger will toggle its on / off state.
default is zero
the entity must be used first before it will count down its life
Spawnflags
| Flag |
Bit |
Description |
| START_OFF |
1 |
|
| SILENT |
4 |
supresses playing the sound |
| NO_PROTECTION |
8 |
*nothing* stops the damage |
| SLOW |
16 |
changes the damage rate to once per second |
| ONCE |
32 |
|
Keys
| Key |
Description |
| dmg |
default 5 (whole numbers only) |
| life |
time this brush will exist if value is zero will live for ever ei 0.5 sec 2.sec |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_hurt |
DOOM 3
Damages the activator Can be turned on or off by other triggers.
Keys
| Key |
Type |
Default |
Description |
| on |
var |
1 |
whether or not it is active. |
| delay |
var |
|
delay between damage in seconds defaults to 1 |
| def_damage |
var |
damage_painTrigger |
damage def to use, common ones are damage_painTrigger, damage_triggerhurt_100, damage_triggerhurt_1000 |
Editor
| Property |
Value |
| Type |
brush entity |
| Spawn class |
idTrigger_Hurt -> idTrigger -> idEntity -> idClass |
| Color |
0.8 0.1 0.2 |
Script events
| Event |
Declared by |
| activate |
idTrigger_Hurt |
| enable |
idTrigger |
| disable |
idTrigger |
| getName |
idEntity |
| setName |
idEntity |
| activateTargets |
idEntity |
| numTargets |
idEntity |
| getTarget |
idEntity |
| randomTarget |
idEntity |
| bindToJoint |
idEntity |
| removeBinds |
idEntity |
| bind |
idEntity |
| bindPosition |
idEntity |
| unbind |
idEntity |
| setOwner |
idEntity |
| setModel |
idEntity |
| setSkin |
idEntity |
| getShaderParm |
idEntity |
| setShaderParm |
idEntity |
| setShaderParms |
idEntity |
| setColor |
idEntity |
| getColor |
idEntity |
| isHidden |
idEntity |
| hide |
idEntity |
| show |
idEntity |
| cacheSoundShader |
idEntity |
| startSoundShader |
idEntity |
| startSound |
idEntity |
| stopSound |
idEntity |
| fadeSound |
idEntity |
| getWorldOrigin |
idEntity |
| setWorldOrigin |
idEntity |
| getOrigin |
idEntity |
| setOrigin |
idEntity |
| getAngles |
idEntity |
| setAngles |
idEntity |
| getLinearVelocity |
idEntity |
| setLinearVelocity |
idEntity |
| getAngularVelocity |
idEntity |
| setAngularVelocity |
idEntity |
| getSize |
idEntity |
| setSize |
idEntity |
| getMins |
idEntity |
| getMaxs |
idEntity |
| touches |
idEntity |
| setGuiParm |
idEntity |
| setGuiFloat |
idEntity |
| getNextKey |
idEntity |
| setKey |
idEntity |
| getKey |
idEntity |
| getIntKey |
idEntity |
| getFloatKey |
idEntity |
| getVectorKey |
idEntity |
| getEntityKey |
idEntity |
| restorePosition |
idEntity |
| distanceTo |
idEntity |
| distanceToPoint |
idEntity |
| startFx |
idEntity |
| waitFrame |
idEntity |
| wait |
idEntity |
| hasFunction |
idEntity |
| callFunction |
idEntity |
| setNeverDormant |
idEntity |
| setGui |
idEntity |
| precacheGui |
idEntity |
| getGuiParm |
idEntity |
| getGuiParmFloat |
idEntity |
| guiNamedEvent |
idEntity |
| remove |
idClass |
 |
Quake 4
Damages the activator Can be turned on or off by other triggers.
Keys
| Key |
Type |
Default |
Description |
| on |
var |
1 |
whether or not it is active. |
| def_damage |
var |
damage_painTrigger |
damage def to use, common ones are damage_painTrigger, damage_triggerhurt_100, damage_triggerhurt_1000 |
| playerOnly |
var |
|
set to 1 and only the player will get hurt. default is 0. |
Editor
| Property |
Value |
| Type |
brush entity |
| Spawn class |
idTrigger_Hurt -> idTrigger -> idEntity -> idClass |
| Color |
0.8 0.1 0.2 |
Script events
| Event |
Declared by |
| activate |
idTrigger_Hurt |
| enable |
idTrigger |
| disable |
idTrigger |
| getName |
idEntity |
| setName |
idEntity |
| activateTargets |
idEntity |
| numTargets |
idEntity |
| getTarget |
idEntity |
| randomTarget |
idEntity |
| bindToJoint |
idEntity |
| removeBinds |
idEntity |
| bind |
idEntity |
| bindPosition |
idEntity |
| unbind |
idEntity |
| setOwner |
idEntity |
| setModel |
idEntity |
| setSkin |
idEntity |
| getShaderParm |
idEntity |
| setShaderParm |
idEntity |
| setShaderParms |
idEntity |
| setColor |
idEntity |
| getColor |
idEntity |
| isHidden |
idEntity |
| hide |
idEntity |
| show |
idEntity |
| cacheSoundShader |
idEntity |
| startSoundShader |
idEntity |
| startSound |
idEntity |
| stopSound |
idEntity |
| fadeSound |
idEntity |
| getWorldOrigin |
idEntity |
| setWorldOrigin |
idEntity |
| getOrigin |
idEntity |
| setOrigin |
idEntity |
| getAngles |
idEntity |
| setAngles |
idEntity |
| getLinearVelocity |
idEntity |
| setLinearVelocity |
idEntity |
| getAngularVelocity |
idEntity |
| setAngularVelocity |
idEntity |
| getSize |
idEntity |
| setSize |
idEntity |
| getMins |
idEntity |
| getMaxs |
idEntity |
| touches |
idEntity |
| setGuiParm |
idEntity |
| setGuiFloat |
idEntity |
| getNextKey |
idEntity |
| setKey |
idEntity |
| getKey |
idEntity |
| getIntKey |
idEntity |
| getFloatKey |
idEntity |
| getVectorKey |
idEntity |
| getEntityKey |
idEntity |
| restorePosition |
idEntity |
| distanceTo |
idEntity |
| distanceToPoint |
idEntity |
| startFx |
idEntity |
| waitFrame |
idEntity |
| wait |
idEntity |
| hasFunction |
idEntity |
| callFunction |
idEntity |
| setNeverDormant |
idEntity |
| clearSkin |
idEntity |
| setContents |
idEntity |
| getLastBlocker |
idEntity |
| playEffect |
idEntity |
| stopEffect |
idEntity |
| stopAllEffects |
idEntity |
| getHealth |
idEntity |
| hideSurface |
idEntity |
| showSurface |
idEntity |
| guiEvent |
idEntity |
| playbackCallback |
idEntity |
| getBindMaster |
idEntity |
| applyImpulse |
idEntity |
| removeNullTargets |
idEntity |
| isA |
idEntity |
| isSameTypeAs |
idEntity |
| matchPrefix |
idEntity |
| clearTargetList |
idEntity |
| appendTarget |
idEntity |
| removeTarget |
idEntity |
| setHealth |
idEntity |
| remove |
idClass |
 |
Prey
Damages the activator Can be turned on or off by other triggers.
Keys
| Key |
Type |
Default |
Description |
| def_damage |
var |
damage_painTrigger |
damage definition |
| apply_impulse |
var |
|
Set to 1 if a force opposing the objects motion should be applied. (Default: 0) |
| random |
var |
0 |
wait variance. trigger waits wait + or - random after firing targets before triggering again. |
| delay |
var |
0 |
seconds to wait before firing after triggered. |
| randomDelay |
var |
|
delay variance. trigger waits delay + or - random_delay before firing targets. |
| call |
var |
|
script function to call when triggered. |
| uncall |
var |
|
script function to call when untriggered |
| callRef |
var |
|
script function to call when triggered which takes trigger/entity reference as parm. |
| uncallRef |
var |
|
script function to call when untriggered which takes trigger/entity reference as parm. |
| callRefActivator |
var |
|
script function to call when triggered which takes trigger/entity and activator/entity reference as parms. |
| uncallRefActivator |
var |
|
script function to call when untriggered which takes trigger/entity and activator/entity reference as parms. |
| uncalldelay |
var |
|
seconds between checks to see if uncall has arrived |
| requires |
var |
|
item required in players inventory to fire. |
| removeItem |
var |
|
if above item is removed from inventory when used. |
| anyTouch |
var |
0 |
anything can touch it, players, mobs. |
| noTouch |
var |
0 |
cannot be touched, must be triggered. |
| triggerFirst |
var |
|
dont activate until triggered. |
| noClient |
var |
0 |
can't be touched by players, but can be touched by other entities (func_activators, for instance). |
| refire |
var |
1 |
seconds to wait before re-firing the trigger (as long as you are still in it) (default -1 = off) |
| triggerBehavior |
var |
|
describes what can trigger the trigger. 0 is player only, 1 is friendlies only, 2 is monsters only, 3 is player, monsters, and friendlies, 4 is trigger_classes. Default: 0. players, monsters, characters, and func_activtors can trigger triggers |
| enabled |
bool |
|
initially enabled (default 1) |
| untrigger |
var |
|
when untriggered, resend the trigger message to targets |
| isSimpleBox |
bool |
|
simple boxes are cheaper and use axis-aligned bounds for checks (1) |
| noVehicles |
bool |
|
disallows trigger from player vehicles (0) |
Editor
| Property |
Value |
| Type |
brush entity |
| Spawn class |
hhTriggerPain -> hhTrigger -> idEntity -> idClass |
| Inherits |
trigger_multiple |
| Color |
0.75 0.0 1.0 |
Script events
| Event |
Declared by |
| activate |
hhTriggerPain |
| damageBox |
hhTriggerPain |
| enable |
hhTrigger |
| disable |
hhTrigger |
| deactivate |
hhTrigger |
| moveToJoint |
idEntity |
| moveToJointWeighted |
idEntity |
| moveJointToJoint |
idEntity |
| moveJointToJointOffset |
idEntity |
| setSkin |
idEntity |
| spawnDebris |
idEntity |
| delayDamageEntity |
idEntity |
| dispose |
idEntity |
| setDeformation |
idEntity |
| setFloatKey |
idEntity |
| setVectorKey |
idEntity |
| setEntityKey |
idEntity |
| playerCanSee |
idEntity |
| setContents |
idEntity |
| setClipmask |
idEntity |
| setPortalCollision |
idEntity |
| killbox |
idEntity |
| getName |
idEntity |
| setName |
idEntity |
| findTargets |
idEntity |
| activateTargets |
idEntity |
| numTargets |
idEntity |
| getTarget |
idEntity |
| randomTarget |
idEntity |
| bindToJoint |
idEntity |
| removeBinds |
idEntity |
| bind |
idEntity |
| bindPosition |
idEntity |
| unbind |
idEntity |
| setOwner |
idEntity |
| setModel |
idEntity |
| getShaderParm |
idEntity |
| setShaderParm |
idEntity |
| setShaderParms |
idEntity |
| setColor |
idEntity |
| getColor |
idEntity |
| isHidden |
idEntity |
| hide |
idEntity |
| show |
idEntity |
| cacheSoundShader |
idEntity |
| startSoundShader |
idEntity |
| startSound |
idEntity |
| stopSound |
idEntity |
| fadeSound |
idEntity |
| getWorldOrigin |
idEntity |
| setWorldOrigin |
idEntity |
| getOrigin |
idEntity |
| setOrigin |
idEntity |
| getAngles |
idEntity |
| setAngles |
idEntity |
| getLinearVelocity |
idEntity |
| setLinearVelocity |
idEntity |
| getAngularVelocity |
idEntity |
| setAngularVelocity |
idEntity |
| getSize |
idEntity |
| setSize |
idEntity |
| getMins |
idEntity |
| getMaxs |
idEntity |
| touches |
idEntity |
| setGuiParm |
idEntity |
| setGuiFloat |
idEntity |
| getNextKey |
idEntity |
| setKey |
idEntity |
| getKey |
idEntity |
| getIntKey |
idEntity |
| getFloatKey |
idEntity |
| getVectorKey |
idEntity |
| getEntityKey |
idEntity |
| restorePosition |
idEntity |
| updateCameraTarget |
idEntity |
| distanceTo |
idEntity |
| distanceToPoint |
idEntity |
| startFx |
idEntity |
| waitFrame |
idEntity |
| wait |
idEntity |
| hasFunction |
idEntity |
| callFunction |
idEntity |
| setNeverDormant |
idEntity |
| playRumble |
idEntity |
| stopRumble |
idEntity |
| remove |
idClass |