Env soundscape triggerable: 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:
(Undo revision 151979 by TomEdwards (talk).) |
(updates) |
||
Line 1: | Line 1: | ||
{{ | {{lang|Env soundscape triggerable}} | ||
[[File:env_soundscape.png|left]]{{base point|env_soundscape_triggerable}} This entity works just like {{ent|env_soundscape}} but can only be activated with {{ent|trigger_soundscape}}. | |||
{{ | |||
{{PreservedEnt}} | |||
{{code class|CEnvSoundscapeTriggerable|soundscape.cpp}} | |||
{{clr}} | {{clr}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Radius (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 (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 (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 {{ent|info_target}} or anything visible).}} | |||
{{KV EnableDisable}} | |||
{{KV BaseEntity}} | |||
| | |||
==Inputs== | ==Inputs== | ||
{{IO|ToggleEnabled|Toggle the soundscape on/off.}} | |||
{{I EnableDisable}} | |||
{{I BaseEntity}} | |||
==Outputs== | ==Outputs== | ||
{{IO|OnPlay|Fired when this soundscape becomes the active one.}} | |||
{{O BaseEntity|l4d=1}} | |||
== See | ==See Also== | ||
*[[Soundscapes]] | |||
*[[Soundscape lists]] | |||
[[Category:Sound System]] | |||
Revision as of 21:54, 1 October 2018


Template:Base point This entity works just like env_soundscape but can only be activated with trigger_soundscape.









If the game has round restart mechanics this entity may not behave as expected:
|
Keyvalues
- Radius (radius) ([todo internal name (i)]) <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) ([todo internal name (i)]) <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) ([todo internal name (i)]) 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).
- 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.