env_speaker

From Valve Developer Community
Revision as of 16:17, 4 May 2024 by Strubium (talk | contribs)
Jump to navigation Jump to search
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)

env_speaker is an e0 available in Half-Life 2 series Half-Life 2 series. It randomly emits announcements using the response rules system.

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


C++ In code, it is represented by theCSpeakerclass, defined in theenv_speaker.cppfile.

Flags

  • 1: Start Silent
  • 2: Play Everywhere

Keyvalues

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


Inputs

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


Outputs