Item healthkit: 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_healthkit}}
{{DISPLAYTITLE:item_healthkit}}
{{hl2 point|item_healthkit}}
{{hl2 point|item_healthkit}}
[[Image:item_healthkit.jpg|frame|right|A Health Kit ingame.]]


==Entity Description==
==Entity description==
[[Image:item_healthkit.jpg|frame|right|Health Kit]]
This item restores an amount of health points for players or [[npc_citizen]]s on pickup. This amount is defined by the ''sk_healthkit'' value - 25 by default.
This item restores an amount of health points for players or [[npc_citizen]]s on pickup. This amount is defined by the ''sk_healthkit'' value - 25 by default.


==Dedicated Console Variables==
==Dedicated Console Variables==
* '''sk_healthkit''' (Default: 25)
;sk_healthkit <[[int]]>
: <integer> Amount of health restored. (This amount is unaffected by difficulty settings.)
: Amount of health restored (Default: 25). (This amount is unaffected by difficulty settings.)


==Keyvalues==
==Keyvalues==
Line 22: Line 22:
* {{O Item}}
* {{O Item}}


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

Revision as of 10:45, 24 January 2012

Template:Hl2 point

A Health Kit ingame.

Entity description

This item restores an amount of health points for players or npc_citizens on pickup. This amount is defined by the sk_healthkit value - 25 by default.

Dedicated Console Variables

sk_healthkit <int>
Amount of health restored (Default: 25). (This amount is unaffected by difficulty settings.)

Keyvalues

  • Item:

Flags

Start Constrained : [1]


Inputs

  • Item:

Outputs

  • Item:
OnPlayerTouch
Fires when the player touches this item. !activator is the player.
OnCacheInteraction
This output fires when the player proves they have "found" this item.
Fires on:
  • Player Touch (whether or not player actually acquires the item).
  • Picked up by +use.
  • Picked up by gravity gun.
  • Punted by gravity gun.