Env beverage: Difference between revisions
Jump to navigation
Jump to search
Note:These are not used for the vending machines in
Half-Life 2. Those are done with a func_button and point_template.
Note:This uses
In most games except Half-Life: Source, Half-Life Deathmatch: Source, and Jabroni Brawl: Episode 3, you will need to provide your own model as this one is not present.
Note:In
Black Mesa this entity is replaced by env_dispenser.
MyGamepedia (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{lang}}{{tabs|env_beverage|goldsrc=1|source=1|main=source}} | {{lang}}{{tabs|env_beverage|goldsrc=1|source=1|main=source}} | ||
{{CD|CEnvBeverage|file1=effects.cpp}} | {{CD|CEnvBeverage|file1=effects.cpp}} | ||
{{this is a|point entity|name=env_beverage | {{this is a|point entity|name=env_beverage}} It is a {{hl1|4}} legacy entity: the beverage vending machine. This entity dispenses [[item_sodacan|soda cans]] when {{ent|+use}}. | ||
These are not used for the vending machines in {{hl2| | {{Note|These are not used for the vending machines in {{hl2|2}}. Those are done with a {{ent|func_button}} and {{ent|point_template}}.}} | ||
{{Note|This uses <code>models/can.mdl</code> by default.<br>In most games except {{hls|1}}, {{hldms|1}}, and {{jbep3|1}}, you will need to provide your own model as this one is not present.}} | |||
{{Note|In {{bms|2}} this entity is replaced by {{ent|env_dispenser}}.}} | |||
{{ | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | |||
{{KV|Capacity|intn=health|integer|Number of cans in the dispenser. Default 10 (0 is treated as 10).}} | {{KV|Capacity|intn=health|integer|Number of cans in the dispenser. Default 10 (0 is treated as 10).}} | ||
{{KV|Beverage Type|intn=beveragetype|choices|Which [[skin]] to use. Vanilla {{hls}} skins described below:}} | {{KV|Beverage Type|intn=beveragetype|choices|Which [[skin]] to use. Vanilla {{hls}} skins described below:}} | ||
Line 22: | Line 21: | ||
</ol> | </ol> | ||
:{{note|While skin 6 cannot be selected, skins 7 and higher can. Only skins 0-5 will be used by "random", however.}} | :{{note|While skin 6 cannot be selected, skins 7 and higher can. Only skins 0-5 will be used by "random", however.}} | ||
==Inputs== | ==Inputs== | ||
{{IO|Activate|Same as Use. Dispenses a can}} | {{IO|Activate|Same as Use. Dispenses a can}} |
Revision as of 11:44, 8 August 2024
![]() |
---|
CEnvBeverage |
![]() |
env_beverage
is a point entity available in all Source games. It is a
Half-Life legacy entity: the beverage vending machine. This entity dispenses soda cans when +use.



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


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
- Capacity (health) <integer>
- Number of cans in the dispenser. Default 10 (0 is treated as 10).
- Beverage Type (beveragetype) <choices>
- Which skin to use. Vanilla
skins described below:
- "Coca-Cola" - A lime green can with what appears to be half a kiwifruit pictured, labelled "HAI !" in white.
- "Sprite" - A brown can with yellow droplets pictured, labelled "GLUB" in yellow.
- "Diet Coke" - A red/blue can with red berries pictured, labelled "GRAPE" in white.
- "Orange" - A blue and green can with a lighter blue face pictured, and a label that is too pixellated to read clearly.
- "Surge" - A dark green can with darker coloured ends, labelled "YUCK" in white.
- "Moxie" - A yellow/orange can with a fiery effect, labelled "DANTE" in dark red.
- Random - One of the first 6 skins found in the MDL will be chosen at random.
Note:While skin 6 cannot be selected, skins 7 and higher can. Only skins 0-5 will be used by "random", however.
Inputs
- Activate
- Same as Use. Dispenses a can