It’s involved, but if you’re stationary, you can cloak yourself to drone tech. Moving is another story.
Are there observation/targeting drones loitering over the battlefield that could target a sniper after identifying a shot from the sniper?