Func healthcharger: Difference between revisions
Jump to navigation
Jump to search
(Cleanup) |
(Added Keyvalue description) |
||
Line 1: | Line 1: | ||
{{hl2 brush|func_healthcharger}} | {{hl2 brush|func_healthcharger}} | ||
==Entity | ==Entity description== | ||
A [[brush entity]] wall health recharger (as opposed to a model-based [[item_healthcharger]]). It has no name, and not even half of the Inputs and Outputs [[func_recharge]] is capable off, for whatever reason. However, it can be given a [[targetname]] by manually adding it in with [[SmartEdit]] turned off. | A [[brush entity]] wall health recharger (as opposed to a model-based [[item_healthcharger]]). It has no name, and not even half of the Inputs and Outputs [[func_recharge]] is capable off, for whatever reason. However, it can be given a [[targetname]] by manually adding it in with [[SmartEdit]] turned off. | ||
{{in code|class=class_c_wall_health.html CWallHealth|file=item__healthkit_8cpp-source.html hl2_dll\item_healthkit.cpp}} | {{in code|class=class_c_wall_health.html CWallHealth|file=item__healthkit_8cpp-source.html hl2_dll\item_healthkit.cpp}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Minimum light level|string}} | {{KV|Minimum light level|string|The minimum level of ambient light that hits this brush.}} | ||
{{KV Parentname}} | {{KV Parentname}} | ||
{{KV EnableDisable}} | {{KV EnableDisable}} | ||
Line 24: | Line 22: | ||
{{no_targetname}} | {{no_targetname}} | ||
==See also== | |||
* [[item_healthcharger]] |
Revision as of 15:24, 3 February 2012
Entity description
A brush entity wall health recharger (as opposed to a model-based item_healthcharger). It has no name, and not even half of the Inputs and Outputs func_recharge is capable off, for whatever reason. However, it can be given a targetname by manually adding it in with SmartEdit turned off.
Keyvalues
- Minimum light level ([todo internal name (i)]) <string>
- The minimum level of ambient light that hits this brush.
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Origin:
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
Global:
- Global Entity Name (globalname) <string>
- Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
Inputs
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
- OutRemainingHealth <float >
- Remaining Health.
- OnPlayerUse
- Fired when the player +USEs the charger.