Env beverage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
m (Fix internal name format)
Line 9: Line 9:


==Keyvalues==
==Keyvalues==
{{KV|Capacity (health)|integer|Number of cans in the dispenser.}}
{{KV|Capacity|intn=health|integer|Number of cans in the dispenser.}}
{{KV|Beverage Type (beveragetype)|choices|Type of the cans.
{{KV|Beverage Type|intn=beveragetype|choices|Type of the cans.
:*0: Coca-Cola
:*0: Coca-Cola
:*1: Sprite
:*1: Sprite

Revision as of 09:31, 2 April 2021

English (en)中文 (zh)Translate (Translate)

Template:Base point 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.

Note.pngNote:This uses models/can.mdl by default, you will need to provide your own model as this one is not present.
C++ In code, it is represented by theCEnvBeverageclass, defined in theeffects.cppfile.

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


Inputs

Activate
Enable this dispenser. There is no way to deactivate it.


Outputs