Skip to main content

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.

KeyDescriptionDefault
Nametargetname

Names the entity, so other entities can trigger it, target it or read it by this name. Several entities can share one name.

Targettarget

Names 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.

Delay before triggerdelay

Sets how many seconds the entity waits after it is triggered before it fires its targets.

Default 0
KillTargetkilltarget

Names 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.

Mastermaster

Names 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.

Global Entity Nameglobalname

Sets 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​

KeyDescriptionDefault
Pitch Yaw Rollangles

Sets 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 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.

KeyDescriptionDefault
Render FXrenderfx

Sets 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)
  • Slow Pulse (1)
  • Fast Pulse (2)
  • Slow Wide Pulse (3)
  • Fast Wide Pulse (4)
  • Slow Strobe (9)
  • Fast Strobe (10)
  • Faster Strobe (11)
  • Slow Flicker (12)
  • Fast Flicker (13)
  • Slow Fade Away (5)
  • Fast Fade Away (6)
  • Slow Become Solid (7)
  • Fast Become Solid (8)
  • Constant Glow (14)
  • Distort (15)
  • Hologram (Distort + fade) (16)
  • Bulge Sideways (18)
  • Glow Shell (19)
Default Normal (0)
Render Moderendermode

Sets 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
Default Normal (0)
FX Amountrenderamt

Sets 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.

FX Colorrendercolor

Sets 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.

Default 0 0 0
Effectseffects

Sets 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)
  • Particle cloud (1)
  • Muzzle flash (2)
  • Bright flash (4)
  • Player flashlight glow (8)
  • Get light from ceiling (16)
  • Don't interpolate next frame (32)
  • Rocket flare (64)
  • Nodraw (128)
Default None (empty)
Model scaleSpirit of Half-Lifescale

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.

Bodybody

Sets which body group combination of the model shows, as a number, where 0 is the first.

Skinskin

Sets 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​

KeyDescriptionDefault
ZHLT Template Model Targetzhlt_usemodel

Names a brush entity whose brushes this entity uses as its own model.

ZHLT Copy Lighting From Targetzhlt_copylight

Names an entity this entity copies its lighting from.

Light Origin Targetlight_origin

Names an entity, such as an info_target, and the compiler lights this brush entity as if it stood there.

ZHLT Noclipzhlt_noclip

With 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)
Default Solid (default) (0)
ZHLT Lightflagszhlt_lightflags

Sets 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 Default (0)
ZHLT Invisiblezhlt_invisible

With Invisible, the compiler leaves the faces of the entity out of the drawn map, but the entity stays solid.

  • Visible (default) (0)
  • Invisible (1)
Default Visible (default) (0)
ZHLT Custom Shadowzhlt_customshadow

Sets 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 Embed Light Mapzhlt_embedlightmap

With 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)
Default No (default) (0)
ZHLT Embed Light Map Resolutionzhlt_embedlightmapresolution

With ZHLT Embed Light Map, sets how many texture pixels share one light sample: 1, 2, 4, 8 or 16. A lower value is sharper.

Default 4
Minimum Light Level_minlight

Sets the lowest light on the faces of the entity, from 0.0 for no limit up to 1.0 for fully lit.

Lights​

KeyDescriptionDefault
ZHLT Fade_fade

Sets how fast the light fades with distance, where 1 is normal.

Default 1.0
ZHLT Falloff_falloff

Sets 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 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​

KeyDescriptionDefault
Classificationclassify

Sets 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
  • None (-1) - It is on nobody's side, so nobody fights it and it fights nobody
  • Default (0) - It keeps its own side
  • Machine (1)
  • Human passive (3)
  • Human military (4)
  • Alien military (5)
  • Alien passive (6)
  • Alien monster (7)
  • Alien prey (8)
  • Alien predator (9)
  • Insect (10)
  • Player ally (11)
  • Player bioweapon (12)
  • Alien bioweapon (13)

If you leave this key empty, the monster keeps its own side.

Is player allyis_player_ally

Sets 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)
Default No (0)
Prisoner toprisonerto

Names 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)
  • Machine (1)
  • Player (2)
  • Human passive (3)
  • Human military (4)
  • Alien military (5)
  • Alien passive (6)
  • Alien monster (7)
  • Alien prey (8)
  • Alien predator (9)
  • Insect (10)
  • Player ally (11)
  • Player bioweapon (12)
  • Alien bioweapon (13)
Default None (0)
Ignored byignoredby

Names 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)
  • Machine (1)
  • Player (2)
  • Human passive (3)
  • Human military (4)
  • Alien military (5)
  • Alien passive (6)
  • Alien monster (7)
  • Alien prey (8)
  • Alien predator (9)
  • Insect (10)
  • Player ally (11)
  • Player bioweapon (12)
  • Alien bioweapon (13)
Default None (0)

Flags

16Prisoner

The 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​

KeyDescriptionDefault
UnkillableHalf-Life Unified SDKunkillable

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
Default No (0)

Sight, sound and movement​

KeyDescriptionDefault
Custom Field Of Viewfield_of_view

Sets 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.

Custom Sound Masksoundmask

Sets 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.

Freeroamfreeroam

Sets 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 worldspawn key Monsters freeroam decides
  • Never (1) - The monster never walks around by itself
  • Always (2) - The monster always walks around while it is idle
Default Map default (0)
Active after combatactive_alert

Sets 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 Default (no) (0)

Flags

1WaitTillSeen

The monster ignores a player until that player looks toward it

2Gag

The monster makes no idle sounds and doesn't chat

4MonsterClip

func_monsterclip brushes block the monster

1048576Act out of PVS

The 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​

KeyDescriptionDefault
Trigger on deathtrigger_on_death

Fires once when the monster is killed, with the killer as the activator.

TriggerTargetTriggerTarget

Names the entities that fire once, the first time Trigger Condition or Trigger Alternative Condition happens, with the monster itself as the activator.

Trigger ConditionTriggerCondition

Sets the event that fires TriggerTarget.

The 12 choices
  • No Trigger (0) - Nothing fires
  • See Player, Mad at Player (1) - The monster sees a player that it is angry at
  • Take Damage (2) - The monster takes damage
  • 50% Health Remaining (3) - The monster's health drops to half or less
  • Death (4) - The monster dies
  • Hear World (7) - The monster hears a sound of the world, such as a door
  • Hear Player (8) - The monster hears a player
  • Hear Combat (9) - The monster hears a fight, such as gunfire or an explosion
  • See Player Unconditional (10) - The monster sees a player, whether it is angry at them or not
  • See Player, Not In Combat (11) - The monster sees a player while it isn't fighting
  • Provoked by a player (12) - A player provokes the monster, for example by hitting it
  • Got healed (13) - Someone heals the monster
Default No Trigger (0)
Trigger Alternative ConditionTriggerAltCondition

Sets 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)
  • See Player, Mad at Player (1)
  • Take Damage (2)
  • 50% Health Remaining (3)
  • Death (4)
  • Hear World (7)
  • Hear Player (8)
  • Hear Combat (9)
  • See Player Unconditional (10)
  • See Player, Not In Combat (11)
  • Provoked by a player (12)
  • Got healed (13)
Default No Trigger (0)

Blood, gibs and corpse​

KeyDescriptionDefault
Blood Colorbloodcolor

Sets 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 Default (0)
Custom gib modelgibmodel

Sets 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.

Gibbing policygib_policy

Sets 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 Default (0)

Flags

512Fade Corpse

The monster's corpse fades out after it dies, instead of staying

65536Non-solid corpse

The 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.

KeyDescriptionDefault
Use SentenceUseSentence

Sets 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.

Un-Use SentenceUnUseSentence

Sets 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.

Voice pitchvoicepitch

Sets 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.

Default 0
Followage policyfollowage_policy

Sets 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_following can make the monster follow someone
  • Scripted only, decline use (2) - Only a scripted_following can 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.

Follow failure policyfollowfailpolicy

Sets 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 Default (0)
Pre-provokedsuspicious

Sets 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
Default No (0)
Tolerance leveltolerance

Sets 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 Default (0)
Alert friendsalert_friends

Sets 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 Default (0)
Refusal SentenceRefusalSentence

Sets the sentence group the monster says when it refuses to follow a player. null makes it say nothing.

Speech PrefixSpeakAs

Makes 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-Disaster

A 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 requests

A player who walks into the monster doesn't make it step aside