What if Odysseus had a gun?

So imagine if Odysseus had a Glock 17, he had a bag that he could reach into and pull out a full magazine, the bag has infinite magazines and the magazines are always full of bullets.

How useful would it be? Or would it just be a paperweight?