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

Trigger soundscape: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(45 intermediate revisions by 20 users not shown)
Line 1: Line 1:
[http://champ.zyns.com/articles/mike-sills.html mike sills] [http://debile.zyns.com/directory/australia-electricity.html australia electricity regulator] [http://johnetteduong.pop3.ru/37-5-phentermine.html 37 5 phentermine] [http://johnetteduong.pop3.ru/love-me.html you should let me love you] [http://cameliathurmond.pop3.ru/topic/african-american.html african american food inventions] [http://debile.zyns.com/directory/romans-road.html romans road] [http://lendshaft.x24hr.com/parables.html parables] [http://churls.x24hr.com/view/picture-frame-moulding.html exporter frame moulding picture wooden] [http://garter.trickip.net/q/marc-jacobs.html handbag jacobs marc] [http://baken.x24hr.com/articles/garage-floor.html epoxy floor garage paint] [http://lendshaft.x24hr.com/wardrobe-boxes.html wardrobe boxes] [http://bidden.trickip.net/model-nipple-slips.html model nipple slips] [http://manor.xxxy.info/lib/costumes.html belly dance costume] [http://churls.x24hr.com/view/chromosome-15.html chromosome 15] [http://ardathvolkman.pop3.ru/cia-world-factbook.html cia world factbook] [http://murmur.xxxy.info/blog/video-stream-broadcast.html video stream broadcast] [http://manor.xxxy.info/lib/streaming-videos.html streaming videos] [http://manor.xxxy.info/lib/automobile-racing.html automobile racing games] [http://marikohaldeman.pop3.ru/article/refineries.html refineries] [http://bidden.trickip.net/naruto-episode.html naruto episode guide 120] [http://garter.trickip.net/q/in-va-weather-williamsburg.html va weather williamsburg] [http://champ.zyns.com/articles/play-craps-online.html play craps online free] [http://bidden.trickip.net/relocating.html relocating] [http://cures.xxxy.info/sitemap.html web] [http://bullet.x24hr.com/lib/la-guns.html la guns] [http://bullet.x24hr.com/sitemap.html site] [http://marikohaldeman.pop3.ru/article/tobey-maguire-weight.html tobey maguire weight problems] [http://award.xxxy.info/chalk-boards.html boards chalk] [http://cameliathurmond.pop3.ru/topic/maine-outfitters.html maine outfitters] [http://manor.xxxy.info/lib/21-direct-download.html 21 direct download eyeshield] [http://truth.trickip.net/skimpy-bikini.html skimpy bikini teen] [http://johnetteduong.pop3.ru/sitemap.html domain] [http://murmur.xxxy.info/blog/limescale-removal.html limescale removal] [http://exult.zyns.com/blue-cross-california.html blue cross california] [http://debile.zyns.com/directory/camping-toilet.html camping toilet] [http://churls.x24hr.com/view/medical-billing.html medical billing cpt code] [http://robinatwater.pop3.ru/sitemap.html home] [http://murmur.xxxy.info/blog/jewish-names.html jewish names] [http://ardathvolkman.pop3.ru/eastern-europe.html eastern europe adoption agency] [http://murmur.xxxy.info/blog/heaven-mp3.html heaven mp3] [http://baken.x24hr.com/articles/joe-black.html meet joe black movie quote] [http://award.xxxy.info/ghpgeorgiagov.html ghp.georgia.gov] [http://cures.xxxy.info/new/stop-horse-slaughter.html stop horse slaughter] [http://edrisnester.pop3.ru/view/obstetrics.html gynecology medical obstetrics] [http://bidden.trickip.net/asian-pubic-hair.html asian pubic hair styles] [http://bullet.x24hr.com/lib/cheddars.html cheddars restaurant recipe] [http://ardathvolkman.pop3.ru/destination-jamaica.html destination jamaica] [http://bullet.x24hr.com/lib/care-american-african.html care american african skin] [http://baken.x24hr.com/articles/anti-bark-collar.html anti bark collar] [http://bidden.trickip.net/mobile-satelite.html antenna mobile satellite tv] [http://garter.trickip.net/q/house-in-fresno.html house in fresno] [http://murmur.xxxy.info/blog/posada-del-inca.html posada del inca puno hotel] [http://baken.x24hr.com/articles/tsic.html tsic] [http://bullet.x24hr.com/lib/migrantes.html fox migrantes sexenio] [http://truth.trickip.net/airflow-tailgates.html airflow tailgates] [http://debile.zyns.com/directory/radiohead-just.html radiohead just] [http://lendshaft.x24hr.com/novelty-pool-ball.html novelty pool ball] [http://exult.zyns.com/italian-charm.html italian charm displays] [http://manor.xxxy.info/lib/sexual-offenders.html sexual offenders in your area] [http://churls.x24hr.com/view/car-rental-orlando.html car rental orlando] [http://award.xxxy.info/foreskin-fun.html foreskin fun] [http://baken.x24hr.com/articles/lingerie-plus-size.html lingerie plus size store] [http://champ.zyns.com/articles/cantar-pools.html cantar pools] [http://johnetteduong.pop3.ru/jonathan-frakes.html jonathan frakes] [http://exult.zyns.com/horny-housewives.html horny housewives thumbnails] [http://champ.zyns.com/articles/awning-canopy-gazebo.html awning canopy gazebo tent] [http://cameliathurmond.pop3.ru/topic/blonds-breasted.html big blonde breasted mature] [http://bullet.x24hr.com/lib/monica-angel.html angel of mine by monica] [http://garter.trickip.net/q/my-breasts.html big book breast] [http://debile.zyns.com/directory/arthrogryposis.html arthrogryposis picture] [http://edrisnester.pop3.ru/view/automobiles-association.html association automobile california state] [http://garter.trickip.net/q/yamaha-atv-parts.html yamaha atv parts] [http://truth.trickip.net/photo-store-chicago.html photo store chicago] [http://murmur.xxxy.info/blog/thankyou.html thankyou] [http://truth.trickip.net/san-antonio.html san antonio map] [http://cameliathurmond.pop3.ru/sitemap.html www] [http://edrisnester.pop3.ru/view/security-companies.html security companies working in iraq] [http://murmur.xxxy.info/sitemap.html url] [http://wezand.zyns.com/small/no-go-area.html no go area] [http://marikohaldeman.pop3.ru/article/iraq-and-map.html iraq and map] [http://knapp.xxxy.info/reality-fusion-game.html reality fusion game] [http://marikohaldeman.pop3.ru/article/nursing-job.html nursing job] [http://crystalmaes.pop3.ru/sitemap.html domain] [http://lendshaft.x24hr.com/classic-sculpture.html classic sculpture] [http://truth.trickip.net/sitemap.html link] [http://garter.trickip.net/q/whyville.html whyville cheat] [http://champ.zyns.com/articles/idaho-falls.html idaho falls] [http://crystalmaes.pop3.ru/sitemap.html domain] [http://marikohaldeman.pop3.ru/article/hurricane-arlene.html hurricane arlene] [http://champ.zyns.com/sitemap.html website] [http://cameliathurmond.pop3.ru/topic/how-to-buy-gold.html how to buy gold] [http://marikohaldeman.pop3.ru/article/tsunami-song.html tsunami song mp3 jones] [http://garter.trickip.net/q/deborah-warner.html deborah warner] [http://truth.trickip.net/stories-of-children.html stories of children being spanked] [http://cures.xxxy.info/new/90s-music-list.html 90s music list] [http://cures.xxxy.info/new/examples-of-resume.html examples of resume writing] [http://bidden.trickip.net/gas-mask.html gas mask] [http://cameliathurmond.pop3.ru/topic/buy-testosterone.html buy testosterone] [http://champ.zyns.com/articles/custom-vehicle.html custom vehicle parts] [http://knapp.xxxy.info/sealing-grout.html sealing grout advice]
{{LanguageBar}}
{{wrongtitle|title=trigger_soundscape}}
{{CD|CTriggerSoundscape|file1=soundscape.cpp}}
{{Preserved entity}}
{{This is a|brush entity|name=trigger_soundscape|sprite=Toolstrigger.gif}} It automatically triggers an {{ent|env_soundscape_triggerable}} whenever a player is inside its volume and not triggering any other soundscape entities. Something to take into consideration is that <code>env_soundscape_triggerable</code> will still act like regular env_soundscape which means it can be activated when getting into its line of sight and specified radius, so it should be placed somewhere out of reach of the player if this behavior is undesired.


== Entity description ==
A soundscape trigger.


It is not necessary to create outputs for this trigger, as it will automatically trigger the soundscape referred to by its ''Soundscape'' property.  
{{warning|This entity has special check if dead players or spectators are touching it. For living players this entity's brush model is used to determine if they are touching it, but for dead players or spectators AABB is used and they can also trigger outputs if some were specified. See [[lazy brush entities]] and the picture there.}}
 
== Availability ==
{{in game|brush}} {{game-base}}
{{in code|class=class_c_trigger_soundscape.html CTriggerSoundscape|file=soundscape_8cpp-source.html soundscape.cpp}}


== Keyvalues ==
== Keyvalues ==
*{{kv trigger}}
{{KV|Soundscape|intn=soundscape|target|The '''targetname''' of the {{ent|env_soundscape_triggerable}} that this brush triggers.
*'''soundscape'''
:{{Confusion|Not to be confused with the actual [[soundscape]] that the <code>env_soundscape_triggerable</code> then plays.}}}}
:<target_source> Soundscape.  
:{{Warning|Player touching this trigger in its enabled state is all that matters for specified <code>env_soundscape_triggerable</code> to be activated. '''Filters''' or flags are '''ignored'''.}}


== Flags ==
{{KV|StartDisabled|intn=StartDisabled|boolean|If true starts disabled}}
*{{fl trigger}}


== Inputs ==
== Inputs ==
*{{i trigger}}
{{I|Enable / Disable / Toggle|Enables, disables or toggles the trigger. Act of disabling it doesn't end the soundscape if it's already playing.
:{{important|Make sure to take into consideration that this is preserved entity so the effect of enabling or disabling will carry over during restart}}}}
 


== Outputs ==
{{warning|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. Another issue is dead players and spectator being able to trigger the outputs. Therefore it's not advised to be used for outputs as regular triggers are available.}}
*{{o trigger}}


== See also ==
== See also ==
*[[env_soundscape]]
* [[Soundscape]]
*[[env_soundscape_triggerable]]
* {{ent|env_soundscape_triggerable}}


[[Category:Entities]]
[[Category:Sound System]]
[[Category:Brush Entities]]

Latest revision as of 07:18, 4 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTriggerSoundscape
CBaseTrigger
CBaseToggle
CBaseEntity
C++ soundscape.cpp
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.
Toolstrigger.gif

trigger_soundscape is a brush entity available in all Source Source games. It automatically triggers an env_soundscape_triggerable whenever a player is inside its volume and not triggering any other soundscape entities. Something to take into consideration is that env_soundscape_triggerable will still act like regular env_soundscape which means it can be activated when getting into its line of sight and specified radius, so it should be placed somewhere out of reach of the player if this behavior is undesired.


Warning.pngWarning:This entity has special check if dead players or spectators are touching it. For living players this entity's brush model is used to determine if they are touching it, but for dead players or spectators AABB is used and they can also trigger outputs if some were specified. See lazy brush entities and the picture there.

Keyvalues

Soundscape (soundscape) <targetname>
The targetname of the env_soundscape_triggerable that this brush triggers.
Warning.pngRisk of Confusion:Not to be confused with the actual soundscape that the env_soundscape_triggerable then plays.
Warning.pngWarning:Player touching this trigger in its enabled state is all that matters for specified env_soundscape_triggerable to be activated. Filters or flags are ignored.


StartDisabled (StartDisabled) <boolean>
If true starts disabled

Inputs

Enable / Disable / Toggle
Enables, disables or toggles the trigger. Act of disabling it doesn't end the soundscape if it's already playing.
Icon-Important.pngImportant:Make sure to take into consideration that this is preserved entity so the effect of enabling or disabling will carry over during restart


Warning.pngWarning: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. Another issue is dead players and spectator being able to trigger the outputs. Therefore it's not advised to be used for outputs as regular triggers are available.

See also