Oh yeah I forgot to mention I also made it not pickup any weapons after sprinting has started even if F is released which solves that.
Only downside is you can't start sprinting while standing on a weapon (However you can hold F then move away from the weapon and it will start sprinting).