item_suitcharger

From Source Entities
Jump to navigation Jump to search
Item suitcharger.png

Code classes:

item_suitcharger is a point entity present in the Hl2.pngHalf-Life 2 series and P2.pngPortal 2. Combine power supply.

Tip: Normally, these should be placed in areas that aren't going to be occupied by enemies so that they're more helpful than hurtful, although placing them where the player would be vulnerable if they use them could also be used to create tension.

Flags[edit | edit source]

  • 8192: Citadel recharger - Overcharges the HEV to up to 200 power and gives health. Can give up to 500 power and potentially infinite health (if damage is done in a way which doesn't affect suit power, such as fall damage or drowning).
  • 16384: Kleiner's recharger - Gives only 25 power.

Inputs[edit | edit source]

Recharge
Fully recharges the device. Not available in Hl2.pngHalf-Life 2: Deathmatch.
SetCharge <integer>
Sets the charger's maximum to the given value and fills it to that amount. Not available in Hl2.pngHalf-Life 2: Deathmatch.

Outputs[edit | edit source]

OnPlayerUse
Fires when a player takes power from the charger.
OnFull
Fires when the charger is set back to full health.
OnHalfEmpty
Fires when the charger is half full.
OnEmpty
Fires when the charger is completely used.
OutRemainingCharge <float>
Fires every time a point of power is taken from the charger. Automatically puts the remaining charge as a decimal as the input parameter, unless overridden by the mapper.