Func healthcharger (Jabroni Brawl): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
("yeah, except it's not CWallHealth")
Line 12: Line 12:
== Inputs ==
== Inputs ==
{{I|Recharge|param=void|Recharge to full}}
{{I|Recharge|param=void|Recharge to full}}
{{I|SetCharge|param=void|This sets the remaining health in the charger to whatever value you specify.}}
{{I|SetCharge|param=integer|This sets the remaining health in the charger to whatever value you specify.}}
{{I|SetIncrement|param=integer|Change increment amount.}}
{{I|SetIncrement|param=integer|Change increment amount.}}



Revision as of 08:26, 9 May 2025

edit

func_healthcharger is a brush entity available in Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3. A brush-based version of item_healthcharger. Unlike its Half-Life 2 and Half-Life: Source counterparts, it contains all the keyvalues and I/O from its model-based counterparts, as well as a few additional values.

Keyvalues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs
Name (targetname) <string>[ Edit ]
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> !FGD
How long to wait before automatically refilling this health charger.
Default juice (juice) <integer> !FGD
Default juice in the health charger.
Max juice (max_juice) <integer> !FGD
Maximum amount of juice in the health charger.
Increment amount (incr_amnt) <integer> !FGD
Amount of juice to dispense per charge.

Inputs

Recharge <void>
Recharge to full
SetCharge <integerRedirectInput/integer>
This sets the remaining health in the charger to whatever value you specify.
SetIncrement <integerRedirectInput/integer>
Change increment amount.

Outputs

OutRemainingHealth <floatRedirectOutput/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.
OnHalfEmpty <void>
Fired when the charger reaches halfway depletion.
OnEmpty <void>
Fired when the charger is depleted.
OnFull <void>
Fired when the charger is recharged to full.
OnPlayerUse <void>
Fired when the player tries to +use the healthcharger.

See also