item_health
This is an entity, present on Quake, Quake II, Quake III Arena, RTCW Single Player, RTCW Multiplayer, Enemy Territory and Quake 4. Below you can find its spawnflags, keys and editor settings for each game that defines it.
Quake
Health box. Normally gives 25 points. Rotten box heals 5-10 points,
rot you down to your maximum health limit, one point per second.
Spawnflags
| Flag |
Bit |
Description |
| rotten |
1 |
|
| megahealth |
2 |
will add 100 health, then |
Editor
| Property |
Value |
| Type |
point entity |
| Min |
0 0 0 |
| Max |
32 32 32 |
| Color |
.3 .3 1 |
Quake II
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-16 -16 -16 |
| Max |
16 16 16 |
| Color |
.3 .3 1 |
| Spawn function |
SP_item_health |
Quake III Arena
Spawnflags
| Flag |
Bit |
Description |
| suspended |
1 |
|
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-16 -16 -16 |
| Max |
16 16 16 |
| Color |
.3 .3 1 |
Item
| Property |
Value |
| pickup_sound |
sound/items/n_health.wav |
| world_model |
models/powerups/health/medium_cross.md3, models/powerups/health/medium_sphere.md3 |
| icon |
icons/iconh_yellow |
| pickup_name |
25 Health |
| quantity |
25 |
| giType |
IT_HEALTH |
RTCW Single Player
-------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- model="models/powerups/health/health_m.md3"
Spawnflags
| Flag |
Bit |
Description |
| SUSPENDED |
1 |
|
| SPIN |
2 |
|
| RESPAWN |
8 |
|
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-16 -16 -16 |
| Max |
16 16 16 |
| Color |
.3 .3 1 |
Item
| Property |
Value |
| pickup_sound |
sound/pickup/health/health_pickup.wav |
| world_model |
models/powerups/health/health_m.md3 |
| icon |
icons/iconh_med |
| pickup_name |
Med Health |
| quantity |
25 |
| giType |
IT_HEALTH |
| gameskillnumber |
25, 25, 15, 15 |
RTCW Multiplayer
-------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- model="models/powerups/health/health_m.md3"
Spawnflags
| Flag |
Bit |
Description |
| suspended |
1 |
|
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-16 -16 -16 |
| Max |
16 16 16 |
| Color |
.3 .3 1 |
Item
| Property |
Value |
| pickup_sound |
sound/multiplayer/health_pickup.wav |
| world_model |
models/multiplayer/medpack/medpack_pickup.md3models/powerups/health/health_m.md3 |
| icon |
icons/iconh_med |
| pickup_name |
Med Health |
| quantity |
25 |
| giType |
IT_HEALTH |
| gameskillnumber |
50, 25, 20, 15, 15 |
Enemy Territory
-------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- model="models/powerups/health/health_m.md3"
Spawnflags
| Flag |
Bit |
Description |
| suspended |
1 |
|
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-16 -16 -16 |
| Max |
16 16 16 |
| Color |
.3 .3 1 |
Item
| Property |
Value |
| pickup_sound |
sound/misc/health_pickup.wav |
| world_model |
sound/multiplayer/health_pickup.wav |
| icon |
models/multiplayer/medpack/medpack_pickup.md3models/powerups/health/health_m.md3 |
| quantity |
Med Health |
| giType |
20 |
| giTag |
IT_HEALTH |
Quake 4
Keys
| Key |
Type |
Default |
Description |
| inv_item |
bool |
2 |
if set to 1, show item acquisition gui when picked up |
| inv_name |
var |
|
name referenced for triggers etc.. requiring this to be in inventory to work |
| inv_icon |
var |
gfx/guis/hud/icons/item_health.tga |
icon name for hud graphics |
| inv_carry |
bool |
|
if set to 1, is carried as opposed to instant use |
| no_touch |
bool |
|
trigger to give to player instead of picking up |
| model |
model |
models/items/health/health.lwo |
visual model |
| snd_acquire |
snd |
items_ammo_default |
sound to make when acquired |
| triggersize |
var |
|
amount to expand the pickup trigger by |
| inv_id |
var |
|
id number as defined in guis/itemdefs.h |
| not_easy |
bool |
|
set to 1 and item will not spawn in easy mode |
| not_medium |
bool |
|
set to 1 and item will not spawn in medium mode |
| not_hard |
bool |
|
set to 1 and item will not spawn in hard mode |
Editor
| Property |
Value |
| Type |
point entity |
| Spawn class |
idItem -> idEntity -> idClass |
| Inherits |
item_default |
| Min |
-10 -10 0 |
| Max |
10 10 16 |
| Color |
.3 .3 1 |
Script events
| Event |
Declared by |
| activate |
idItem |
| respawn |
idItem |
| 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 |