Skip to content

hostage_entity

Entity I/O / hostage_entity

Hostage. A hostage NPC will spawn at this point.\n\nThere are usually four hostages placed in each hostage rescue map. The model for each Hostage is randomly chosen.

  • FGD @PointClass in game/csgo/csgo.fgd, bases Targetname, Angles.
  • cs_script type: CSHostage, what FindEntitiesByClass("hostage_entity") returns.
  • Native class: CHostage (curated pairing).

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2

Inputs (15)

NameParameterFromDescription
RunScriptFilestringVScriptLoad and execute a script file
RunScriptCodestringVScriptExecute a fragment of script code
CallScriptFunctionstringVScriptCall a script function
CallPrivateScriptFunctionstringVScriptCalls a script function from this entity's private script scope.
CallGlobalScriptFunctionstringVScriptCalls a script function in the global script scope.
KillGameEntityRemoves this entity from the world.
KillHierarchyGameEntityRemoves this entity and all its children from the world.
KillConstrainedGameEntityRemoves this entity, all its children, and anything constrained to it, from the world.
AddOutputstringGameEntityAdds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care.
FireUser1GameEntityCauses this entity's OnUser1 output to be fired.
FireUser2GameEntityCauses this entity's OnUser2 output to be fired.
FireUser3GameEntityCauses this entity's OnUser3 output to be fired.
FireUser4GameEntityCauses this entity's OnUser4 output to be fired.
EnableAutoSleepingGameEntityEnable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest.
DisableAutoSleepingGameEntityDisable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep.

Outputs (9)

NameParameterFromDescription
OnUser1GameEntityFired in response to FireUser1 input.
OnUser2GameEntityFired in response to FireUser2 input.
OnUser3GameEntityFired in response to FireUser3 input.
OnUser4GameEntityFired in response to FireUser4 input.
OnKilledGameEntityFired when the entity is killed and removed from the game. Parameter is the inflictor.
OnHostageBeginGrabFires when a player starts to use a hostage
OnFirstPickedUpFires when the hostage is first picked up
OnDroppedNotRescuedFires when the hostage is dropped, but not rescued
OnRescuedFires when the hostage is rescued

Keyvalues (35)

The names Hammer saves and the KeyValue input and AddOutput take at run time. An entity reads some keys only when it spawns, so changing one later may do nothing. Integer keys such as movetype take engine numbers, not the renumbered cs_script enum values.

KeyTypeDefaultFromDescription
vscripts
Entity Scripts
scriptlistVScriptName(s) of script files that are executed after all entities have spawned.
targetname
Name
target_sourceTargetnameThe name that other entities refer to this entity by.
angles
Pitch Yaw Roll (Y Z X)
angle0 0 0AnglesThis entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
HostageType
Hostage Model (int)
choices0Not used. Hostage models are chosen randomly by the game.
  • 0 A
  • 1 B
  • 1 C
  • 1 D
HostageSpawnRandomFactor
Hostage Spawn Random Factor (int)
integer1Allows to increase probability of this hostage being picked during random spawn selection process, essentially considering this spawn point specified number of times.
HostageSpawnExclusionGroup1
Hostage Spawn Exclusion Group 1
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup2
Hostage Spawn Exclusion Group 2
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup3
Hostage Spawn Exclusion Group 3
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup4
Hostage Spawn Exclusion Group 4
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup5
Hostage Spawn Exclusion Group 5
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup6
Hostage Spawn Exclusion Group 6
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup7
Hostage Spawn Exclusion Group 7
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup8
Hostage Spawn Exclusion Group 8
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup9
Hostage Spawn Exclusion Group 9
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup10
Hostage Spawn Exclusion Group 10
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup11
Hostage Spawn Exclusion Group 11
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup12
Hostage Spawn Exclusion Group 12
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup13
Hostage Spawn Exclusion Group 13
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup14
Hostage Spawn Exclusion Group 14
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup15
Hostage Spawn Exclusion Group 15
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup16
Hostage Spawn Exclusion Group 16
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup17
Hostage Spawn Exclusion Group 17
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup18
Hostage Spawn Exclusion Group 18
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup19
Hostage Spawn Exclusion Group 19
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup20
Hostage Spawn Exclusion Group 20
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup21
Hostage Spawn Exclusion Group 21
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup22
Hostage Spawn Exclusion Group 22
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup23
Hostage Spawn Exclusion Group 23
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup24
Hostage Spawn Exclusion Group 24
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup25
Hostage Spawn Exclusion Group 25
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup26
Hostage Spawn Exclusion Group 26
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup27
Hostage Spawn Exclusion Group 27
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup28
Hostage Spawn Exclusion Group 28
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup29
Hostage Spawn Exclusion Group 29
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together
HostageSpawnExclusionGroup30
Hostage Spawn Exclusion Group 30
choices0Hostages sharing same spawn exclusion group will never spawn together.
  • 0 n/a
  • 1 Do not spawn together