NAVIGATION
Wiki » Reference » func_ entities » func_damagable
ARTICLE
func_damagable
This is an entity on id Tech 4 engines, present on DOOM 3, Quake 4 and Prey. Below you can find its spawnflags, keys and editor settings for each game that defines it.
DOOM 3
Breakable object. Fires targets and changes shader parms and model when damaged.
When damaged, shader parm 3 is set to the current time, and shader parm 7 is set
to either a random number from 1 to 'numstates', or to the value in 'forcestate' if
it is non-zero. If you want an invisible texture, use common/collision. Make sure
you func_remove it after it is shot if it's blocking an entrance.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| broken | model | if set, switch to this model when the entity is broken. | |
| health | var | 5 | amount of damage to recieve before becoming damaged. |
| target | var | targets to trigger when damaged. | |
| count | var | 1 | number of times to allow to be triggered, (-1 means infinite). |
| cycle | bool | 0 | if set to 1, entity will cycle through each shader state when damaged, reseting to 0 when it exceeds numstates. |
| numstates | var | 1 | the number of different shader states. Shader parm 7 will be set to a value between 1 and this value. |
| forcestate | var | 0 | if non-zero, the state to force the shader into when damaged. |
| wait | var | 0.1 | Seconds between triggerings. |
Editor
| Property | Value |
|---|---|
| Type | brush entity |
| Spawn class | idDamagable -> idEntity -> idClass |
| Color | 0 .5 .8 |
Script events
| Event | Declared by |
|---|---|
| activate | idDamagable |
| 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
Breakable object. Fires targets and changes shader parms and model when damaged.
When damaged, shader parm 3 is set to the current time, and shader parm 7 is set
to either a random number from 1 to 'numstates', or to the value in 'forcestate' if
it is non-zero. If you want an invisible texture, use common/collision. Make sure
you func_remove it after it is shot if it's blocking an entrance.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| broken | model | if set, switch to this model when the entity is broken. | |
| health | var | 5 | amount of damage to recieve before becoming damaged. |
| target | var | targets to trigger when damaged. | |
| count | var | 1 | number of times to allow to be triggered, (-1 means infinite). |
| cycle | bool | 0 | if set to 1, entity will cycle through each shader state when damaged, reseting to 0 when it exceeds numstates. |
| numstates | var | 1 | the number of different shader states. Shader parm 7 will be set to a value between 1 and this value. |
| forcestate | var | 0 | if non-zero, the state to force the shader into when damaged. |
| wait | var | 0.1 | Seconds between triggerings. |
| damage_filter | var | damage filter name that must exist in a damage def for this damageable to be damaged. The keyword in the damage def will be 'filter_<value>' and it should be set to 1 | |
| nosplash | var | must be damaged directly, splash damage will not hit it |
Editor
| Property | Value |
|---|---|
| Type | brush entity |
| Spawn class | idDamagable -> idEntity -> idClass |
| Color | 0 .5 .8 |
Script events
| Event | Declared by |
|---|---|
| activate | idDamagable |
| 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
Breakable object. Fires targets and changes shader parms and model when damaged.
When damaged, shader parm 3 is set to the current time, and shader parm 7 is set
to either a random number from 1 to 'numstates', or to the value in 'forcestate' if
it is non-zero. If you want an invisible texture, use common/collision. Make sure
you func_remove it after it is shot if it's blocking an entrance.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| broken | model | if set, switch to this model when the entity is broken. | |
| health | var | 5 | amount of damage to recieve before becoming damaged. |
| target | var | targets to trigger when damaged. | |
| count | var | 1 | number of times to allow to be triggered, (-1 means infinite). |
| cycle | bool | 0 | if set to 1, entity will cycle through each shader state when damaged, reseting to 0 when it exceeds numstates. |
| numstates | var | 1 | the number of different shader states. Shader parm 7 will be set to a value between 1 and this value. |
| forcestate | var | 0 | if non-zero, the state to force the shader into when damaged. |
| wait | var | 0.1 | Seconds between triggerings. |
| nonSolidWhenBroken | bool | 0 | If set, becomes non-solid when broken |
Editor
| Property | Value |
|---|---|
| Type | brush entity |
| Spawn class | idDamagable -> idEntity -> idClass |
| Color | 0.3 0.3 0.75 |
Script events
| Event | Declared by |
|---|---|
| activate | idDamagable |
| 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 |
Last changed Sep 21, 2026
