Env speaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(42 intermediate revisions by 27 users not shown)
Line 1: Line 1:
[http://marlan.alient.info/ marlan] [http://giardinaggio.behav.info/ giardinaggio cesoie] [http://exitpolls.alient.info/ exit polls] [http://lanni.alient.info/ lanni] [http://lastelladegliangeli.behav.info/ la stella degli angeli jonathan snow] [http://sonne.enlard.info/ sonne] [http://cumeating.behav.info/ cum eating] [http://cumeating.enlard.info/ cum eating] [http://albergo4stella.enlard.info/ albergo 4 stella cannes] [http://telefonoportatile.enlard.info/ telefono portatile aladino] [http://sexpublic.demogen.info/ sex public] [http://chido.etotest.info/ chido] [http://kicker.wedged.info/ kicker] [http://scarpevicini.behav.info/ scarpe vicini donna] [http://omosessualit.demogen.info/ omosessualit] [http://mbytesecurity.demogen.info/ mbytesecurity] [http://etotest.info/index5_500.html url] [http://stefaniasandrelli.enlard.info/ stefania sandrelli porca] [http://riodejaneiro.etotest.info/ rio de janeiro volo] [http://eaudetoilettela.enlard.info/ eau de toilette la perla vapo] [http://kaibeyblade.wedged.info/ kai beyblade] [http://dittafrcampo.wedged.info/ ditta f r campo ligure] [http://ferristiroconpiastra.etotest.info/ ferri stiro con piastra ceramica] [http://sonoradinamita.etotest.info/ sonora dinamita] [http://windowshomeedition.etotest.info/ windows home edition] [http://behav.info/index2_250.html page] [http://zonealigator.skains.info/ zone aligator] [http://albergospotorno.enlard.info/ albergo spotorno] [http://nokian80.enlard.info/ nokia n80] [http://publicitawind.demogen.info/ publicita wind] [http://isof.alient.info/ isof] [http://s5000accessori.behav.info/ s5000 accessori] [http://logitechmobile.enlard.info/ logitech mobile] [http://dvdcure.alient.info/ dvd cure] [http://escastellminorca.enlard.info/ es castell minorca] [http://atix700256mb.alient.info/ ati x700 256 mb] [http://tizianoferro.enlard.info/ tiziano ferro perdono] [http://jennipherfrost.enlard.info/ jennipher frost] [http://etotest.info/index5_500.html url] [http://audioyeah.demogen.info/ audio yeah] [http://holdmethrill.behav.info/ hold me thrill me kiss me] [http://universitaeconomia.skains.info/ universita economia e commercio torino] [http://convertiremp3in.demogen.info/ convertire mp3 in midi] [http://schemiscialli.behav.info/ schemi scialli uncinetto] [http://ahlgrenernst.wedged.info/ ahlgren ernst] [http://annunciocasaaffitto.alient.info/ annuncio casa affitto milano] [http://goodcharlotte.wedged.info/ good charlotte the chronicles of life] [http://logitech530.demogen.info/ logitech 530] [http://coolpix5.wedged.info/ coolpix 5] [http://trailervideo.enlard.info/ trailer video porno] [http://cornaluisa.alient.info/ corna luisa] [http://enlard.info/index4_500.html home] [http://lamascheradimezzanotte.enlard.info/ la maschera di mezzanotte] [http://hotwords.etotest.info/ hot words] [http://nickbergbeheading.wedged.info/ nick berg beheading] [http://hitachilcdtv.wedged.info/ hitachi lcd tv] [http://zippyrain.enlard.info/ zippy rain] [http://niketriax50.etotest.info/ nike triax 50] [http://fotoraccontiporno.enlard.info/ fotoracconti porno] [http://skains.info/index0_1000.html home] [http://rancid.skains.info/ rancid] [http://rivistaitaliana.etotest.info/ rivista italiana medicina legale] [http://tetrisperpocket.demogen.info/ tetris per pocket pc] [http://nokia6680mmc512.wedged.info/ nokia 6680 mmc 512] [http://nudaavrillavigne.wedged.info/ nuda avril lavigne] [http://wedged.info/ wedged.info] [http://cesarea.behav.info/ cesarea] [http://strumentiprecisione.alient.info/ strumenti precisione] [http://montenapoleone.demogen.info/ montenapoleone] [http://robotdacucina.alient.info/ robot da cucina kenwood] [http://shewillbeloved.demogen.info/ she will be loved] [http://acernotebook3023wlmi.wedged.info/ acer notebook 3023wlmi] [http://uataharddiskefloppy.skains.info/ uata hard disk e floppy] [http://roma-reggio.demogen.info/ roma- reggio calabria] [http://baldwinevelyn.etotest.info/ baldwin evelyn briggs] [http://ninodangelosenza.enlard.info/ nino d angelo senza vivere] [http://groniec.enlard.info/ groniec] [http://tadstones.alient.info/ tad stones] [http://tettecanalis.alient.info/ tette canalis] [http://wmiescie.skains.info/ w miescie] [http://ninosenzagiacca.enlard.info/ nino senza giacca e cravatta] [http://suoneriarocknokia.enlard.info/ suoneria rock nokia] [http://altrigiochierotici.behav.info/ altri giochi erotici] [http://ftvdildo.alient.info/ ftv dildo] [http://aceral151115.behav.info/ acer al 1511 15] [http://mx1000logitech.alient.info/ mx 1000 logitech] [http://danzigarchive.etotest.info/ danzig archive de la morte] [http://videobubblin.demogen.info/ video bubblin] [http://volkswagengolf.wedged.info/ volkswagen golf 5] [http://huckleberryfinn.behav.info/ huckleberry finn] [http://carolin.etotest.info/ carolin] [http://aeromodellismo.demogen.info/ aeromodellismo] [http://thomson25.etotest.info/ thomson 25] [http://atletiuomonudi.demogen.info/ atleti uomo nudi] [http://divxsamy.behav.info/ divx samy] [http://chrisliberator.wedged.info/ chris liberator] [http://calendariosilvia.behav.info/ calendario silvia rocca] [http://siglainiziale.etotest.info/ sigla iniziale il grande fratello] [http://luciatovar.skains.info/ lucia tovar] [http://universitacattolica.alient.info/ universita cattolica milano]
{{tabsBar|main=Speaker}}
{{wrongtitle|title=env_speaker}}
{{LanguageBar}}
{{CD|CSpeaker|file1=env_speaker.cpp}}
{{this is a|point entity|game=Half-Life 2 series|game1=Portal|name=env_speaker}} It randomly emits announcements using the [[response rules]] system.


== Entity description ==
{{stray ent|{{as|2.bold}} and {{portal2|2.bold}}}}
[[Image:ambient_generic.png|left]]
Announcement Speaker, used in several maps it uses the NPC response context system. You can specify time between announcements. When it makes an announcement, it looks at its Context rule script, chooses the best rule (Response Contexts and Concept name are used here.), then dispatches a response which could be a .vcd scene that controls an NPC, a sentence, or just a sound. See [[Response System]] for more information about context rule script grammar.


== Keyvalues ==
==Flags==
* {{kv targetname}}
{{fl|1|Start Silent}}
* {{kv responsecontext}}
{{fl|2|Play Everywhere}}
* '''delaymin'''
: <string> Minimum Delay Between Announcements
* '''delaymax'''
: <string> Maximum Delay Between Announcements
* '''rulescript'''
: <string> Script file containing rules for playing appropriate sounds.
* '''Concept'''
: <string> High level concept name used as primary search key.


== Flags ==
==Keyvalues==
* Start Silent : 0
{{KV Targetname}}
* Play Everywhere : 0
{{KV|Min Delay Between Announcements|intn=delaymin|float|Minimum time between announcements in seconds.}}
{{KV|Max Delay Between Announcements|intn=delaymax|float|Maximum time between announcements in seconds.}}
{{KV|Context rule script|intn=rulescript|string|The response rules script file to load.}}
{{KV|Concept name|intn=concept|string|The [[Response rules#Concepts|concept]] to speak.}}


== Inputs ==
==Inputs==
* {{i targetname}}
{{I|TurnOn|Start random announcements.}}
* {{i responsecontext}}
{{I|TurnOff|Stop random announcements.}}
* '''TurnOn'''
{{I|Toggle|If on, turn off. If off, turn on.}}
: Turn on the random announcements.
 
* '''TurnOff'''
==See also==
: Turn off the random announcements.
*{{ent|func_monitor}}
* '''Toggle'''
*{{ent|env_microphone}}
: Toggle the random announcements off and on.


== Outputs ==
* {{o targetname}}


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

Latest revision as of 19:49, 29 April 2025

edit
English (en)Translate (Translate)
C++ Class hierarchy
CSpeaker
CPointEntity
CBaseEntity
C++ env_speaker.cpp

env_speaker is a point entity available in Half-Life 2 series Half-Life 2 series and Portal Portal. It randomly emits announcements using the response rules system.

Note.pngNote:This entity is also in the code for Alien Swarm Alien Swarm and Portal 2 Portal 2. Its functionality is not guaranteed.


Flags

Start Silent : [1]
Play Everywhere : [2]

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Min Delay Between Announcements (delaymin) <float>
Minimum time between announcements in seconds.
Max Delay Between Announcements (delaymax) <float>
Maximum time between announcements in seconds.
Context rule script (rulescript) <string>
The response rules script file to load.
Concept name (concept) <string>
The concept to speak.

Inputs

TurnOn
Start random announcements.
TurnOff
Stop random announcements.
Toggle
If on, turn off. If off, turn on.

See also