The introduction of the electric grenade made enemies lose their helmets/caps/etc when they are tased. This mod adds an option menu to disable the effect for this as well as other damage types.
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.