Item battery (Half-Life: Source): Difference between revisions
Jump to navigation
Jump to search
(Improved the article with an image of the battery model (which is the same from the original Half-Life) and a description with some extra content based on the other item_battery articles with some KV and O from the FGD) |
No edit summary |
||
Line 1: | Line 1: | ||
{{TabsBar|main=item_battery | {{TabsBar|main=item_battery}} | ||
[[File:W battery goldsrc.png|thumb|right|200px|Worldmodel.]] | [[File:W battery goldsrc.png|thumb|right|200px|Worldmodel.]] | ||
{{CD|CItemBattery|base=CHL1Item|nolink=1|file1=hl1_item_battery.cpp}} | {{CD|CItemBattery|base=CHL1Item|nolink=1|file1=hl1_item_battery.cpp}} | ||
{{This is a|model entity|name=item_battery|game=Half-Life: Source}} | {{This is a|model entity|name=item_battery|game=Half-Life: Source}} | ||
This item charges up the [[item_suit (Half-Life: Source)|HEV suit]] by amount specified in cvar <code>sk_battery [int]</code>. (15 on easy and normal difficulty, 10 on hard) | |||
This item charges up the [[item_suit (Half-Life: Source)|HEV suit]] by | |||
This battery is based on the [[item_battery_(GoldSrc)|original battery]] but instead in the {{Source|4}} engine. | This battery is based on the [[item_battery_(GoldSrc)|original battery]] but instead in the {{Source|4}} engine. | ||
Line 13: | Line 9: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV | {{KV Model|nofgd=|spawn model=models/w_battery.mdl}} | ||
==Outputs== | ==Outputs== | ||
{{O|OnPlayerTouch|Fires when the player touches this object}} | {{O|OnPlayerTouch|activator=the player|Fires when the player touches this object}} | ||
== See Also == | |||
* {{ent|item_suit|game=Half-Life: Source}} | |||
[[Category:Items]] | [[Category:Items]] | ||
Revision as of 14:30, 26 May 2025
![]() |
---|
CItemBattery |
![]() |
item_battery
is a model entity available in Half-Life: Source.
This item charges up the HEV suit by amount specified in cvar
sk_battery [int]
. (15 on easy and normal difficulty, 10 on hard)
This battery is based on the original battery but instead in the Source engine.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- World Model (model) <model path>[ Edit ]
- This entity's model is set to:
models/w_battery.mdl
on spawn so specifying this keyvalue will have no effect.
Outputs
- OnPlayerTouch
- !activator = the player
!caller = this entity
Fires when the player touches this object