Func healthcharger: Difference between revisions
Jump to navigation
Jump to search
Note:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{tabs|source=1|goldsrc=1|main=source|func_healthcharger}} | {{tabs|source=1|goldsrc=1|main=source|func_healthcharger}} | ||
{{CD|CWallHealth|file1=item_healthkit.cpp}} | |||
{{this is a|brush entity|name=func_healthcharger|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} A brush-based version of {{ent|item_healthcharger}}. | {{this is a|brush entity|name=func_healthcharger|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} A brush-based version of {{ent|item_healthcharger}}. | ||
{{stray ent|{{portal}}}} | {{stray ent|{{portal}}}} | ||
{{ | ==Keyvalues== | ||
{{Brush rendering note}} | |||
{{KV Targetname}} | |||
{{KV|Deathmatch recharge delay|intn=dmdelay|integer}} | {{KV|Deathmatch recharge delay|intn=dmdelay|integer}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OutRemainingCharge|param=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. {{outadd|the amount of points remaining in the charger{{confirm}}}}}} | {{IO|OutRemainingCharge|param=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. {{outadd|the amount of points remaining in the charger{{confirm}}}}}} | ||
{{IO|OnPlayerUse|Fired when the player tries to {{ent|+use}} the healthcharger.}} | {{IO|OnPlayerUse|Fired when the player tries to {{ent|+use}} the healthcharger.}} | ||
==See also== | ==See also== | ||
*{{ent|item_healthcharger}}, a point entity with a similar function. | *{{ent|item_healthcharger}}, a point entity with a similar function. | ||
*{{ent|func_recharge}}, a brush-based recharger meant for suit power. | *{{ent|func_recharge}}, a brush-based recharger meant for suit power. |
Revision as of 01:14, 3 September 2024
![]() |
---|
CWallHealth |
![]() |
func_healthcharger
is a brush entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch. A brush-based version of item_healthcharger.
Keyvalues

- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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 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
- item_healthcharger, a point entity with a similar function.
- func_recharge, a brush-based recharger meant for suit power.