Env speaker: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		

 
 Note:This entity is also in the code for
Note:This entity is also in the code for  Alien Swarm and
 Alien Swarm and  Portal 2. Its functionality is not guaranteed.
 Portal 2. Its functionality is not guaranteed.
		
	
| RolerLalid (talk | contribs)  (lizelletoolo) | SirYodaJedi (talk | contribs)  No edit summary | ||
| (28 intermediate revisions by 17 users not shown) | |||
| Line 1: | Line 1: | ||
| {{tabsBar|main=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. | |||
| {{stray ent|{{as|2.bold}} and {{portal2|2.bold}}}} | |||
| ==  | ==Flags== | ||
| {{fl|1|Start Silent}} | |||
| {{fl|2|Play Everywhere}} | |||
| ==  | ==Keyvalues== | ||
| {{KV Targetname}} | |||
| {{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|TurnOn|Start random announcements.}} | |||
| {{I|TurnOff|Stop random announcements.}} | |||
| {{I|Toggle|If on, turn off. If off, turn on.}} | |||
| ==See also== | |||
| *{{ent|func_monitor}} | |||
| *  | *{{ent|env_microphone}} | ||
| [[Category:Sound System]] | [[Category:Sound System]] | ||
Latest revision as of 19:49, 29 April 2025

 
|  Class hierarchy | 
|---|
| CSpeaker | 
|  env_speaker.cpp | 
env_speaker  is a   point entity  available in  Half-Life 2 series and
 Half-Life 2 series and  Portal. It randomly emits announcements using the response rules system.
 Portal. It randomly emits announcements using the response rules system.
 Note:This entity is also in the code for
Note:This entity is also in the code for  Alien Swarm and
 Alien Swarm and  Portal 2. Its functionality is not guaranteed.
 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. parentnameortarget).
 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.
Inputs
- TurnOn
- Start random announcements.
- TurnOff
- Stop random announcements.
- Toggle
- If on, turn off. If off, turn on.























