item_ammo_energy

From Valve Developer Community
Jump to navigation Jump to search
Item ammo energy.png

item_ammo_energy is a model entity available in Black Mesa Black Mesa. It's a metal box of Wikipedia icon uranium-235 (which is Wikipedia icon depleted), used by players to charge weapon_tau and weapon_gluon.

Note.pngNote:Most objects that inherit class CBasePickup in Black Mesa have the following features:
  • 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).
Icon-Bug.pngBug:Doesn't collide with other CBasePickup and weapon_ entities (not in Black Mesa (mod)).
Warning.pngWarning:When creating a level for a multiplayer game, lower this object halfway underground, otherwise it will "fly in the air". This is due to the origin position of the original model is in center of the model, and not under the model itself (unlike other such items).
Example.
Class hierarchy
CItem_ammo_energy
CBasePickup
CBaseAnimating
CBaseEntity

Keyvalues

Respawn Time (respawntime) <float>
Time waited between respawns in multiplayer mode.
Model (model) <model path> !FGD
Model to use for this entity.
Note.pngNote:Multiplayer mode will not override this value for models with animated sheen if the value isn't default.

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.
Icon-Important.pngImportant:Does not disable physics and collision.
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

Black Mesa Black Mesa

Cvar/Command Parameters or default value Descriptor Effect
sk_item_"ammo_energy""_pickup" 20 Integer The amount of ammo to give.
Icon-Bug.pngBug:Can't be changed with the console due to quotation marks.
PlacementTip.pngWorkaround:Use the addon (see below) to make it possible to change all the sk_item_" console variables by using new.

Black Mesa (mod) Black Mesa (mod)

Cvar/Command Parameters or default value Descriptor Effect
sk_item_ammo_energy_pickup 20 Integer The amount of ammo to give.

See also

External links