This article relates to the game "Counter-Strike 2". Click here for more information.

hostage_entity

From Valve Developer Community
Jump to navigation Jump to search

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

A GIF with the four default hostage models in Counter-Strike 2.

hostage_entity is a model entity available in Counter-Strike 2 Counter-Strike 2. A hostage that must be brought to a func_hostage_rescue.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Hostage Model (HostageType) <integer> Obsolete
Not used. Hostage models are chosen randomly by the game.
Hostage Spawn Random Factor (HostageSpawnRandomFactor) <integer>
Allows to increase probability of this hostage being picked during random spawn selection process, essentially considering this spawn point specified number of times.
Hostage Spawn Exclusion Group 1 (HostageSpawnExclusionGroup1) to Hostage Spawn Exclusion Group 32 (HostageSpawnExclusionGroup32) <boolean>
Hostages sharing any exclusion group will never spawn together, unless overridden with mp_hostages_spawn_force_positions or mp_hostages_spawn_force_positions_xyz.
0 n/a
1 Do not spawn together
Note.pngNote:This is treated as an 32-bit set of bitflags by game code.[confirm]