Env beverage: Difference between revisions
Jump to navigation
Jump to search
Note:This uses
(Change description) |
(updates) |
||
Line 1: | Line 1: | ||
{{base point|env_beverage}} | {{lang|Env beverage}} | ||
{{base point|env_beverage}} It is a [[Half-Life]] legacy entity: the beverage dispenser. This entity dispenses soda cans ({{ent|item_sodacan}}) when {{ent|+use}}d. | |||
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, you will need to provide your own model as this one is not present.}} | ||
{{code class|CEnvBeverage|effects.cpp}} | |||
{{ | |||
== | ==Keyvalues== | ||
{{ | {{KV|Capacity (health)|integer|Number of cans in the dispenser.}} | ||
{{ | {{KV|Beverage Type (beveragetype)|choices|Type of the cans. | ||
{{ | :*0: Coca-Cola | ||
:*1: Sprite | |||
:*2: Diet Coke | |||
:*3: Orange | |||
:*4: Surge | |||
:*5: Moxie | |||
:*6: Random}} | |||
{{KV BaseEntity|css=1}} | |||
== | ==Inputs== | ||
{{ | {{IO|Activate|Enable this dispenser. There is no way to deactivate it.}} | ||
{{I BaseEntity|prel4d=1}} | |||
== | ==Outputs== | ||
{{O BaseEntity|l4d=1}} |
Revision as of 14:35, 22 September 2018
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.

models/can.mdl
by default, you will need to provide your own model as this one is not present.Keyvalues
- Beverage Type (beveragetype) ([todo internal name (i)]) <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.