Trigger cdaudio (GoldSrc)

From Valve Developer Community
Revision as of 10:57, 9 March 2015 by Dr. Orange (talk | contribs)
Jump to navigation Jump to search

Half-Life trigger_cdaudio is a brush entity available in Half-Life.

Entity description

Plays a specified track either on the CD or in the media folder when the player walks through this entity.

Note.pngNote:The mp3 files loaded, and what number they are used as in this entity is hard-coded into the game. Therefore, the filenames of custom mp3s must be very specific.

Keyvalues

Name ([todo internal name (i)]) <string>
The name of the entity.
Track ([todo internal name (i)]) <integer>
The name of the track to play via the media folder.

Flags

  • 1 : Wait Till Seen
  • 2 : Gag (No IDLE sounds until angry)
  • 4 : MonsterClip
  • 8 : No wreckage
  • 16 : Prisoner
  • 64 : Start inactive
  • 128 : Wait for script
  • 256 : Pre-disaster
  • 512 : Fade corpse
  • 2048 : Not in Deathmatch (some entities don't have this set in their FGD, but it works for all entities if set).