Env soundscape: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
**GenericOutdoor
**GenericOutdoor


* '''Sound Position 0''' ''position0 <target_destination>''
* '''position0'''
* '''Sound Position 1''' ''position1 <target_destination>''
**<target_destination> Sound Position 0
* '''Sound Position 2''' ''position2 <target_destination>''
* '''position1'''
* '''Sound Position 3''' ''position3 <target_destination>''
**<target_destination> Sound Position 1
* '''Sound Position 4''' ''position4 <target_destination>''
* '''position2'''
* '''Sound Position 5''' ''position5 <target_destination>''
**<target_destination> Sound Position 2
* '''Sound Position 6''' ''position6 <target_destination>''
* '''position3'''
* '''Sound Position 7''' ''position7 <target_destination>''
**<target_destination> Sound Position 3
* '''position4'''
**<target_destination> Sound Position 4
* '''position5'''
**<target_destination> Sound Position 5
* '''position6'''
**<target_destination> Sound Position 6
* '''position7'''
**<target_destination> Sound Position 7
: Sound positions that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world.
: Sound positions that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world.



Revision as of 19:55, 9 July 2005

Template:Wrongtitle

Entity Description

Entity Name: env_soundscape

An entity to control sound in an area. The active soundscape at any time is the last one that had line-of-sight to the player, and was within the radius.

Keyvalues

<integer> 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> The name of the soundscape to use. Corresponds to an entry in the soundscapes*.txt file in the scripts directory.
    • Nothing
    • Automatic
    • Automatic_Dialog
    • GenericIndoor
    • GenericOutdoor
  • position0
    • <target_destination> Sound Position 0
  • position1
    • <target_destination> Sound Position 1
  • position2
    • <target_destination> Sound Position 2
  • position3
    • <target_destination> Sound Position 3
  • position4
    • <target_destination> Sound Position 4
  • position5
    • <target_destination> Sound Position 5
  • position6
    • <target_destination> Sound Position 6
  • position7
    • <target_destination> Sound Position 7
Sound positions that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world.

Inputs

  • ToggleEnabled
Toggle the soundscape enabled state.

Outputs

Fired when this soundscape becomes the active one.

See Also