This article relates to the game "Half-Life: Blue Shift". Click here for more information.
This article relates to the game "Half-Life: Opposing Force". Click here for more information.
This article relates to the game "Half-Life". Click here for more information.

item_battery

From Valve Developer Community
Revision as of 13:28, 4 August 2024 by Nescius (talk | contribs)
Jump to navigation Jump to search

Worldmodel.
C++ Class hierarchy
CItemBattery
CItem
CBaseEntity
C++ items.cpp

item_battery is a point entity available in Half-Life Half-Life, Half-Life: Opposing Force Half-Life: Opposing Force, and Half-Life: Blue Shift Half-Life: Blue Shift.

Description

This item charges up the HEV suit by 15 energy points (regardless of the difficulty setting).

In Opposing Force, it powers up Adrian Shephard's PCV in a similar manner to Gordon's HEV, and by the same amount.

In Blue Shift, it cannot be used to repair Barney's armor vest, but the entity itself still exists.

In a deathmatch game, the item respawns 30 seconds after being collected.

Key Values

Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.
Delay before trigger (delay) <integer>
Delay in seconds before firing the targeted entity.
Killtarget (killtarget) <targetname>
Entity to remove when activated.


Name (targetname) <string>
The targetname that other entities refer to this entity by.
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.

Flags

Not In Deathmatch : [2048]
Prevent this entity from attempting to spawn when deathmatch (multiplayer) is enabled.
Tip.pngTip:This is intercepted before the entity spawns (hardcoded in the engine), and as such prevents it from ever contributing to the edict limit. As such, it may be desirable to set this on entities that delete themselves in multiplayer anyway, such as monsters and info_null, to prevent them from contributing towards map spawn edict limit crashes on maps with lots of entities.