Health Charger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Image:Health_charger_ingame.jpg|thumb|right|400px|The finished product ingame.]]
[[Image:Health_charger_ingame.jpg|thumb|right|400px|The finished product ingame.]]
The Health Charger is a simple object in Half-Life that replenishes the player's health.
The '''Health Charger''' is a simple wall mounted health replenisher found throughout half-life and it's expansions Opposing Force and Blue-Shift. The charger itself is a simple textured Brush-entity, if you are using the ''Half-Life SDK'' version of GoldSrc, available on Steam, then you can quickly access a pre-built Health and Suit Charger in your prefabs list, under the prefab library ''Usable Objects''.


== Creation ==
== Creation ==
Personal creation of a health charger is quick and simple.


1. Create a block, 64 width, 96 height, and 8 thickness. Texture it with MEDKITEDGE1.
1. First, create a block, 64 width, 96 height, and 8 thickness. Texture it with MEDKITEDGE1.


2. Select the two side faces, set the rotation to 90, and center them.
2. Select the two side faces, set the rotation to 90, and center them.
Line 12: Line 13:
4. Tie it to a func_healthcharger.
4. Tie it to a func_healthcharger.


5. Place it in your level.
5. Finally, place it anywhere in your level. Health chargers are found attached to walls, being located approximately 32 units above the ground.
 
* The exact dimensions given are not mandatory, they are simply the default preferences used by Valve when making health chargers in official Half-life maps.




== Theory ==
== Theory ==


When the player uses this object, their health will be restored up to a certain amount. When this amount is reached,
When the player uses this object, their health can be restored by a total of 50 percent. When the charger is empty,
the texture changes to a dimmed version and the health charger can no longer be used.
the texture changes to a dimmed version and the health charger can no longer be used.


[[Category:Half-Life]]
[[Category:Half-Life]]
[[Category:Level Design]]
[[Category:Level Design]]

Revision as of 20:49, 22 February 2015

The finished product ingame.

The Health Charger is a simple wall mounted health replenisher found throughout half-life and it's expansions Opposing Force and Blue-Shift. The charger itself is a simple textured Brush-entity, if you are using the Half-Life SDK version of GoldSrc, available on Steam, then you can quickly access a pre-built Health and Suit Charger in your prefabs list, under the prefab library Usable Objects.

Creation

Personal creation of a health charger is quick and simple.

1. First, create a block, 64 width, 96 height, and 8 thickness. Texture it with MEDKITEDGE1.

2. Select the two side faces, set the rotation to 90, and center them.

3. On the front face, apply the texture +0MEDKIT.

4. Tie it to a func_healthcharger.

5. Finally, place it anywhere in your level. Health chargers are found attached to walls, being located approximately 32 units above the ground.

  • The exact dimensions given are not mandatory, they are simply the default preferences used by Valve when making health chargers in official Half-life maps.


Theory

When the player uses this object, their health can be restored by a total of 50 percent. When the charger is empty, the texture changes to a dimmed version and the health charger can no longer be used.