Left 4 Dead 2

Left 4 Dead 2

View Stats:
Mr Thwack Dec 14, 2024 @ 4:48pm
Custom Special Infected music for custom map
Can anyone help me to add custom Tank music to my campaign, I don't really understand how to do that, as the L4D2 Hammer editor doesn't have too many tutorials that help me understand questions I have. One of them I have for now is just: How to add custom music for special infected in my campaign, in this instance, the tank. If possible try keep it simple, I get easily confused with Hammer and Source and its stuff. Thank you
Originally posted by Evil:
Create a text file, then save it. Open it, then name it mymap_level_sounds.nut. You must change 'save as type' from .txt to 'all files' or the extension will be incorrect. Also, 'mymap' should be the actual name of your map. Then add this to the file but change it to what your sound name is:

"Event.Tank" { "channel" "CHAN_STATIC" "volume" "1.0" "soundlevel" "SNDLVL_NONE" "rndwave" { "wave" "@#r2lmusic/november.wav" } GameData { "MusicTrack" "tank" "MusicPriority" "HIGH" "MusicBlockTrackList" "zombat_tp, zombat, zombat2, zombat3, zombatIntro, ambient" "MusicStopTrackList" "zombat_tp, zombat, zombat2, zombat3, zombatIntro, ambient" } }

Then place this file in the maps folder in your addon.
Also, you don't need the 'rndwave' parameter but I left it there in case you want to randomize your tank music.
< >
Showing 1-3 of 3 comments
The author of this thread has indicated that this post answers the original topic.
Evil Dec 14, 2024 @ 5:00pm 
Create a text file, then save it. Open it, then name it mymap_level_sounds.nut. You must change 'save as type' from .txt to 'all files' or the extension will be incorrect. Also, 'mymap' should be the actual name of your map. Then add this to the file but change it to what your sound name is:

"Event.Tank" { "channel" "CHAN_STATIC" "volume" "1.0" "soundlevel" "SNDLVL_NONE" "rndwave" { "wave" "@#r2lmusic/november.wav" } GameData { "MusicTrack" "tank" "MusicPriority" "HIGH" "MusicBlockTrackList" "zombat_tp, zombat, zombat2, zombat3, zombatIntro, ambient" "MusicStopTrackList" "zombat_tp, zombat, zombat2, zombat3, zombatIntro, ambient" } }

Then place this file in the maps folder in your addon.
Also, you don't need the 'rndwave' parameter but I left it there in case you want to randomize your tank music.
Kyle H. McCloud Dec 15, 2024 @ 8:47pm 
Alternatively, I'm pretty sure there's an even easier method for custom campaigns. As long as your campaign is properly distributed with a mission file to make it show up in the game's Add-on Campaigns menu, that means you can include replacements for vanilla files and they will only activate when your specific campaign is being played.

For instance, if you make your Tank music the Crash Bandicoot theme or something, you can just rename the song tank.wav and/or taank.wav, place it in a sound/music/tank folder in your campaign's main directory folder, and then it will load when your campaign is played -- but not when you play a different campaign. Just make sure the .wav file loops and that should work. I haven't done this in a while but I'm pretty sure that's how it goes.
Mr Thwack Dec 19, 2024 @ 5:35pm 
Thanks guys, I appreciate the help
< >
Showing 1-3 of 3 comments
Per page: 1530 50