To reduce accidental deaths during civil disturbances, firearms manufacturer FN Herstal has developed a gun that not only fires less-than-lethal elastomer projectiles, it has a digital smart sight that can recognize human heads and refuse to fire at them.
Or, you know, just wear a Tshirt with a face picture on it.
Improvise. Adapt. Overcome.