item_suitcharger

From Valve Developer Community

Jump to: navigation, search

Contents

Entity description

Suit Charger

Gradually charges up HEV suit energy on use, until empty.

A suit charger will contain the same total charge regardless of the difficulty setting.

  • A normal suit charger (without any flags checked or cvars changed) will be able to discharge a total of 75 Suit points (30 in HL2DM).
  • A Citadel recharger will be able to discharge a total of 500 Suit points (200 in HL2DM), overcharging the HEV suit to a maximum of 200 Suit points, and while recharging it will also heal Health for free.
  • Kleiner's recharger will be able to discharge a total of 25 Suit points, regardless of cvar settings.
  • A Citadel/Kleiner's recharger combo (with both flags checked) will be able to discharge a total of 30 Suit points (since Kleiner's recharger is set to 25 suit points no matter what, and a Citadel recharger rounds it up to the nearest 10), overcharging the HEV suit to a maximum of 200 Suit points, and while recharging it will also heal (a total of 15) Health for free.
Image:Placementtip.gif Placement Tip:
  • Re-chargers are best placed with a height of around 48 units between the floor and the center of the recharger entity.
  • To ensure that the player will gain battery rather than lose it, place them in areas occluded from immediate danger, like constant enemy fire from helicopters or tanks. Consider however that, since the player is required to stare at the wall while they are using the charger, they can be used to create tension by placing them where an enemy might still reach the player. Note that chargers could also add good or bad stress to the player if they have to exterminate a load of enemies in a room which a health charger is placed before using it.

Dedicated CVARs

  • sk_suitcharger (Default: 75 for hl2/30 for hl2dm)
<integer> Changes the total charge of suit points of the normal charger.
  • sk_suitcharger_citadel (Default: 500 for hl2/200 for hl2dm)
<integer> Changes the total charge of suit points of the citadel charger.
  • sk_suitcharger_citadel_maxarmor (Default: 200)
<integer> Changes the amount of Suit points you can hold when recharging with a citadel charger.

Keyvalues

  • Targetname:

Name <string>
The targetname other entities refer to this entity by.
  • Angles:

Pitch Yaw Roll (Y Z X) <angle>
This entity's angular orientation in the world.
  • _minlight
<float> Minimum light level

Flags

  • 8192 : Citadel recharger
Changes charge amount to Citadel recharger amounts (see Entity description).
  • 16384 : Kleiner's recharger
Changes charge amount to Kleiner's recharger amounts (see Entity description).

Inputs

  • Targetname:

Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
  • Recharge

Outputs

  • Targetname:

OnUser1 to OnUser4
Fired in response to the FireUser inputs; see User Inputs and Outputs.
OnKilled (New with Left 4 Dead)
Fired when the entity is killed and removed from the game.
  • OutRemainingCharge <float>
  • OnHalfEmpty
Executed when the "charge left" reaches 50% of its max.
  • OnEmpty
Executed when the Charger is empty.
  • OnFull
Executed when player gets recharged to the max.
  • OnPlayerUse
Executed when a player uses the entity (Def. E).

See also

Personal tools