This article's documentation is for anything that uses the Source engine. Click here for more information.

Env soundscape triggerable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Wrote most of the entity data.)
No edit summary
 
(36 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{wrongtitle|title=env_soundscape_triggerable}}
{{LanguageBar}}
{{Preserved entity}}
{{CD|CEnvSoundscapeTriggerable|file1=soundscape.cpp}}
{{This is a|point entity|name=env_soundscape_triggerable|sprite=env_soundscape.png}} This entity is required when you want to use {{ent|trigger_soundscape}} otherwise works just like {{ent|env_soundscape}}.


==Entity Description==
A point entity that works like the [[env_soundscape]] entity except that it works in conjunction with the [[trigger_soundscape]] entity to determine when a player hears it.


This entity has the same keyvalues, (non-existant) flags, inputs, and outputs as [[env_soundscape]].


==Availability==
{{OtherKIO|env_soundscape|All}}
{{in game|point}} {{game-base}}
{{in code|class=CEnvSoundscapeTriggerable|file=soundscape.cpp}}


==Keyvalues==
== See also ==
* {{kv targetname}}
* [[Soundscapes]]
* {{kv parentname}}
* [[Soundscape lists]]
* {{kv enabledisable}}
* {{ent|trigger_soundscape}}
* '''radius'''
* {{ent|env_soundscape}}
: <?> 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 - The name of the soundscape to use. Corresponds to an entry in the ''soundscapes*.txt'' file in the ''hl2acripts'' directory.
:{|
! Literal Value || Description
|-
| Nothing || Nothing
|-
| Automatic || Automatic
|-
| Automatic_Dialog || Automatic (dialog)
|-
| GenericIndoor || Indoor
|-
| GenericOutdoor || Outdoor
|}
* '''position''0-7'''''
: <?> Sound Position ''0-7'' - A sound position that will be referenced inside the soundscape text file. Usually used to position a set of sounds within the world.


<!--This entity doesn't have any flags.-->
[[Category:Sound System]]
==Inputs==
* {{i targetname}}
* {{i parentname}}
* '''Disable'''
:
* '''Enable'''
:
* '''Disabled'''
:
* '''ToggleEnabled'''
:
 
==Outputs==
* {{o targetname}}
* '''OnPlay'''
:
 
[[Category:Entities]]

Latest revision as of 07:22, 4 May 2025

English (en)Translate (Translate)
Recycle-warning.png
This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Portal 2Counter-Strike: Global Offensive
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CEnvSoundscapeTriggerable
CEnvSoundscape
CServerOnlyEntity
CBaseEntity
C++ soundscape.cpp
Env soundscape.png

env_soundscape_triggerable is a point entity available in all Source Source games. This entity is required when you want to use trigger_soundscape otherwise works just like env_soundscape.


Note.pngNote:All Keyvalues / Inputs / Outputs are same as env_soundscape.

See also