Alex was in cover, he only shot at walls and the floors to make the cops scared enough to be in cover. He kept shooting like that before he ran out of ammo for the rifle then he took out his pistol.