func_recharge

A func_recharge is a wall charger that gives armor to a player who holds their use key on it, until it is empty, and
it fills up again after a while.
Attributes
The entity also has these common keys:
- Naming and triggering: Global Entity Name
- Appearance: Render FX, Render Mode, FX Amount and FX Color
- Compiler keys of brush entities: all of them
Shows brackets around the object for players near it. Within Hint Distance, the brackets are faint and in the HUD color. When the player is close enough to use the object and looks at it, the brackets take the color of the choice.
- None (empty) - No brackets
- button - Yellow, and orange while a master locks the object
- charger - Green, and red while the charger is empty
- eyescanner - Yellow
- pickup - Yellow
None (empty)objecthint_distanceSets how far from the player's eyes the faint brackets show, in units, up to 4096. The object must be in front of the player and in sight.
If you leave this key empty or set 0, the distance is 512 units.
TriggerOnFirstUseFires once, the first time the charger gives a player some charge.
TriggerOnEmptyFires at the first use after the charger runs out, and only fires again after the charger has filled up again.
TriggerOnRechargedFires when the charger fills up again.
CustomLoopSoundSets a sound file that plays in a loop while the charger charges a player.
If you leave this key empty, it is items/suitcharge1.wav.
CustomDeniedSoundSets a sound file that plays when a player uses the charger while it is empty or while they have no suit.
If you leave this key empty, it is items/suitchargeno1.wav.
CustomStartSoundSets a sound file that plays when the charger starts charging a player.
If you leave this key empty, it is items/suitchargeok1.wav.
CustomRechargeSoundSets a sound file that plays when the charger fills up again. By default, the suit charger plays no sound then.
CustomJuiceSets how much armor the charger holds.
If you leave this key empty or set 0, the skill setting decides.
Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.
If you leave this key empty, the entity doesn't move with anything.
parentflagsKeeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.
0Notes
- With the charger template of Object Hint Template, the brackets turn green when a player's use key would use the charger, or red if the charger is empty
- Each player can turn the object hints off, or keep only the hint on what their use key would use, with the client
setting
cl_objecthint
See also
item_battery- a battery that gives armor- func_recharge on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Object Hint Template and Hint Distance, the three Trigger On keys, the custom sounds and Custom Juice Amount

