Team Fortress 2

Team Fortress 2

28 ratings
My custom sound file isn't working!
By Ryuke [TBM α]
A troubleshooting guide for installing custom hitsounds, killsounds, and any other sound you wish to replace.
   
Award
Favorite
Favorited
Unfavorite
Installing the Sounds
How to find your steam installation
TF2 in your LibraryFirst go to your main Steam window, and click on Library. Find Team Fortress 2 in your list, and right click it. From the pulldown menu, select Properties.
Inside the Dialog
From here a window pops up, click on the Local Files tab, and then click "Browse Local Files..."





How to install custom files
From step one, double click the /tf/ folder, then the /custom/ folder. If it does not exist, create it.
Inside the /custom/ folder you should create a new folder and name it whatever will help you remember that this is for your custom sounds.
For example, let's say I name my folder "RTFM", once I open it I should be in
Steam\steamapps\common\Team Fortress 2\tf\custom\RTFM
Inside that folder you create the folder named "sound".
Inside /sound/ you create the folder named "ui"
We're now at
Steam\steamapps\common\Team Fortress 2\tf\custom\RTFM\sound\ui\
This is where you put the hitsound/killsound file.
For Hitsounds you name them
hitsound.wav
For Killsounds (hitsounds on death) you name them
killsound.wav
Correct Directory
If you are replacing some other file you must similarly create the correct directory for that specific file's path.

Sound File Parameters
Sampling Rate
Many sounds are saved at different sampling rates to preserve high quality or to save on disk space. One of the most common problems I've run in to with sounds downloaded from places like Gamebanana is that they are saved at a sampling rate of 48,000Hz, when the most TF2 will accept is 44,100 Hz. Resampling the sound at 44,100 in Audacity or Goldwave will allow it to play in TF2.

Volume
You should take a minute to maximize the volume of your sound effect if you open it with an audio manipulation program, as once you're in a game the only thing you can do is lower the volume of the audio clip. If you don't hear the lamentations of the hitsound over the sound of you crushing your enemies and seeing them driven before you, it may as well have not played. If your file is intended to be used in a soundscape you can also individually reduce the volume inside the soundscape definition file.

Cueing
If your sound is meant to repeat you can take advantage of the .wav Cue system, which creates a new start point for the looping sound. I take advantage of this when I make custom soundscapes so I can have an intro that leads into a stable song loop that never needs to repeat the intro sequence. TF2 will read them when deciding where to loop to on looping sound effects.
Confirm Advanced Options
Access the Advanced Options menu from the main screen of TF2 by clicking the button in the bottom right corner. Under the Combat Options section there's a number of options about your hitsound.
Advanced Options Menu
If you want to use a custom hitsound or killsound, you must check the top checkbox, and if you want to use a killsound for killing blows you must check the second checkbox.
Volume and Pitch should be modified to your personal preference.
Specific Problems
My sound works fine when I open it in another program, but sounds garbled in TF2
This is caused by resaving the sound file without deleting the automatically created sound.cache file in the sound directory inside the custom folder where the sound is saved. The first time you play a sound TF2 creates this file to let it know exactly how long the sound is supposed to last, what format it's in, and other information. If the sound itself changes and the cache doesn't, it'll use the old cache information to try to play the sound, resulting in garbage.
Console Variables for Hitsounds
tf_dingalingaling 1
Activates hitsounds
tf_dingalingaling_lasthit 1
Changes the killing hitsound to killsound.wav
Very important if you want to have a killsound, set to 0 if you want to only use hitsound.wav

tf_dingalingaling_effect 0 tf_dingalingaling_last_effect 0
Sets the hitsound to the basic hitsound.wav file, very important if you want to hear your replacement. The second one is similar, but for the killsound.

tf_dingaling_volume 0.75 tf_dingaling_lasthit_volume 0.75
Sets the volume of the hitsound and killsound respectively, maximum value is 1.

tf_dingaling_pitch_override -1 tf_dingaling_lasthit_pitch_override -1 tf_dingaling_lasthit_pitchmaxdmg 100 tf_dingaling_lasthit_pitchmindmg 100 tf_dingaling_pitchmaxdmg 100 tf_dingaling_pitchmindmg 100
The overrides when something other than -1 set the pitch for their respective sounds. 100 is standard pitch.

tf_dingalingaling_repeat_delay 0

Sets a delay between instances of the hit sound firing. Useful if your sound is long and you play pyro, but generally set to 0 to play the sound once for every instance of damage.
18 Comments
xxx_birdwatcher420_xxx 30 Jul, 2023 @ 11:26pm 
to change your sample rate in audacity you need to go to edit > preferences > audio settings (this should be the open tab).

Under the Recording header change "Channels" to stereo/2
Under Quality change both the Project Sample Rate and the Default Sample Rate to 44100 Hz
and the Default Sample Format to 16-bit.

save these then reopen audacity and import your sound, then export as a wav.
Ryuke [TBM α]  [author] 10 Mar, 2023 @ 5:30pm 
You have to make sure your file actually works, make certain it isn't a .mp3 renamed to .wav but actually resaved as a different format, maybe then it'll open in audacity?
Doctor Jebediah Christoff 10 Mar, 2023 @ 3:45pm 
so uhhh... how do i change sample rate then?
Doctor Jebediah Christoff 10 Mar, 2023 @ 3:34pm 
hot damn
Ryuke [TBM α]  [author] 10 Mar, 2023 @ 2:06pm 
I do not use audacity.
Doctor Jebediah Christoff 10 Mar, 2023 @ 1:32pm 
audacity says it doesn't recognize my wav file.
Latte 5 Apr, 2020 @ 5:43pm 
i apologize i just had to restart my computer
Latte 5 Apr, 2020 @ 5:33pm 
hello yes this didnt work in the slightest
Biome 7 Apr, 2018 @ 7:26am 
Audacity says my file is 44100 Hz, but TF2 says it's 32000. Do you know of any way to fix this? I've tried changing it to a few different values and none seem to work...
Ryuke [TBM α]  [author] 6 Apr, 2018 @ 9:41pm 
root\sound\vo\medic_autochargeready01.mp3
root\sound\vo\medic_autochargeready02.mp3
root\sound\vo\medic_autochargeready03.mp3