Env beverage: Difference between revisions
Jump to navigation
Jump to search
Note:This uses
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.
(-added class hierarchy) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 5: | Line 5: | ||
These are not used for the dispensers in Half-Life 2. Those are done with a {{ent|func_button}} and {{ent|point_template}}. | These are not used for the dispensers in Half-Life 2. Those are done with a {{ent|func_button}} and {{ent|point_template}}. | ||
{{note|This uses <code>models/can.mdl</code> by default, you will need to provide your own model as this one is not present.}} | {{note|This uses <code>models/can.mdl</code> by default. In most games except {{hls|4}}, {{hldms|4}}, and {{jbep3|4}}, you will need to provide your own model as this one is not present.}} | ||
==Keyvalues== | ==Keyvalues== | ||
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 11:31, 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>
- Type of the cans.
- 0: Coca-Cola
- 1: Sprite
- 2: Diet Coke
- 3: Orange
- 4: Surge
- 5: Moxie
- 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
/