Env soundscape: Difference between revisions
Jump to navigation
Jump to search
Important:This is a preserved entity in 






.
If the game has round restart mechanics this entity may not behave as expected:
Tip:In some games such as TF2, soundscape entities cannot be "seen" through water, in which case a triggerable soundscape is a useful workaround.
(env_soundscape_triggerable) |
(-removed irrelevant kio, internal names format) |
||
Line 11: | Line 11: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Radius | {{KV|Radius|intn=radius|int|Defines the entity's sphere of influence. Players must also have [[LOS]] to the entity for it to trigger. -1 means infinite range.}} | ||
{{KV|Soundscape | {{KV|Soundscape|intn=soundscape|string|The name of the soundscape to play. Some examples are provided, but the actual list is not. The best way to browse soundscapes is from within the game with the <code>playsoundscape</code> console command.}} | ||
{{KV|Sound Position 0 | {{KV|Sound Position 0|intn=position0|to=Sound Position 7|intn2=position7|targetname|Entities which define the location from which any positioned sounds play. Must be entities that the [[client]] knows about (e.g {{ent|info_target}} or anything visible).}} | ||
{{KV Targetname}} | |||
{{KV EnableDisable}} | {{KV EnableDisable}} | ||
==Inputs== | ==Inputs== | ||
{{IO|ToggleEnabled|Toggle the soundscape on/off.}} | {{IO|ToggleEnabled|Toggle the soundscape on/off.}} | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnPlay|Fired when this soundscape becomes the active one.}} | {{IO|OnPlay|Fired when this soundscape becomes the active one.}} | ||
==See Also== | ==See Also== |
Revision as of 07:40, 5 October 2022
Template:Base point It changes the active soundscape of players, and defines where positioned sounds within it play from. A player must be within the entity's radius and be able to see it for the change to take place. The entity's soundscape will then play until another one takes over. If more than one soundscape entity is fighting for control, the nearest wins.









If the game has round restart mechanics this entity may not behave as expected:
|
env_soundscape_triggerable is a related entity identical to env_soundscape, but for use in conjunction with the brush entity trigger_soundscape.

Keyvalues
- Radius (radius) <integer>
- Defines the entity's sphere of influence. Players must also have LOS to the entity for it to trigger. -1 means infinite range.
- Soundscape (soundscape) <string>
- The name of the soundscape to play. Some examples are provided, but the actual list is not. The best way to browse soundscapes is from within the game with the
playsoundscape
console command.
- Sound Position 0 (position0) to Sound Position 7 (position7) <targetname>
- Entities which define the location from which any positioned sounds play. Must be entities that the client knows about (e.g info_target or anything visible).
- 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
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Inputs
- ToggleEnabled
- Toggle the soundscape on/off.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
- OnPlay
- Fired when this soundscape becomes the active one.