Trigger 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:
Warning:Doesn't use filters or flags to determine whether the soundscape should be activated or not.
Note:As this entity is derived from CBaseTrigger it has regular trigger properties available. Filters and flags work on outputs but because this is a preserved entity and the filters are not, the filter will be lost upon round restart and not set up again so it's not advised to be used for those purposes as regular triggers are available.
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CTriggerSoundscape|file1=soundscape.cpp}} | |||
[[File:Toolstrigger.gif|left]] | [[File:Toolstrigger.gif|left]] | ||
{{this is a|brush entity|name=trigger_soundscape}} It automatically triggers an {{ent|env_soundscape_triggerable}} whenever a player is inside its volume and not triggering any other soundscape entities. | {{this is a|brush entity|name=trigger_soundscape}} It automatically triggers an {{ent|env_soundscape_triggerable}} whenever a player is inside its volume and not triggering any other soundscape entities. | ||
Line 7: | Line 6: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Soundscape|intn=soundscape|target|Targetname of the {{ent|env_soundscape_triggerable}} that this brush triggers. {{ | {{KV|Soundscape|intn=soundscape|target|'''Targetname''' of the {{ent|env_soundscape_triggerable}} that this brush triggers. | ||
{{KV| | :{{Confusion|Not to be confused with the actual soundscape that the <tt>env_soundscape_triggerable</tt> then plays.}}}} | ||
{{KV|StartDisabled|intn=StartDisabled|boolean|If true starts disabled}} | |||
{{Warning|Doesn't use filters or flags to determine whether the soundscape should be activated or not. }} | |||
== Inputs == | |||
{{I|Enable / Disable / Toggle|Enables, disables or toggles the trigger. Act of disabling it doesn't stop the soundscape from playing. (make sure to take into consideration that this is preserved entity)}} | |||
{{note|As this entity is derived from CBaseTrigger it has [[CBaseTrigger|regular trigger properties]] available. Filters and flags work on outputs but because this is a preserved entity and the filters are not, the filter will be lost upon round restart and not set up again so it's not advised to be used for those purposes as regular triggers are available.}} | |||
== See also == | == See also == | ||
*[[Soundscape]] | * [[Soundscape]] | ||
*{{ent|env_soundscape_triggerable}} | * {{ent|env_soundscape_triggerable}} | ||
[[Category:Sound System]] | [[Category:Sound System]] |
Revision as of 16:16, 1 October 2024


![]() |
---|
CTriggerSoundscape |
![]() |
trigger_soundscape
is a brush entity available in all Source games. It automatically triggers an env_soundscape_triggerable whenever a player is inside its volume and not triggering any other soundscape entities.









If the game has round restart mechanics this entity may not behave as expected:
|
Keyvalues
- Soundscape (soundscape) <targetname>
- Targetname of the env_soundscape_triggerable that this brush triggers.
Risk of Confusion:Not to be confused with the actual soundscape that the env_soundscape_triggerable then plays.
- StartDisabled (StartDisabled) <boolean>
- If true starts disabled

Inputs
- Enable / Disable / Toggle
- Enables, disables or toggles the trigger. Act of disabling it doesn't stop the soundscape from playing. (make sure to take into consideration that this is preserved entity)
