Health Charger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
Personal creation of a health charger is quick and simple.
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.
1. First, create a block, 32 width, 48 height, and 8 units in length. 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.

Revision as of 08:34, 24 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, 32 width, 48 height, and 8 units in length. 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.