Left 4 Dead 2 Guide

Custom audio scripts

Sharing is temporarily disabled

Left 4 Dead 2 Guide

Custom audio script override

Ever feel tired of the monotonic of L4D2's gunfire ? By default there is no variant or modulation of the gunfire sound, and the game doesn't allow you to modify the sound scripts, but if you mount a new folder with the pak01_dir.vpk inside of it, the game will read it as if it's a new update. 
For some reason the command -M to create splitted VPK to create pak01_dir doesn't work for L4D2's vpk.exe, but you can fool the game by making an addon folder named pak01_dir, with the modified sound script file in it, then create it and put it in the newly mounted folder, namely "extra". 

Only been tested for offline play:

Step 1: Mount the new folder as if it's a new update, mine is called "extra"
Open the gameinfo.txt in gamedirectory/left4dead and add the "extra" folder in like below. The "extra" folder should also have this gameinfo.txt copied over.

SearchPaths { 

Game extra 
Game update 
Game left4dead2_dlc3 
Game left4dead2_dlc2 
Game left4dead2_dlc1 
Game |gameinfo_path|. 
Game hl2 

}

Step 2: Create the vpk. Name your mod folder "pak01_dir" and put the scripts folder with the modified sound scripts in it, then drag it to vpk.exe/its shortcut to create the vpk like a regular addon

Step 3: Put the newly made vpk in the "extra" folder (gamedirectory/extra/pak01_dir.vpk)

Step 4: Build sound cache for the new sound placed in the "extra" folder: Open the console and type/paste the following: snd_buildsoundcachefordirectory ../extra
This will take a few seconds depend on how many file there is.

Step 5: Profit

Credit: Had to beat AnOldLady (creator of bsmod) with a stick to get this
Use the example file:

gamemaps~com/details/26602

Tagged

Community Tags

  • Sound
  • Script

Guide Credits

You may like

  • Mod
    Krombopulos Michael Chainsaw Startup (sound)
    N/A

    "Oh boy, here I go killing again!" -Krombopulos Michael Every time you whip out your chainsaw, announce to the world your excitement over getting to go on another killing spree!

    5,191
  • Mod
    Anti-Voice-SPAM PARTIAL
    N/A

    As the titles says, this addon was created simply to deal with the annoyance caused by voice spammers in L4D2. I am sure there are VERY few players out there who don't find constant voice spamming from the survivors team extremely irrit...

    7,360
  • Mod
    Medievil Death
    N/A

    This addon will replace the usual sound you hear when you just died with a song from the playstation one game 'Medievil'. Medievil is copyrighted by Developer SCE Cambridge Studio Publisher Sony Computer Entertainment Europe PS: I'm ...

    6,221
  • Mod
    KNOCKBACK EFFECT RIFLE
    N/A

    a special assault rifle.A mod never done before.an assault rifle with knockback effect for the lols. makes ak 47 to knockback enemis like the shotgun does.and to do that i have to change some status too ,so the weapon dont be broken, ...

    • Archived
    2,475
  • Mod
    Christmas Jukebox Songs
    N/A

    This mod replaces the defeault Jukebox songs for Christmas ones, it's little and not very useful, but it's great to celebrate your holidays. Sorry if it's a little bit late. Songs: We Wish You A Merry Christmas - (don't know sorry xD) R...

    10,899

Feedback