Looks like in game there is imitation of muzzle flash applied by creating an explosion out of barrel. In reality muzzle breaks can: 1. change shape of that explosion (direct in front, sideways spread, uniform gas expansion)
2. reduce amount of visible barrel gas shootout (decreases size of lightning flash and reduces smoke)
And/or there is also muzzle device called "Flash suppressor" that deals specially that purpose.