Quoted By:
It is common in movies to kill all the bad guys at the end of the movie in one fell swoop. The first Die Hard movie where all the bad guys blow up in a plane, the destruction of the control ship in Phantom Menace, the end of the Avengers movie.
Most movie tropes are used as short cuts and dramatization.
Guns don't make a cocking sound when you hold them. Glocks can't be cocked. And guns don't hold infinite bullets.