This article's documentation is for anything that uses the Source engine. Click here for more information.

env_beverage

From Valve Developer Community
Jump to: navigation, search
Underlinked - Logo.png
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
English (en)русский (ru)中文 (zh)
... Icon-Important.png
class hierarchy
CEnvBeverage defined in effects.cpp
CBaseEntity

env_beverage is a point entity available in all Source Source games before Portal 2: Community Edition Portal 2: Community Edition. It is a Half-Life Half-Life legacy entity: the beverage vending machine. This entity dispenses soda cans (item_sodacan) when +used.

These are not used for the vending machines in Half-Life 2. Those are done with a func_button and point_template.

Note.pngNote:This uses 🖿models/can.mdl by default.
In most games except Half-Life: Source Half-Life: Source, Half-Life Deathmatch: Source Half-Life Deathmatch: Source, and Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3, you will need to provide your own model as this one is not present.

Keyvalues

Capacity (health) <integer>
Number of cans in the dispenser.
Beverage Type (beveragetype) <choices>
Which skin to use. Vanilla Half-Life: Source skins described below:
  1. "Coca-Cola" - A lime green can with what appears to be half a kiwifruit pictured, labelled "HAI !" in white.
  2. "Sprite" - A brown can with yellow droplets pictured, labelled "GLUB" in yellow.
  3. "Diet Coke" - A red/blue can with red berries pictured, labelled "GRAPE" in white.
  4. "Orange" - A blue and green can with a lighter blue face pictured, and a label that is too pixellated to read clearly.
  5. "Surge" - A dark green can with darker coloured ends, labelled "YUCK" in white.
  6. "Moxie" - A yellow/orange can with a fiery effect, labelled "DANTE" in dark red.
  7. Random - One of the first 6 skins found in the MDL will be chosen at random.

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Inputs

Activate
Same as Use. Dispenses a can