The Gum-Gum Bajrang Gun also bears a striking resemblance to an attack from Stampede called King King King Kong Gun, which Luffy uses to defeat Douglas Bullet, the primary antagonist of the film.
Luffy's final showdown with Sir Crocodile still throws One Piece fans for a loop, but there's a simple answer.