A rail gun fires a heavy slug via electromagnetism, it's not a directed energy weapon necessarily.

E: damn it, Snaf.

I would think of something along the lines of several mounted-rail guns that the slugs carry flak.

I'll reword that:

Railguns that fire flak.