Given CGI use today, it seems to be safe all gunfire could be CGI
They film a fight scene so that actors only "look" like they are punching someone.
They do this with training, and the camera angle.
They can do the same thing with guns.
So that it only "looks" like it's pointed at someone.