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

Placement Tip:
Tip:If you create a map for
Black Mesa there player is not HEV/PCV guy - use
Note:
Bug:Sometimes skins and animations doesn't displays properly in multiplayer (usually happens when it is empty).
MyGamepedia (talk | contribs) |
MyGamepedia (talk | contribs) No edit summary |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}} | {{LanguageBar}} | ||
{{tabsBar|main=Item_suitcharger}} | {{tabsBar|main=Item_suitcharger}} | ||
[[File: suitchargerBMSclean.png | right | | {{CDA|CItem_SuitCharger|CBaseCharger|CBaseAnimating|CBaseEntity|}} | ||
{{this is a| | [[File: suitchargerBMSclean.png | right | 160px]] | ||
{{this is a|model entity|name=item_suitcharger|game=Black Mesa}} This is the [[Item suit (Black Mesa)|HEV suit]] charger which gradually replenishes suit power on use, until empty or the suit is at full power (in multiplayer it refills automatically). | |||
{{ModernPlacementTip|{{clr}} | {{ModernPlacementTip|{{clr}} | ||
*Chargers are best placed with a height of around 48 units between the floor and the center of the recharger entity. | *Chargers 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 battery 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.}} | *To ensure that the player will gain battery 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.}} | ||
{{tip| | {{tip|If you create a map for {{Bms|4}} there player is not HEV/PCV guy - use <code>sk_charger_suit_maxarmor 0</code> cvar to prevent charger use.}} | ||
}} | |||
{{Note|{{clr}} | {{Note|{{clr}} | ||
*A suit charger will contain the same total charge regardless of the difficulty setting. | *A suit charger will contain the same total charge regardless of the difficulty setting. | ||
Line 18: | Line 18: | ||
*Cannot be used by two (or more) players at the same time, even if they are in the same team. | *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). | {{bug|hidetested=1|Sometimes skins and animations doesn't displays properly in multiplayer (usually happens when it is empty).}} | ||
==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. Min value is 0, max value is 100.}} | ||
{{KV|Charge Rate Multiplier|intn=mprate|float|Multiplies charge rate.|nofgd=1}} | |||
{{KV|Force Skin|intn=skintype|Choices|Determines model that the charger will use, dirty or clean. | {{KV|Force Skin|intn=skintype|Choices|Determines model that the charger will use, dirty or clean. | ||
:*0: None/Clean | :*0: None/Clean | ||
Line 37: | Line 37: | ||
==Inputs== | ==Inputs== | ||
{{ | {{I|Fill|param=float|nofgd=1|Fills the charger with specified number if the charger is empty.}} | ||
{{ | {{I|Enable|param=void|Allows to use, sets skin 0, turns light on.}} | ||
{{ | {{I|Disable|param=void|Prevents to use, sets skin 1, turns light off.}} | ||
==Outputs== | ==Outputs== | ||
{{ | {{O|OnEmpty|Fired when the charger is empty.}} | ||
{{ | {{O|OnUse|Fired when the player tries to {{ent|+use}} the charger.}} | ||
{{ | {{O|OnTurnOff|nofgd=1|Fires on disable.}} | ||
{{ | {{O|OnTurnOn|nofgd=1|Fires on enable.}} | ||
== | ==Dedicated Console Variables== | ||
{{bms|4}} | |||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|cl_suitcharg_light_col_r|0| | {{varcom|cl_suitcharg_light_col_r|0|[[Integer]] (0-255)|Red color value for dynamic light from suit chargers.}} | ||
{{varcom|cl_suitcharg_light_col_g|255| | {{varcom|cl_suitcharg_light_col_g|255|Integer (0-255)|Green color value for dynamic light from suit chargers.}} | ||
{{varcom|cl_suitcharg_light_col_b|255| | {{varcom|cl_suitcharg_light_col_b|255|Integer (0-255)|Blue color value for dynamic light from suit chargers.}} | ||
{{varcom|cl_suitcharg_light_intensity|32| | {{varcom|cl_suitcharg_light_intensity|32|Integer|Intensity value for dynamic light from suit chargers.}} | ||
{{varcom|cl_suitcharg_light_on|1| | {{varcom|cl_suitcharg_light_on|1|[[Bool]]|Sets state of dynamic light spawn by suit chargers. 0 - disallow to spawn, 1 - allow to spawn.}} | ||
{{varcom|cl_suitcharg_light_range|64| | {{varcom|cl_suitcharg_light_range|64|Integer|Range value for dynamic light from suit chargers.}} | ||
{{varcom|cl_suitcharg_light_debug|0| | {{varcom|cl_suitcharg_light_debug|0|Bool|Sets debug state of suit chargers light.}} | ||
{{varcom|sk_charger_suit_maxarmor|100 | | {{varcom|sk_charger_suit_maxarmor|100 |Integer|If amount of player's armor exceeds number specified in this cvar - player will not be able to charge from suit chargers.}} | ||
{{varcom|sk_charger_suit_rate|1| | {{varcom|sk_charger_suit_rate|1|[[Float]]|Sets charging speed from suit chargers.}} | ||
{{varcom|sk_charger_refill_delay |15| | {{varcom|sk_charger_refill_delay |15|[[Float]]|Delay before refill for suit and health chargers in seconds. Multiplayer only.}} | ||
{{varcom|end}} | |||
{{bms12|4}} | |||
{{varcom|start}} | |||
{{varcom|sk_suitcharger_drain|1|[[Float]]|Affects drain speed. | |||
{{warning|You will not get all the armor with big values. You will get extra armor with small values.}} | |||
}} | |||
{{varcom|end}} | {{varcom|end}} | ||
==See also== | ==See also== | ||
*{{ent|item_healthcharger (Black Mesa)|item_healthcharger}}, a version of this entity meant for health. | *{{ent|item_healthcharger (Black Mesa)|alt=item_healthcharger}}, a version of this entity meant for health. | ||
[[Category:Items]] | [[Category:Items]] |
Latest revision as of 09:08, 21 July 2025


![]() |
---|
CItem_SuitCharger |
item_suitcharger
is a model entity available in Black Mesa. This is the HEV suit charger which gradually replenishes suit power on use, until empty or the suit is at full power (in multiplayer it refills automatically).

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


sk_charger_suit_maxarmor 0
cvar to prevent charger use.
- A suit charger will contain the same total charge regardless of the difficulty setting.
- Players can change weapons while charging.
- Players can fire any weapon while charging.
- Players can reload weapons while charging.
- Players can't use it without the suit.
- Players can't use it past the limit. The limit for chargers can be changed via the cvar, it is hardcorded only for batteries (100).
- 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.
Dedicated Console Variables
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
cl_suitcharg_light_col_r | 0 | Integer (0-255) | Red color value for dynamic light from suit chargers. |
cl_suitcharg_light_col_g | 255 | Integer (0-255) | Green color value for dynamic light from suit chargers. |
cl_suitcharg_light_col_b | 255 | Integer (0-255) | Blue color value for dynamic light from suit chargers. |
cl_suitcharg_light_intensity | 32 | Integer | Intensity value for dynamic light from suit chargers. |
cl_suitcharg_light_on | 1 | Bool | Sets state of dynamic light spawn by suit chargers. 0 - disallow to spawn, 1 - allow to spawn. |
cl_suitcharg_light_range | 64 | Integer | Range value for dynamic light from suit chargers. |
cl_suitcharg_light_debug | 0 | Bool | Sets debug state of suit chargers light. |
sk_charger_suit_maxarmor | 100 | Integer | If amount of player's armor exceeds number specified in this cvar - player will not be able to charge from suit chargers. |
sk_charger_suit_rate | 1 | Float | Sets charging speed from suit chargers. |
sk_charger_refill_delay | 15 | Float | Delay before refill for suit and health chargers in seconds. Multiplayer only. |
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_suitcharger_drain | 1 | Float | Affects drain speed.
![]() |
See also
- item_healthcharger, a version of this entity meant for health.