>> why?
pick up a cyberpunk or shadowrun book ;-) smartgun increases chance to hit and is required for automation
1. remote fire control, obviously, and an interface for drones, semi as well as fully automatic ones
2. the shotgun has a display and camera - how about friend/foe recognition? (requires a tactical network)
3. connect it to augmented reality goggles/visor/eyes. gun sees what it is pointed at, use that to render a crosshair
4. think about police officers and body cams. A gun that records its point of view makes a lot of sense as well.
>> If a gun doesn't consistently go bang when you pull the trigger (and safety is off, etc)
"Safety" might change away from a mechanical aspect over time. Some may consider these anti-features:
5. there is an active police operation in the area, your gun is now locked to safety on.
6. this weapon can not be used in this country (the USA did that for rocket launchers)
7. this weapon can not be used with this ammunition (printers do that with cartridges)
8. you are not the registered owner of this weapon
9. your license has expired