Common keys
Many entities share these keys and flags. Each entity page links to the sections here and names the keys it has.
Naming and triggering
An entity page shows Name, Target, Delay before trigger, KillTarget and Master in its own key table only where the key does something of its own on that entity.
targetnameNames the entity, so other entities can trigger it, target it or read it by this name. Several entities can share one name.
targetNames the entities this entity triggers. A name that ends in *, such as room1_*, triggers every other entity whose name starts that way. !activator triggers the entity that started the chain of triggers, as Entity triggering explains.
On a monster, Target names the path_corner the monster walks to first, and the monster then follows the path. A monster that has a Name waits where it is until you trigger it.
delaySets how many seconds the entity waits after it is triggered before it fires its targets.
0killtargetNames the entities this entity removes from the map when it fires. A name that ends in * removes every other entity whose name starts that way. !activator removes the entity that started the chain, and !caller removes this entity itself. It never removes a player.
masterNames a master, such as a multisource or an env_state. While the master is off, this entity is locked and does nothing. A ~ in front of the name turns the master around.
globalnameSets a name under which the game keeps the state of the entity in the global state table while the map runs. An entity with a global name that was removed, such as a broken func_breakable, stays removed for the rest of the map. Each map starts with an empty table, so the entity is back the next time the map is played.
Position
anglesSets the direction the entity faces, as three angles in degrees: the pitch, the yaw and the roll. A yaw of 0 faces east and 90 faces north, and a pitch of -90 faces straight up. You can also type any other angles.
- Default (0 0 0) - Faces east
- Up (-90 0 0) - Faces straight up
- Down (90 0 0) - Faces straight down
- North (0 90 0) - Faces north
- West (0 180 0) - Faces west
- South (0 -90 0) - Faces south
Default (0 0 0)Appearance
These keys set how the engine draws the entity. No entity offers Half-Life's flag 2048 (Not in Deathmatch): the engine removes every entity that has it when an SBO server loads the map.
renderfxSets an effect that the engine adds to how the entity is drawn. Most of them change how visible it is over time, and Glow Shell (19) draws a shell in the FX Color around a model.The 19 choices
Normal (0)rendermodeSets how the engine draws the entity. Every mode except Normal uses FX Amount for how visible it is.
- Normal (0) - The entity is drawn as it is, and FX Amount has no effect
- Color (1) - The entity is drawn in the FX Color
- Texture (2) - The entity is see-through, as much as FX Amount says
- Glow (3) - A sprite glows and stays the same size on the screen at any distance
- Solid (4) - The blue parts of a
{texture are cut out, and FX Amount sets how visible the rest is - Additive (5) - The entity is added to what is behind it, so it glows, and black is invisible
Normal (0)renderamtSets how visible the entity is when its Render Mode isn't Normal, from 0 for invisible up to 255 for fully visible. For the modes Glow and Additive, it sets the brightness.
rendercolorSets the color for the Render Mode Color, which draws the entity in this color, and for the Render FX Glow Shell. It also tints sprites.
0 0 0effectsSets an engine effect on the entity that every player sees, such as a light or a muzzle flash. Nodraw (128) hides the entity, but the entity stays solid.The 9 choices
None (empty)Draws the model at this many times its size, so 0.5 is half size and 2 is twice the size. Its hitboxes and its solid and pick-up box grow or shrink with it, and so do the attack and follow distances of a monster. But a monster still walks with its normal-size box, as Model scale explains.
If you leave this key empty or set 1, the model has its normal size.
bodySets which body group combination of the model shows, as a number, where 0 is the first.
skinSets which skin of the model shows, for models that have several skins, where 0 is the first.
Compiler keys
The map compiler reads these keys when it builds the map, and the game doesn't use them.
Brush entities
zhlt_usemodelNames a brush entity whose brushes this entity uses as its own model.
zhlt_copylightNames an entity this entity copies its lighting from.
light_originNames an entity, such as an info_target, and the compiler lights this brush entity as if it stood there.
zhlt_noclipWith Noclip, the map compiler builds the entity without the collision hulls of players and monsters, so they pass through it.
- Solid (default) (0)
- Noclip (1)
Solid (default) (0)zhlt_lightflagsSets how the entity takes part in the lighting.
- Default (0)
- Embedded Fix (1) - Only ZHLT reads this choice, and it lights faces that are inside other brushes. Other compilers treat it as Default
- Opaque (blocks light) (2) - The entity casts shadows like a wall
- Opaque + Embedded fix (3) - The entity casts shadows like a wall. Only ZHLT also lights its faces that are inside other brushes, and other compilers treat it as Opaque
- Opaque + Concave Fix (6) - The entity casts shadows like a wall. Only ZHLT also smooths the light on its curved faces, and other compilers treat it as Opaque
Default (0)zhlt_invisibleWith Invisible, the compiler leaves the faces of the entity out of the drawn map, but the entity stays solid.
- Visible (default) (0)
- Invisible (1)
Visible (default) (0)zhlt_customshadowSets how much light passes through the entity when its ZHLT Lightflags make it opaque, from 0 for none up to 1 for all of it. Use one number, or R G B for a tinted shadow.
If you leave this key empty, the entity blocks all the light.
zhlt_embedlightmapWith Yes, the compiler bakes the light and the shadows into the texture of a see-through entity, so the entity is lit like the world and not drawn at full brightness.
- No (default) (0)
- Yes (1)
No (default) (0)zhlt_embedlightmapresolutionWith ZHLT Embed Light Map, sets how many texture pixels share one light sample: 1, 2, 4, 8 or 16. A lower value is sharper.
4_minlightSets the lowest light on the faces of the entity, from 0.0 for no limit up to 1.0 for fully lit.
Lights
_fadeSets how fast the light fades with distance, where 1 is normal.
1.0_falloffSets how the light fades with distance. Only ZHLT 3.4 reads this key, and VHLT, SDHLT, ReSDHLT and hltools ignore it.
- Default (0)
- Inverse Linear (1)
- Inverse Square (2)
Default (0)Monsters
Not every monster has all of these keys and flags. The page of each monster names the ones it has.
Class and side
classifySets the class of the monster, which decides who it fights and who fights it, as Monster classes shows. A monster_osprey gives its own Classification to the Feds it drops.The 14 choices
If you leave this key empty, the monster keeps its own side.
is_player_allySets whether the monster changes sides, as Monster classes explains. Enemies of the players become their allies, allies become enemies, and the Feds of an Osprey change sides with it. If you also set a Classification, that decides its side instead. A Cop only follows a player on the use key if it is an ally and its Followage policy is Regular.
- No (0)
- Yes (1)
No (0)prisonertoNames a class, and the monster and the monsters of that class ignore each other, so they never fight. The classes are on the Monster classes page.The 14 choices
None (0)ignoredbyNames a class whose monsters ignore the monster. The monster still sees them and can attack them. The classes are on the Monster classes page.The 14 choices
None (0)Flags
16PrisonerThe monster sees nobody and no monster sees it, so it attacks no one and other monsters leave it alone. Players can still hurt it
Health
Sets whether damage can kill the monster. A trigger_changevalue can change it while the map runs.
- No (0) - The monster dies as usual
- Yes (1) - Damage never takes the monster below 1 health, so it can't die
No (0)Sight, sound and movement
field_of_viewSets how wide the monster sees, from Full, which sees all around, to Ultra narrow. Hunters, the Cyborg and the Cyber Minotaur ignore it, because they see everything within 12000 units, even through walls.
- Default (0)
- Full (-1)
- Wide (humans) (-0.7)
- Broad (-0.2)
- Average (0.2)
- Tunnel (0.5)
- Narrow (0.7)
- Ultra narrow (0.9)
If you leave this key empty or set 0, the monster keeps its own field of view.
soundmaskSets which sounds the monster reacts to.
- No sounds (deaf) (-1) - The monster is deaf
- Default for monster (0) - The monster reacts to the sounds it normally does
- Only Danger (32)
- Only Combat and Danger (33)
- Combat, Danger and Player (37)
- Every sound and scent (127)
- Default, except Player (1028) - The monster reacts to its normal sounds, but not to players
If you leave this key empty, the monster reacts to the sounds it normally does.
freeroamSets whether the monster walks around from node to node while it is idle, which needs info_node entities in the map.
- Map default (0) - The
worldspawnkey Monsters freeroam decides - Never (1) - The monster never walks around by itself
- Always (2) - The monster always walks around while it is idle
Map default (0)active_alertSets what the monster does after a fight, which needs info_node entities in the map.
- Default (no) (0) - The monster stands still after a fight
- Never (1) - The monster stands still after a fight
- Always (2) - The monster goes to gunfire it hears and walks around once, instead of standing still
Default (no) (0)Flags
1WaitTillSeenThe monster ignores a player until that player looks toward it
2GagThe monster makes no idle sounds and doesn't chat
4MonsterClipfunc_monsterclip brushes block the monster
1048576Act out of PVSThe monster looks, listens and acts even when no player is near it. Without this flag, a monster with no player near waits idle, but hunters, the Cyborg and the Cyber Minotaur always act
Triggers
trigger_on_deathFires once when the monster is killed, with the killer as the activator.
TriggerTargetNames the entities that fire once, the first time Trigger Condition or Trigger Alternative Condition happens, with the monster itself as the activator.
TriggerConditionSets the event that fires TriggerTarget.The 12 choices
No Trigger (0)TriggerAltConditionSets a second event that fires TriggerTarget. The first of the two events to happen fires it, and only once.The 12 choices
No Trigger (0)Blood, gibs and corpse
bloodcolorSets the color of the monster's blood, its blood decals and its gibs.
- Don't bleed (-1) - The monster doesn't bleed
- Default (0) - The monster's own blood color
- Human (red) (247)
- Alien (yellow) (195)
- Dark red (70)
- Bright yellow (192)
- Green (244)
Default (0)gibmodelSets a model for the gibs of the monster. When the monster is gibbed, it throws 4 gibs of this model, each with a random submodel.
If you leave this key empty, the monster throws its normal gibs.
gib_policySets whether a kill gibs the monster. A kill that always gibs or never gibs, such as a crush, still decides by itself.
- Default (0) - The monster gibs when the kill takes its health far below 0
- Prefer gibbing (1) - The monster gibs on every kill that doesn't forbid it
- Prefer not to gib (2) - The monster only gibs on a kill that always gibs
Default (0)Flags
512Fade CorpseThe monster's corpse fades out after it dies, instead of staying
65536Non-solid corpseThe monster's corpse isn't solid, so players, monsters, doors and shots pass through it
Talking monsters
monster_barney and monster_scientist also have these keys and flags.
UseSentenceSets the sentence group the monster says when it starts following a player.
If you leave this key empty, it says its own group, which is SC_OK for a Scientist and BA_OK for a Cop.
UnUseSentenceSets the sentence group the monster says when it stops following a player.
If you leave this key empty, it says its own group, which is SC_WAIT for a Scientist and BA_WAIT for a Cop.
voicepitchSets the pitch of the monster's voice. 100 is the normal pitch, a higher value is higher and a lower value is deeper.
If you leave this key empty or set 0, the monster keeps its own voice pitch.
0followage_policySets who can make the monster follow a player. A Cop only ever follows a player if it is an ally.
- Regular (0) - The monster follows a player who presses the use key on it, and an ally Cop does too
- Scripted only (1) - Only a
scripted_followingcan make the monster follow someone - Scripted only, decline use (2) - Only a
scripted_followingcan make the monster follow someone, and it says its Refusal Sentence when a player presses the use key on it
If you leave this key empty, Scientists follow a player who presses the use key on them, and Cops never follow.
followfailpolicySets what the monster does when it can't reach the player it follows. With a Followage policy of "Scripted only" or "Scripted only, decline use", the choice "Stop following" works like "Keep trying".
- Default (0) - Scientists stop following, and other monsters keep trying
- Keep trying (1) - The monster keeps trying to reach the player
- Stop following (2) - The monster stops following
- Run to the nearest spot (3) - The monster runs to the reachable spot nearest the player
Default (0)suspiciousSets whether the monster dislikes players from the start.
- No (0) - The monster has its normal attitude to players
- Yes (1) - The monster dislikes players from the start
No (0)toleranceSets how many hits from a player make the monster hostile to them.
- Default (0) - A Cop has a Low tolerance and a Scientist has none
- Zero: any hit (1) - Any hit makes it hostile
- Low: a direct hit or a second hit (2) - A direct hit, or a second hit of any kind, makes it hostile
- Average: the third hit (3) - The third hit makes it hostile
- High: the fourth hit, each within 4 seconds of the one before (4) - The fourth hit makes it hostile, if each hit comes within 4 seconds of the one before
- Absolute: never (5) - Hits never make it hostile
- Absolute, don't alert friends (6) - Hits never make it hostile, and its friends don't turn hostile when it dies
Default (0)alert_friendsSets whether killing the monster makes its friends who see it hostile to the killer.
- Default (0) - Its friends always turn hostile
- Always (1) - Its friends always turn hostile
- If not in combat (2) - Its friends only turn hostile if the monster wasn't fighting
- Never (3) - Its friends never turn hostile
Default (0)RefusalSentenceSets the sentence group the monster says when it refuses to follow a player. null makes it say nothing.
SpeakAsMakes the monster speak the lines of another voice, such as BA for a Cop or SC for a Scientist. Lines that the voice doesn't have stay silent.
Flags
256Pre-DisasterA Scientist or a Cop refuses to follow a player who presses the use key on it. A Scientist uses its talk from before the disaster, and a Cop says almost nothing while idle
524288Ignore move away requestsA player who walks into the monster doesn't make it step aside

