item_healthcharger

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
edit
This article is about the point entity. For the brush entity, see func_healthcharger.

item_healthcharger is a point entity available in Half-Life 2 series Half-Life 2 series.

Class hierarchy
CNewWallHealth
CBaseAnimating
CBaseEntity
item_healthkit.cpp
Item healthcharger.png

This is the health charger which gradually replenishes player health on use, until empty or the player is at full health. A charger normally holds 50 health points, regardless of the difficulty setting.

PlacementTip.gifPlacement Tip:
  • Rechargers are best placed with a height of around 48 units between the floor and the center of the recharger entity.
  • To ensure that the player will gain health rather than lose it, place them in areas occluded from immediate danger, like constant enemy fire from helicopters or tanks. Consider however that, since the player is required to stare at the wall while they are using the charger, they can be used to create tension by placing them where an enemy might still reach the player. Note that chargers could also add good or bad stress to the player if they have to exterminate a load of enemies in a room which a health charger is placed before using it.
Note.pngNote:
  • Players can't use it past the limit or maximum health points.
  • Player can use health chargers without suit.
  • Default model: models/props_combine/health_charger001.mdl

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

Deathmatch recharge delay (dmdelay) <float>
[Todo]

Outputs

OutRemainingHealth
Remaining Health.
OnPlayerUse
Fired when the player tries to +use the charger.

ConVars/Commands

Cvar/CommandParameters or default valueDescriptorEffect
sk_healthcharger50Arbitrary numberAmount of health that can be gained from a single charger.

See also