Find my movie

I saw a movie 0n tv in 1996 or 97, some people (maybe outlaws/bandits) want to get hold of a machinegun and when they get hold of it they yell in joy “machinegoan” (pronounce as written) thats what i remember

Dunno for sure and I’m away from my films at the mo. but there are a number of films whereby the Mexis end up with a machine gun. Django is probably the most obvious contender - with a machine gun playing such a pivotal role … but Bullet for the General may be more likely. I haven’t seen either for ages, but worth a start for a look?

Galting Gun?