Item suitcharger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Reverted edit of AlchiDelli, changed back to last version by Mark WiseCarver)
mNo edit summary
Line 18: Line 18:
== Dedicated CVARs ==
== Dedicated CVARs ==
* '''sk_suitcharger''' (Default: 75)
* '''sk_suitcharger''' (Default: 75)
: <integer>
: <integer> Changes the total charge of suit points of the normal charger.
* '''sk_suitcharger_citadel''' (Default: 500)
* '''sk_suitcharger_citadel''' (Default: 500)
: <integer>
: <integer> Changes the total charge of suit points of the citadel charger.
* '''sk_suitcharger_citadel_maxarmor''' (Default: 200)
* '''sk_suitcharger_citadel_maxarmor''' (Default: 200)
: <integer>
: <integer> Changes the amount of Suit points you can hold when recharging with a citadel charger.


== Keyvalues ==
== Keyvalues ==
Line 32: Line 32:
== Flags ==
== Flags ==
* 8192 : Citadel recharger
* 8192 : Citadel recharger
: Changes charge amount.
: Changes charge amount to Citadel recharger amounts (Look at the Entity description).
* 16384 : Kleiner's recharger
* 16384 : Kleiner's recharger
: Changes charge amount.
: Changes charge amount to Kleiner's recharger amounts (Look at the Entity description).


== Inputs ==
== Inputs ==
Line 44: Line 44:
* '''OutRemainingCharge <float>'''
* '''OutRemainingCharge <float>'''
* '''OnHalfEmpty'''
* '''OnHalfEmpty'''
: Executed when the "charge left" reaches 50% of its max.
* '''OnEmpty'''
* '''OnEmpty'''
: Executed when the Charger is empty.
* '''OnFull'''
* '''OnFull'''
: Recharged to full.
: Executed when player gets recharged to the max.
* '''OnPlayerUse'''
* '''OnPlayerUse'''
 
: Executed when a player uses the entity (Def. E).
== See also ==
== See also ==
* [[func_recharge]] - an entity similar to <code>item_suitcharger</code>.
* [[func_recharge]] - an entity similar to <code>item_suitcharger</code>.

Revision as of 07:28, 7 April 2008

Template:Wrongtitle

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) will be able to discharge a total of 75 Suit points.
  • A Citadel recharger will be able to discharge a total of 500 Suit points, 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.
  • A Citadel/Kleiner's recharger combo (with both flags checked) will be able to discharge a total of 30 Suit points, 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.
PlacementTip.gifPlacement 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)
<integer> Changes the total charge of suit points of the normal charger.
  • sk_suitcharger_citadel (Default: 500)
<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

<float> Minimum light level

Flags

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

Inputs

Outputs

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