This mod adds shadow casters to player and NPC weapons. It does so by spawning an extra shadow caster unit so it is compatible with any weapon retextures, remodels as well as custom weapons. Shadows are assigned based on weapon category and are approximated/generic so you may come across shadows that don't match up with a weapon, in case of an extreme mismatch, let me know!
You can also find this mod on GitHub, so if you want to help with anything, feel free to fork the project, make changes and create a pull request when you're done.