The TeamFortressTV thread with the original script doesn't work, so you might not know how to get the script. In this video I show you how to do it.
I couldn't put the link so you can just search "tf2 no explosion script github" and click on the one that says "GitHub - ModdingTF2/tf2-nosmoke:"