Item healthcharger (Black Mesa): Difference between revisions
Jump to navigation
Jump to search

Placement Tip:
Note:
Bug:Sometimes skins and animations doesn't displays properly in multiplayer (usually happens when it is empty).
SirYodaJedi (talk | contribs) (Created page with "{{LanguageBar}} {{tabsBar |main=Item_healthcharger}} {{draft}} {{this is a|point entity|name=item_healthcharger|game=Black Mesa}} {{CD|CNewWallHealth|file1=item_healthkit.cpp...") |
MyGamepedia (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{{tabsBar |main=Item_healthcharger}} | {{tabsBar |main=Item_healthcharger}} | ||
{{draft}} | {{draft}} | ||
{{this is a|point entity|name=item_healthcharger|game=Black Mesa | {{this is a|point entity|name=item_healthcharger|game=Black Mesa}} | ||
[[File: HealthchargerBMSclean.png | right | 200px]] | |||
[[File: | 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. | ||
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. | |||
{{ModernPlacementTip|{{clr}} | {{ModernPlacementTip|{{clr}} | ||
Line 12: | Line 11: | ||
{{Note|{{clr}} | {{Note|{{clr}} | ||
* Players can't use it past the limit or maximum health points. | *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).|hidetested=1}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Charge|intn=charge|float|How full the charger should be. Min value is 0, max value is 100.}} | |||
{{KV|Charge|intn=charge|float|How full the charger should be | {{KV|Force Skin|intn=skintype|Choices|Determines model that the charger will use, dirty or clean. | ||
{{KV|Force Skin|intn=skintype|Choices| | :*0: None/Clean | ||
Determines model that the charger will use, dirty or clean. | :*1: Clean | ||
*0: None | :*2: Dirty}} | ||
*1: Clean | {{expand|title=Images of both Clean and Dirty versions| | ||
*2: Dirty | <br> | ||
<gallery mode=packed heights=400px> | |||
File:HealthchargerBMSclean.png| thumb | left | 510px | Clean | |||
File:HealthchargerBMSdirty.png| thumb | left | 510px | Dirty | |||
</gallery> | |||
}} | |||
==Inputs== | ==Inputs== | ||
{{IO|Enable|param=void|Allows to use, sets skin 0, turns light on. | {{IO|Enable|param=void|Allows to use, sets skin 0, turns light on.}} | ||
{{IO|Disable|param=void|Prevents to use, sets skin 1, turns light off. | {{IO|Disable|param=void|Prevents to use, sets skin 1, turns light off.}} | ||
{{IO|Fill|param=float|nofgd=1|Fills the charger with specified number if the charger is empty. | {{IO|Fill|param=float|nofgd=1|Fills the charger with specified number if the charger is empty.}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnEmpty|Fired when the charger is empty.}} | |||
{{IO|OnUse|Fired when the player tries to {{ent|+use}} the charger.}} | |||
{{IO|OnEmpty|Fired when the charger is empty. | {{IO|OnTurnOff|nofgd=1|Fires on disable.}} | ||
{{IO|OnUse|Fired when the player tries to {{ent|+use}} the charger. | {{IO|OnTurnOn|nofgd=1|Fires on enable.}} | ||
{{IO|OnTurnOff|nofgd=1|Fires on disable. | |||
{{IO|OnTurnOn|nofgd=1|Fires on enable. | |||
==ConVars/Commands== | ==ConVars/Commands== | ||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|sk_healthcharger|50|Arbitrary number|Amount of health that can be gained from a single charger.}} | {{varcom|sk_healthcharger|50|Arbitrary number|Amount of health that can be gained from a single charger.}} | ||
{{varcom|cl_hpcharg_light_col_r|255 | {{varcom|cl_hpcharg_light_col_r|255|Arbitrary number|Red color value for dynamic light from health chargers.}} | ||
{{varcom|cl_hpcharg_light_col_g|0 | {{varcom|cl_hpcharg_light_col_g|0|Arbitrary number|Green color value for dynamic light from health chargers.}} | ||
{{varcom|cl_hpcharg_light_col_b|0 | {{varcom|cl_hpcharg_light_col_b|0|Arbitrary number|Blue color value for dynamic light from health chargers.}} | ||
{{varcom|cl_hpcharg_light_intensity|32 | {{varcom|cl_hpcharg_light_intensity|32|Arbitrary number|Intensity value for dynamic light from health chargers.}} | ||
{{varcom|cl_hpcharg_light_on|1 | {{varcom|cl_hpcharg_light_on|1|Arbitrary number|Sets state of dynamic light spawn by health chargers. 0 - disallow to spawn, 1 - allow to spawn.}} | ||
{{varcom|cl_hpcharg_light_range|64 | {{varcom|cl_hpcharg_light_range|64|Arbitrary number|Range value for dynamic light from health chargers.}} | ||
{{varcom|cl_hpcharg_light_debug|0 | {{varcom|cl_hpcharg_light_debug|0|Arbitrary number|Sets debug state of health chargers light.}} | ||
{{varcom|sk_charger_health_rate|1 | {{varcom|sk_charger_health_rate|1|Arbitrary number|Sets treatment speed from health chargers.}} | ||
{{varcom|sk_charger_refill_delay |15 | {{varcom|sk_charger_refill_delay|15|Arbitrary number|Delay before refill for suit and health chargers in seconds. Multiplayer only.}} | ||
{{varcom|end}} | {{varcom|end}} | ||
Revision as of 04:20, 22 September 2024



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.
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.
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.

- 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.

- 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.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Charge (charge) <float>
- How full the charger should be. Min value is 0, max value is 100.
- Force Skin (skintype) <choices>
- Determines model that the charger will use, dirty or clean.
- 0: None/Clean
- 1: Clean
- 2: Dirty
|
Inputs
- Enable <void>
- Allows to use, sets skin 0, turns light on.
- Disable <void>
- Prevents to use, sets skin 1, turns light off.
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.
ConVars/Commands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_healthcharger | 50 | Arbitrary number | Amount of health that can be gained from a single charger. |
cl_hpcharg_light_col_r | 255 | Arbitrary number | Red color value for dynamic light from health chargers. |
cl_hpcharg_light_col_g | 0 | Arbitrary number | Green color value for dynamic light from health chargers. |
cl_hpcharg_light_col_b | 0 | Arbitrary number | Blue color value for dynamic light from health chargers. |
cl_hpcharg_light_intensity | 32 | Arbitrary number | Intensity value for dynamic light from health chargers. |
cl_hpcharg_light_on | 1 | Arbitrary number | Sets state of dynamic light spawn by health chargers. 0 - disallow to spawn, 1 - allow to spawn. |
cl_hpcharg_light_range | 64 | Arbitrary number | Range value for dynamic light from health chargers. |
cl_hpcharg_light_debug | 0 | Arbitrary number | Sets debug state of health chargers light. |
sk_charger_health_rate | 1 | Arbitrary number | Sets treatment speed from health chargers. |
sk_charger_refill_delay | 15 | Arbitrary number | Delay before refill for suit and health chargers in seconds. Multiplayer only. |
See also
- item_suitcharger, a version of this entity meant for suit power.