L4D Soundscripts
Jump to navigation
Jump to search
Introduction
Left 4 Dead (L4D) soundscripts are located within the path /left4dead/scripts. They are used to invoke in-game sounds such as weapons, soundscapes, and music during events output by the sound emitter. The script game_sounds_manifest.txt will preload or precache the soundscripts when Left 4 Dead is loaded. The base path for all sound files is /rootDir/sounds/. This means that all of the soundscripts will look in /rootDir/sounds/<soundscript entry> for sound assets, where rootDir is pointed to a VPK addon or /left4dead/.
Soundscripts Manifest
The L4D soundscripts manifest, game_sounds_manifest.txt, is a list of soundscripts that are either preloaded or precached when the game is loaded. The following is the actual manifest for L4D:
game_sounds_manifest { "precache_file" "scripts/game_sounds_bots.txt" "precache_file" "scripts/game_sounds_terror.txt" "precache_file" "scripts/game_sounds_infected_common.txt" "precache_file" "scripts/game_sounds_infected_special.txt" "precache_file" "scripts/game_sounds_player.txt" "precache_file" "scripts/game_sounds_biker.txt" "precache_file" "scripts/game_sounds_manager.txt" "precache_file" "scripts/game_sounds_namvet.txt" "precache_file" "scripts/game_sounds_teengirl.txt" "precache_file" "scripts/game_sounds_npcs.txt" "precache_file" "scripts/game_sounds_npc2.txt" "precache_file" "scripts/game_sounds_music.txt" "precache_file" "scripts/game_sounds_doors.txt" "preload_file" "scripts/game_sounds.txt" "preload_file" "scripts/game_sounds_physics.txt" "preload_file" "scripts/game_sounds_weapons.txt" "preload_file" "scripts/game_sounds_ambient_generic.txt" "preload_file" "scripts/game_sounds_world.txt" // Level sounds "preload_file" "scripts/level_sounds_general.txt" }