Skip to main content

func_recharge

func_recharge icon
Brush entity

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:

KeyDescriptionDefault
Object Hint TemplateFeaturefulobjecthint

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
Default None (empty)
Hint Distanceobjecthint_distance

Sets 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.

Trigger On First UseTriggerOnFirstUse

Fires once, the first time the charger gives a player some charge.

Trigger On EmptyTriggerOnEmpty

Fires at the first use after the charger runs out, and only fires again after the charger has filled up again.

Trigger On RechargedTriggerOnRecharged

Fires when the charger fills up again.

Custom Loop SoundCustomLoopSound

Sets 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.

Custom Denied SoundCustomDeniedSound

Sets 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.

Custom Start SoundCustomStartSound

Sets a sound file that plays when the charger starts charging a player.

If you leave this key empty, it is items/suitchargeok1.wav.

Custom Recharge SoundCustomRechargeSound

Sets a sound file that plays when the charger fills up again. By default, the suit charger plays no sound then.

Custom Juice AmountCustomJuice

Sets how much armor the charger holds.

If you leave this key empty or set 0, the skill setting decides.

Move withSpirit of Half-Lifemovewith

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.

Axis locksparentflags

Keeps 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.

Default 0

Notes​

  • 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​

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