This article's documentation is for the "GoldSrc" engine. Click here for more information.

Env beverage (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{tabs|env_beverage|goldsrc = 1|source = 1|main = source}}  
{{TabsBar|main=Env beverage}}
{{This is a|name=env_beverage|e0|engine=1}} This entity dispenses [[item_sodacan (GoldSrc)|soda cans]].
{{this is a|point entity|name=env_beverage|engine=GoldSrc}} This entity dispenses [[item_sodacan (GoldSrc)|soda cans]] when [[use]]d.


==Key Values==
==Key Values==
[[File:Soda can skins.png|thumb|The six flavors of soft drinks in {{hl1|2}}.]]
{{hl1_kv_targetname}}
{{hl1_kv_targetname}}
{{KV Angles}}
{{KV Angles}}
{{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=skin|choices|Which [[skin]] to use.}}
{{KV|Beverage Type|intn=skin|integer choices|Which [[skin]] to use for the spawned can. Vanilla {{hl}} skins described below:}}
:{| class=standard-table
:<ol start="0"><!--
! Value || Description
--><li> '''"Coca-Cola"''' - A lime green can with what appears to be half a kiwifruit pictured, labelled "{{mono|HAI !}}". <!--
|-
--><li> '''"Sprite"''' - A brown can with yellow droplets pictured, labelled "{{mono|GLUB}}". <!--
| 0 || Coca-Cola
--><li> '''"Diet Coke"''' - A red/blue can with red berries pictured, labelled "{{mono|GRAPE}}". <!--
|-
--><li> '''"Orange"''' - A blue and green can with a lighter blue face pictured, labelled "{{mono|GUTHRIE}}". <!--
| 1 || Sprite
--><li> '''"Surge"''' - A dark green can with darker coloured ends, labelled "{{mono|YUCK}}". <!--
|-
--><li> '''"Moxie"''' - A yellow/orange can with a fiery effect, labelled "{{mono|DANTE}}". <!--
| 2 || Diet Coke
--><li> '''Random''' - One of the first 6 skins found in the MDL will be chosen at random.
|-
</ol>
| 3 || Orange
:{{note|While skin 6 cannot be selected, skins 7 and higher can. Only skins 0-5 will be used by "random", however.}}
|-
| 4 || Surge
|-
| 5 || Moxie
|-
| 6 || Random
|}

Latest revision as of 23:18, 28 May 2025

Source Engine ( General | Black Mesa )
edit

env_beverage is a point entity available in all GoldSrc GoldSrc games. This entity dispenses soda cans when used.

Key Values

The six flavors of soft drinks in Half-Life Half-Life.
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Capacity (health) <integer>
Number of cans in the dispenser.
Beverage Type (skin) <integer choices>
Which skin to use for the spawned can. Vanilla Half-Life skins described below:
  1. "Coca-Cola" - A lime green can with what appears to be half a kiwifruit pictured, labelled "HAI !".
  2. "Sprite" - A brown can with yellow droplets pictured, labelled "GLUB".
  3. "Diet Coke" - A red/blue can with red berries pictured, labelled "GRAPE".
  4. "Orange" - A blue and green can with a lighter blue face pictured, labelled "GUTHRIE".
  5. "Surge" - A dark green can with darker coloured ends, labelled "YUCK".
  6. "Moxie" - A yellow/orange can with a fiery effect, labelled "DANTE".
  7. Random - One of the first 6 skins found in the MDL will be chosen at random.
Note.pngNote:While skin 6 cannot be selected, skins 7 and higher can. Only skins 0-5 will be used by "random", however.