Env beverage: Difference between revisions
Jump to navigation
Jump to search
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.
SirYodaJedi (talk | contribs) m (Undo revision 337012 by SirYodaJedi (talk)) Tag: Undo |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 9: | Line 9: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Capacity|intn=health|integer|Number of cans in the dispenser.}} | {{KV|Capacity|intn=health|integer|Number of cans in the dispenser.}} | ||
{{KV|Beverage Type|intn=beveragetype|choices| | {{KV|Beverage Type|intn=beveragetype|choices|Which [[skin]] to use. Vanilla {{hls}} skins described below: | ||
:*0: Coca-Cola | :*0: "Coca-Cola" - A lime green can with what appears to be half a kiwifruit pictured, labelled "HAI !" in white. | ||
:*1: Sprite | :*1: "Sprite" - A brown can with yellow droplets pictured, labelled "GLUB" in yellow. | ||
:*2: Diet Coke | :*2: "Diet Coke" - A red/blue can with red berries pictured, labelled "GRAPE" in white. | ||
:*3: Orange | :*3: "Orange" - A blue and green can with a lighter blue face pictured, and a label that is too pixellated to read clearly. | ||
:*4: Surge | :*4: "Surge" - A dark green can with darker coloured ends, labelled "YUCK" in white. | ||
:*5: Moxie | :*5: "Moxie" - A yellow/orange can with a fiery effect, labelled "DANTE" in dark red. | ||
:*6: Random}} | :*6: Random}} | ||
{{KV Targetname}} | {{KV Targetname}} | ||
Line 21: | Line 21: | ||
==Inputs== | ==Inputs== | ||
{{IO|Activate|Same as Use. Dispenses a can}} | {{IO|Activate|Same as Use. Dispenses a can}} | ||
Revision as of 12:29, 10 August 2023
![]() |
---|
CEnvBeverage |
![]() |
Template:Entity It is a Half-Life legacy entity: the beverage dispenser. This entity dispenses soda cans (item_sodacan) when +used.
These are not used for the dispensers in Half-Life 2. Those are done with a func_button and point_template.


models/can.mdl
by default.In most games except



Keyvalues
- Capacity (health) <integer>
- Number of cans in the dispenser.
- Beverage Type (beveragetype) <choices>
- Which skin to use. Vanilla
skins described below:
- 0: "Coca-Cola" - A lime green can with what appears to be half a kiwifruit pictured, labelled "HAI !" in white.
- 1: "Sprite" - A brown can with yellow droplets pictured, labelled "GLUB" in yellow.
- 2: "Diet Coke" - A red/blue can with red berries pictured, labelled "GRAPE" in white.
- 3: "Orange" - A blue and green can with a lighter blue face pictured, and a label that is too pixellated to read clearly.
- 4: "Surge" - A dark green can with darker coloured ends, labelled "YUCK" in white.
- 5: "Moxie" - A yellow/orange can with a fiery effect, labelled "DANTE" in dark red.
- 6: Random
- 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
Inputs
- Activate
- Same as Use. Dispenses a can