Changing Custom Sounds Based on Class

D

Digaag Wa Riz

Question,

Say I have a custom hitsound. Could I go about changing the hitsound based on the class I am playing with currently? If I go scout then the hitsound would be different than the hitsound when playing as a sniper. I think it can be changed using the class cfg files, but that means there needs to be a way to change a sound with a console command since they are class scripts.
 
D

Digaag Wa Riz

So I'm bumping this thread because I regained interest in being able to accomplish this recently. So there are some files in the tf2 "resource/scripts/" folder which specify a certain audio file to play when a certain events takes place. I want to know if there's a way to make the audio files that play depend on the class I am playing currently.