Want to understand scripting a bit more and finding out what and what isn't possible. This seemed like an easy to approach area where I could avoid getting confused and focus on learning what limitations there are (plus there's no way you could exploit this to any advantage due to these specific sound files going all garbly when you edit them).
Just for clarities sake as well, I'm not talking about specific weapon firing sounds which I know are unique. For instance rocket_directhit_shoot_crit.wav
What I mean is the crit_hit.wav (1-5) sounds that play when your crit attack lands.
Knowing that there are 5 crit sounds that play at random when you hit an enemy, it's probably possible to customize each of those so you could get something different than normal playing. Or changing them all to the same sound so you would get no variance. Seems like a simple customization, as the same files play no matter what class or weapons you're using.
What I'm interested about however, is whether it's possible to actually fuck around with that. Force certain classes to load different sound files than the others. As an example have those crit sounds be default for every other class, but when playing Soldier have a crit_hit file of him saying "Blammo!" being loaded instead when landing a delectable kritz rocket on a Heavy's face.
Now from my limited understanding I can't actually see a way how to do this, as this is probably something hard in the game code you can't mess with. I'm not sure there's any way you could actually script on a class change for the file path to change, or even have the game acknowledge and utilise a different naming scheme for the files at all considering that the crit_hit files are shared by all the classes. I believe you can do it with hitsounds, but that's only because they introduced the hitsound sets in the update some years back that you can replace. The crit sounds don't have another set you can mess with.
But some of you guys are ridiculously intuitive at discovering new ways to customize the game so I'll pose this shot in the dark anyway. Either way, would be interesting to confirm whether this is possible or not.