item_battery
![English (en) English (en)](/w/images/3/37/Flag-en.png)
![]() |
---|
CItemBattery defined in ![]() item_battery.cpp
|
item_battery
is a point entity available in Half-Life 2,
Half-Life 2: Deathmatch,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Lost Coast.
Description
This item charges up the HEV suit by 15 energy points (regardless of the difficulty setting).
The amount of power given by the battery can be changed with the console command sk_battery [int]
. The command also affects how much power will be given in HL2 by Stunsticks, as picking one up will provide 50% of the value of sk_battery
.[1] As it is rounded down, by default the player receives 7 points of charge.
Npc_cscanner and Npc_clawscanner both have 30% chance of dropping an item_battery
upon being destroyed, unless they have the spawnflag "Don't drop weapons".[2]
![PlacementTip.gif](/w/images/c/c9/PlacementTip.gif)
Keyvalues
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Flags
- [
1
] : Start Constrained
Spawns with motion disabled.
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.
References
References |
---|
See Also
Categories:
- TODO rewrite lang to LanguageBar
- Half-Life 2
- CBaseAnimating
- Half-Life 2 entities
- Half-Life 2 point entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch point entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One point entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two point entities
- Half-Life 2: Lost Coast entities
- Half-Life 2: Lost Coast point entities
- Items