item_battery
Jump to navigation
Jump to search
item_battery
is a model entity available in Black Mesa. This is a portable battery that charges armor for the HEV suit when picked up. This entity also creates dynamic light source.


- They're VPhysics objects (disabled in multiplayer mode).
- Respawn in multiplayer mode (item_weapon_ entities creating xen portal effects as well).
- No physics and collision in multiplayer.
- Model can be changed to your own via the parameter (which is not in the FGD by default, added in Enhanced Black Mesa FGD).

![]() |
---|
CItem_battery |

- Light color (lightcolor) "20 181 214 255"
- Appearance (style) "Flicker A"
- Light Intensity (Intensity) "256"
- Texture Name (texName) "lights/lightcookie_battery.vtf"
- Enable Texture Light (bTexLight) "1"
- Specular Multiplier (SpecMultiplier) "0"
- Light Type (lighttype) "2"
- Range (range) "30[confirm]"


Keyvalues
- Respawn Time (respawntime) <float>
- Time waited between respawns in multiplayer mode.
- Model (model) <model path> !FGD
- Model to use for this entity.
Outputs
- OnPlayerDenied <void>
- Fires if the player has not picked it up when touched.
- OnPlayerPickup <void>
- Fires if the player picked it up.
Inputs
- AttachTo <void>
- Attaches this entity to !activator, the entity becomes impossible to pick up. It becomes invisible in first person mode, but only in Steam versions of the game only.
- Respawn <void>
- Respawn this entity in multiplayer. Fired by this entity after the amount of time from Respawn Time property.
- Disable <void>
- Make this item invisible and disable the ability to be picked up by players.

- Enable <void>
- Make this item visible and enable the ability to be picked up by players.
- Fall <void>
- Doesn't seem to work.
Flags
- Start Asleep : [1]
- Motion Disabled : [2]
- Hard Respawn : [4]
- Respawn this entity even if it's already spawned. The timer will cycle throughout entire round. Picking up does not restart the timer.
- Silent Pickup : [8]
- Pick up this entity with no sound and HUD animation.
Dedicated Console Variables
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_item_battery_value | 15 | Integer | The amount of armor that will be added to the current armor value. With 0 it will never be picked up by player. |
cl_battery_dlights | 1 | Bool | Enable/disable client side rendering for dynamic point deferred lighting from this entity. |
cl_pickup_colorcorrection | 1 | Bool | Enable/disable color correction when this entity is picked up. |
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_battery | 15 | Integer | The amount of armor that will be added to the current armor value. ![]() |
cl_battery_dlights | 1 | Bool | Enable/disable light_dynamic from this entity. |
cc_pickup_enable | 1 | Bool | Enable/disable color correction when this entity is picked up. |
See Also
- item_suitcharger - armor charger for the suit
- misc_dead_hev - dead HEV scientist