Requirements
Note
CSDK 12 now ships with a Billy Audio Template to skip decompilation. Use Duplicate Addon on a addon template in the CFG Tool to make an editable version of the addon.
Finding the Sound
You can find the sound the need by opening game/citadel/pak01_dir.vpk
, then:
- If your sound is used in a ability/hero, go into
heroes.vdata
, then your hero’s name, ability inabilities.vdata
and look for asoundevent:
flag. Punkgoat’s Blasted for example usesPunkgoat.Blasted.Lp
. Ability/Hero soundevents are usually stored insoundevents/hero/heroname.vsndevts_c
. Compiled Sound should be in thevsnd_files
string.
- If your sound is a VO file (voiceline), go into
scripts/talker/
and find in.vrr
response rules files a rule you’re looking for. The rest goes as above.
Replacing the Sound
Then, navigate into the direction of the sound and decompile it into your addon. The result filepath and filename SHOULD match the location where the original file was.
Replace the sound with your own.
Compiling
Compile the sound with your CSDK12 Tools open.
Packing
Useful Commands
stopsound
- stop every sound that is currently playing
snd_showstart true
- when a sound starts, it will print it’s path to the console
play path/to/sound.vsnd
- play a sound
snd_sos_start_soundevent soundevent_name
- play a soundevent