Remake of this in post-hook lua instead of old_init so it is more stable, doesn't break the gadget on any gun newer than 8th June 2017, or any custom weapons.