item_healthcharger is a model entity available in
Black Mesa. This is the health charger which gradually replenishes player health on use, until empty or the player is at full health (in multiplayer it refills automatically). A charger normally holds 50 health points, regardless of the difficulty setting.
Placement 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:
- Player can use health chargers without suit.
- Players can change weapons while healing.
- Players can fire any weapon while healing.
- Players can reload weapons while healing.
- Players can't use it past the limit or maximum health points. The limit for chargers can be changed via the cvar.
- Cannot be used by two (or more) players at the same time, even if they are in the same team.
Bug:Sometimes skins and animations doesn't displays properly in multiplayer (usually happens when it is empty).
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.
- Charge (charge) <float>
- How full the charger should be. Min value is 0, max value is 100.
- Charge Rate Multiplier (mprate) <float> !FGD
- Multiplies charge rate. Used 1 in singleplayer mode, used 2 in multiplayer mode.
Note: In multiplayer, value overrides to 2.0 when charger spawned.
- Force Skin (skintype) <choices>
- Determines model that the charger will use, dirty or clean.
- 0: None/Clean
- 1: Clean
- 2: Dirty
Images of both Clean and Dirty versions
|
|
Inputs
- Enable <void>
- Allows to use, sets skin 0, turns light on.
- Disable <void>
- Prevents to use, sets skin 1, turns light off.
- Fill <floatRedirectInput/float> !FGD
- Fills the charger with specified number if the charger is empty.
Outputs
- OnEmpty
- Fired when the charger is empty.
- OnUse
- Fired when the player tries to +use the charger.
- OnTurnOff !FGD
- Fires on disable.
- OnTurnOn !FGD
- Fires on enable.
Dedicated Console Variables
Black Mesa
| Cvar/Command |
Parameters or default value |
Descriptor |
Effect |
| cl_hpcharg_light_col_r |
255 |
Integer (0-255)
|
Red color value for dynamic light from health chargers. |
| cl_hpcharg_light_col_g |
0 |
Integer (0-255)
|
Green color value for dynamic light from health chargers. |
| cl_hpcharg_light_col_b |
0 |
Integer (0-255)
|
Blue color value for dynamic light from health chargers. |
| cl_hpcharg_light_intensity |
32 |
Integer
|
Intensity value for dynamic light from health chargers. |
| cl_hpcharg_light_on |
1 |
Bool
|
Sets state of dynamic light spawn by health chargers. 0 - disallow to spawn, 1 - allow to spawn. |
| cl_hpcharg_light_range |
64 |
Integer
|
Range value for dynamic light from health chargers. |
| cl_hpcharg_light_debug |
0 |
Bool
|
Sets debug state of health chargers light. |
| sk_charger_health_rate |
1 |
Float
|
Sets treatment speed from health chargers. |
| sk_charger_refill_delay |
15 |
Float
|
Delay before refill for suit and health chargers in seconds. Multiplayer only. |
Black Mesa (mod)
| Cvar/Command |
Parameters or default value |
Descriptor |
Effect |
| sk_healthcharger_drain |
1 |
Float
|
Affects drain speed.
Warning:You will not get all the health with big values. You will get extra health with small values.
|
See also