func_recharge

From Valve Developer Community
Jump to navigation Jump to search
edit
Class hierarchy
CRecharge
CBaseToggle
CBaseEntity
hl1/hl1_func_recharge.cpp

func_recharge is a brush entity available in Half-Life: Source Half-Life: Source. This is the HEV suit charger which gradually replenishes suit power on use, until empty or the suit is at full power.

This entity should be textured with a material using the ToggleTexture material proxy. Frame 0 is used when there is charge remaining, and frame 1 is used when the charger is depleted.

Keyvalues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs
Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Deathmatch recharge delay (dmdelay) <integer>

Outputs

OutRemainingCharge <float>
Fires once for every single point of power given to the suit. This means it will not fire when the charger is depleted or when the suit is at full power. This output automatically puts the amount of charge remaining in the charger into the parameter box for inputs, if the mapper does not override the parameter with something else.

See also