item_healthcharger

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)
edit
Icon-under construction-blue.png
This is a draft page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.

item_healthcharger is a point entity available in Black Mesa Black Mesa.

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.
Deathmatch recharge delay (dmdelay) <float>
[Todo]
Charge (charge) <float> (only in Black Mesa)
How full the charger should be (0 - 100)
Force Skin (skintype) <choices> (only in Black Mesa)

Determines model that the charger will use, dirty or clean.

  • 0: None
  • 1: Clean
  • 2: Dirty

Inputs

Enable <void> (only in Black Mesa)
Allows to use, sets skin 0, turns light on.
Disable <void> (only in Black Mesa)
Prevents to use, sets skin 1, turns light off.
Fill <float> (only in Black Mesa) !FGD
Fills the charger with specified number if the charger is empty.

Outputs

OutRemainingHealth
Remaining Health. (not in Black Mesa)
OnPlayerUse
Fired when the player tries to +use the charger. (not in Black Mesa)
OnEmpty  (only in Black Mesa)
Fired when the charger is empty.
OnUse  (only in Black Mesa)
Fired when the player tries to +use the charger.
OnTurnOff  (only in Black Mesa) !FGD
Fires on disable.
OnTurnOn  (only in Black Mesa) !FGD
Fires on enable.

ConVars/Commands

Cvar/CommandParameters or default valueDescriptorEffect
sk_healthcharger50Arbitrary numberAmount of health that can be gained from a single charger.
cl_hpcharg_light_col_r255 Black Mesa Black MesaArbitrary numberRed color value for dynamic light from health chargers.
cl_hpcharg_light_col_g0 Black Mesa Black MesaArbitrary numberGreen color value for dynamic light from health chargers.
cl_hpcharg_light_col_b0 Black Mesa Black MesaArbitrary numberBlue color value for dynamic light from health chargers.
cl_hpcharg_light_intensity32 Black Mesa Black MesaArbitrary numberIntensity value for dynamic light from health chargers.
cl_hpcharg_light_on1 Black Mesa Black MesaArbitrary numberSets state of dynamic light spawn by health chargers. 0 - disallow to spawn, 1 - allow to spawn.
cl_hpcharg_light_range64 Black Mesa Black MesaArbitrary numberRange value for dynamic light from health chargers.
cl_hpcharg_light_debug0 Black Mesa Black MesaArbitrary numberSets debug state of health chargers light.
sk_charger_health_rate1 Black Mesa Black MesaArbitrary numberSets treatment speed from health chargers.
sk_charger_refill_delay 15 Black Mesa Black MesaArbitrary numberDelay before refill for suit and health chargers in seconds. Multiplayer only.

See also