CHostage
(Redirected from Hostage entity)
Jump to navigation
Jump to search
Code classes:
CHostage
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
(models)CBaseEntity
(all ents)
CHostage
is a code class in .
Classnames:
hostage_entity
- A hostage.info_hostage_spawn
(only available in ) - Alternate classname. No reason to use it.
Keyvalues[edit | edit source]
Hostage Model(HostageType)
<choices>
- Does nothing.
- Hostage Spawn Random Factor
(HostageSpawnRandomFactor)
<integer>
(only available in ) - 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 ) - 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 )
- Fires when the hostage is beginning to be picked up.
- OnFirstPickedUp (only available in )
- Fires only the first time the hostage is picked up.
- OnDroppedNotRescued (only available in )
- Fires when the hostage carrier dies, or when dropped manually in Danger Zone.
- OnRescued (only available in )
- Fires when the hostage is rescued.