Particles are perfect for creating a muzzle flash

to feedback to the player that they are firing.

In the SMG scene

Add a GPUParticles3D node

Rename it to MuzzleFlash