Health Charger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "In this tutorial we'll create a Half-Life health charger. 1. Create a block, 64 width, 96 height, and 8 thickness. Texture it with MEDKITEDGE1. 2. Select the two side faces, se...")
 
No edit summary
Line 1: Line 1:
In this tutorial we'll create a Half-Life health charger.
[[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.
 
== Creation ==


1. Create a block, 64 width, 96 height, and 8 thickness. Texture it with MEDKITEDGE1.
1. Create a block, 64 width, 96 height, and 8 thickness. Texture it with MEDKITEDGE1.
Line 10: Line 13:


5. Place it in your level.
5. Place it in your level.
== Theory ==
When the player uses this object, their health will be restored up to a certain amount. When this amount is reached,
the texture changes to a dimmed version and the health charger can no longer be used.

Revision as of 19:01, 11 March 2012

The finished product ingame.

The Health Charger is a simple object in Half-Life that replenishes the player's health.

Creation

1. 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. Place it in your level.


Theory

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