func_healthcharger

From Valve Developer Community
Jump to navigation Jump to search

func_healthcharger is an e2 available in Half-Life 2 series Half-Life 2 series. A brush-based version of item_healthcharger.

Note.pngNote:This entity is also in the code for Portal. Its functionality is not guaranteed.


C++ In code, it is represented by theCWallHealthclass, defined in theitem_healthkit.cppfile.

Keyvalues

Deathmatch recharge delay (dmdelay) <integer>
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.


Inputs

SetDamageFilter <targetnameRedirectInput/string>
Sets a filter for this entity for when it receives damage.
EnableDamageForces
Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
DisableDamageForces
Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place


Outputs

OutRemainingCharge <floatRedirectInput/float>
Fires once for every single point of health given to the player. That means it will not fire when the charger is depleted or when the player is at full health. This output automatically puts the amount of points remaining in the charger[confirm] into the parameter box for inputs, if the mapper does not override the parameter with something else.
OnPlayerUse
Fired when the player tries to +use the healthcharger.


See also