That sniper can do that specifically because they are NOT advancing at the same time, and they certainly wont be jumping into the trench to clear it out. This is just a bunch of stuff that sounds good in theory but never actually works out in practice.
The assault rifles in use now ended up that way because they are superior in the attack and adequate in defense. The reality is in most situations you simply will not have the line of sight to take those long range engagements. Anyone whos been in the army can tell you you often can't see very far even in fields that look empty on a map. Theres bush, trees, buildings, folds in the ground, etc. The capabilities of the rifle and the rifleman have very little to do with it.