Env soundscape triggerable: Difference between revisions
Jump to navigation
Jump to search
m (→Availability: Location) |
(Wrote most of the entity data.) |
||
Line 2: | Line 2: | ||
==Entity Description== | ==Entity Description== | ||
A point entity that works like the [[env_soundscape]] entity except that it works in conjunction with the [[trigger_soundscape]] entity to determine when a player hears it. | |||
This entity has the same keyvalues, flags, inputs, and outputs as [[env_soundscape]]. | This entity has the same keyvalues, (non-existant) flags, inputs, and outputs as [[env_soundscape]]. | ||
==Availability== | ==Availability== | ||
{{in game|point}} {{game-base}} | {{in game|point}} {{game-base}} | ||
{{in code|class=CEnvSoundscapeTriggerable|file=soundscape.cpp}} | {{in code|class=CEnvSoundscapeTriggerable|file=soundscape.cpp}} | ||
==Keyvalues== | |||
* {{kv targetname}} | |||
* {{kv parentname}} | |||
* {{kv enabledisable}} | |||
* '''radius''' | |||
: <?> Radius - If set to <code>-1</code>, then the player can hear the soundscape as long as he can see it (regardless of distance to it). | |||
* '''soundscape''' | |||
: <?> Soundscape - The name of the soundscape to use. Corresponds to an entry in the ''soundscapes*.txt'' file in the ''hl2acripts'' directory. | |||
:{| | |||
! Literal Value || Description | |||
|- | |||
| Nothing || Nothing | |||
|- | |||
| Automatic || Automatic | |||
|- | |||
| Automatic_Dialog || Automatic (dialog) | |||
|- | |||
| GenericIndoor || Indoor | |||
|- | |||
| GenericOutdoor || Outdoor | |||
|} | |||
* '''position''0-7''''' | |||
: <?> Sound Position ''0-7'' - A sound position that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world. | |||
<!--This entity doesn't have any flags.--> | |||
==Inputs== | |||
* {{i targetname}} | |||
* {{i parentname}} | |||
* '''Disable''' | |||
: | |||
* '''Enable''' | |||
: | |||
* '''Disabled''' | |||
: | |||
* '''ToggleEnabled''' | |||
: | |||
==Outputs== | |||
* {{o targetname}} | |||
* '''OnPlay''' | |||
: | |||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 01:10, 12 April 2006
Entity Description
A point entity that works like the env_soundscape entity except that it works in conjunction with the trigger_soundscape entity to determine when a player hears it.
This entity has the same keyvalues, (non-existant) flags, inputs, and outputs as env_soundscape.
Availability
Template:In game Template:Game-base Template:In code
Keyvalues
- <?> Radius - If set to
-1
, then the player can hear the soundscape as long as he can see it (regardless of distance to it).
- soundscape
- <?> Soundscape - The name of the soundscape to use. Corresponds to an entry in the soundscapes*.txt file in the hl2acripts directory.
Literal Value Description Nothing Nothing Automatic Automatic Automatic_Dialog Automatic (dialog) GenericIndoor Indoor GenericOutdoor Outdoor
- position0-7
- <?> Sound Position 0-7 - A sound position that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world.
Inputs
- Enable
- Disabled
- ToggleEnabled
Outputs
- Template:O targetname
- OnPlay