Item healthcharger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:item_healthcharger}}
{{DISPLAYTITLE:item_healthcharger}}
[[Image:item_healthcharger.jpg|thumb|200px|right|A Health Charger.]]
{{hl2 point|item_healthcharger}}
{{hl2 point|item_healthcharger}}


==Entity Description==
==Entity description==
[[Image:item_healthcharger.jpg|thumb|200px|right|Health Charger]]
A [[health]] charger gradually replenishes player health on use, until empty; one can replenish a total of 50 Health points, regardless of the difficulty setting.
A [[health]] charger gradually replenishes player health on use, until empty; one can replenish a total of 50 Health points, regardless of the difficulty setting.


Line 22: Line 22:
* '''OnPlayerUse'''
* '''OnPlayerUse'''


==See Also==
==See also==
*[[func_healthcharger]]
*[[func_healthcharger]]


[[Category:Entities]] [[Category:Items]]
[[Category:Items]]

Revision as of 13:58, 15 January 2012

A Health Charger.

Template:Hl2 point

Entity description

A health charger gradually replenishes player health on use, until empty; one can replenish a total of 50 Health points, regardless of the difficulty setting.

PlacementTip.gifPlacement Tip:
  • Rechargers 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 health 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.

Keyvalues

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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Outputs

  • OutRemainingCharge <float>
  • OnPlayerUse

See also