Env soundscape: Difference between revisions
Jump to navigation
Jump to search
Note:To use an individual sound that can be controlled through the I/O System, use ambient_generic.
TheLazyPanda (talk | contribs) m (updated with template:soundscape lists) |
TheLazyPanda (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
== Entity description == | == Entity description == | ||
[[Image:{{PAGENAME}}.png|left]]An entity used to place and activate [[Soundscapes]] inside a map.{{note|To use an individual sound that can be controlled through the [[Inputs and Outputs|I/O System]], use [[ambient_generic]].}} | |||
== Keyvalues == | == Keyvalues == | ||
* {{KV Targetname}} | * {{KV Targetname}} | ||
* {{KV Parentname}} | * {{KV Parentname}} | ||
Line 19: | Line 15: | ||
: <integer> 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). | : <integer> 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''' | ||
: <string> Soundscape - The name of the soundscape to use | : <string> Soundscape - The name of the soundscape to use. | ||
:{| class=standard-table | :{| class=standard-table | ||
! Literal Value || Description | ! Literal Value || Description | ||
Line 35: | Line 31: | ||
* '''position''0-7''''' | * '''position''0-7''''' | ||
: <target_destination> Sound Position ''0-7'' - Sound positions that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world. | : <target_destination> Sound Position ''0-7'' - Sound positions that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world. | ||
== Inputs == | == Inputs == | ||
* {{I Targetname}} | * {{I Targetname}} | ||
* {{I Parentname}} | * {{I Parentname}} | ||
Line 44: | Line 42: | ||
* '''ToggleEnabled''' | * '''ToggleEnabled''' | ||
: Toggle the soundscape enabled state. | : Toggle the soundscape enabled state. | ||
== Outputs == | == Outputs == | ||
* {{O Targetname}} | * {{O Targetname}} | ||
* '''OnPlay''' | * '''OnPlay''' | ||
: Fired when this soundscape becomes the active one. | : Fired when this soundscape becomes the active one. | ||
== See also == | |||
* [[Soundscapes]] | |||
* [[env_soundscape_proxy]] | |||
* {{Soundscape lists}} | |||
* [[ambient_generic]] |
Revision as of 23:58, 19 January 2010
Template:Wrongtitle Template:Base point
Entity description
An entity used to place and activate Soundscapes inside a map.

Keyvalues
- 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
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
- radius
- <integer> 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
- <string> Soundscape - The name of the soundscape to use.
Literal Value Description Nothing Nothing Automatic Automatic Automatic_Dialog Automatic (dialog) GenericIndoor Indoor GenericOutdoor Outdoor
- position0-7
- <target_destination> Sound Position 0-7 - Sound positions that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world.
Inputs
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
- EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
- Disabled
- Todo: Write description. (It's not a typo - both Disable and Disabled exist.)
- ToggleEnabled
- Toggle the soundscape enabled state.
Outputs
- OnPlay
- Fired when this soundscape becomes the active one.
See also
|