speaker

Modified

12-Jul-2023

A black mesa announcer doing random announcements.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of speaker so other entities can trigger it to enable announcements. Depending on trigger use-type: 'On'- enable announcement, 'Off'- disable announcement, 'Toggle'- toggle announcement. Can be kill-targeted but sound already played won't be removed.

Announcement Presets preset : Name of announcement group to play. Found in default_senteces.txt, look for grouped "intercom" labeled entries.

  • 0 : None
  • 1 : C1A0 Announcer
  • 2 : C1A1 Announcer
  • 3 : C1A2 Announcer
  • 4 : C1A3 Announcer
  • 5 : C1A4 Announcer
  • 6 : C2A1 Announcer
  • 7 : C2A2 Announcer
  • 9 : C2A4 Announcer
  • 11 : C3A1 Announcer
  • 12 : C3A2 Announcer

Sentence Group Name message : Better use presets to choose announcement group.

Volume (10 = loudest) health : Announcement volume.

Flags


  • 1 : Start Silent : Speaker need to be triggered in order to be enabled.