The only thing im looking on that tutorial is the soldering points for the buttons..

And the code work most of the time because the weapon you use must be full and you must have a secondary weapon..

And I think I understand the code now