Sound and Music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(# = music)
Line 1: Line 1:
This article is a hub for finding information about sound and music in [[Source]].
'''Music''' differs from other sounds in Source only in that its path is prefixed with a '#' character. <code>#sound.wav</code> (or <code>.mp3</code>) is music whereas <code>sound.wav</code> is not.


== Entities ==
== Entities ==

Revision as of 06:53, 23 July 2010

Music differs from other sounds in Source only in that its path is prefixed with a '#' character. #sound.wav (or .mp3) is music whereas sound.wav is not.

Entities

Articles

AI sounds

  • AI sounds are not audible to the player; they are purely an AI construction. They can be placed in-map with the ai_sound entity.

Music

Materials

To specify the set of sounds for a custom material (the noises produced in response to hits, scrapes, etc), see Material surface properties.

Notes

  • To play music, use Hammer Sound Browser to search for keyword music.
  • Many entities can have sounds assigned to them. For example, prop_door_rotating can be assigned sounds for opening, closing, swinging, being locked, and being unlocked. See the individual entities for details.

See Also

External links