CHostage

From Source Entities
(Redirected from Hostage entity)
Jump to navigation Jump to search
Csgo hostage.png

CHostage is a code class in Css.pngCsgo-small.png.

Classnames:

  • hostage_entity - A hostage.
  • info_hostage_spawn (only available in Csgo-small.png) - Alternate classname. No reason to use it.
Hostage spawn groups are used in Csgo-small.png to avoid random spawns causing two hostages to spawn in the same area of the Terrorist territory and having potentially nasty effects on gameplay.

Keyvalues[edit | edit source]

Hostage Model (HostageType) <choices>
Does nothing.
Hostage Spawn Random Factor (HostageSpawnRandomFactor) <integer> (only available in Csgo-small.png)
Allows to increase probability of this hostage being picked during random spawn selection process. Essentially, the game considers the hostage spawn this number of times.
Hostage Spawn Exclusion Group 1 (HostageSpawnExclusionGroup1) to Hostage Spawn Exclusion Group 30 (HostageSpawnExclusionGroup30) <boolean> (only available in Csgo-small.png)
Hostages in the same spawn group will never spawn if one of them in that group was already chosen.

Inputs[edit | edit source]

OnRescueZoneTouch (Not in FGD)
Rescues the hostage.

Outputs[edit | edit source]

OnHostageBeginGrab  (only available in Csgo-small.png)
Fires when the hostage is beginning to be picked up.
OnFirstPickedUp  (only available in Csgo-small.png)
Fires only the first time the hostage is picked up.
OnDroppedNotRescued  (only available in Csgo-small.png)
Fires when the hostage carrier dies, or when dropped manually in Danger Zone.
OnRescued  (only available in Csgo-small.png)
Fires when the hostage is rescued.

See Also[edit | edit source]