L4D2 Custom Sound and Music Tutorial

From Valve Developer Community
Revision as of 17:47, 13 February 2010 by ThaiGrocer (talk | contribs) (Initial creation of tutorial.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Adding custom sound and music in a Left 4 Dead 2 map appears to be more flexible than Left 4 Dead. The following tutorial will first cover getting custom sounds to work in-game, then followed by customizing existing in-game event sounds (such as music and sound effects).

It is recommended to start with at least the following:

  1. A map that can be loaded in-game named however you like - maps/<map name>.bsp
  2. A blank per-map soundscript (a .txt file) named maps/<map name>_level_sounds.txt

Sound File Requirements

The following file types and specifications have been known to work:

MP3 Method

Note.pngNote: .MP3 files are a lot smaller than .WAV files, but they require more processing power and therefore lowers in-game performance

Embedded BSP Method

Testing In-Game