Check if the player is actually shooting a gun

Fixes a bug where players could shoot using any item as long as there is a
gun in the inventory