I have something like this as an experimentation, but it does not feel very right.
Though, i have tried to not use the right click (so that weapons can use it) but instead used the jump button.
It might have to do with it.
But mostly i think, it has to do with the way we can detect where you are going.
In most games that have this mechanic, they probably read out if you press left and/or right and/or forward.
But in this game, if you want to avoid a client side of the mod, we will have to do with the direction the player is moving in.
Which is not always as accurate.
I am gonna see if i can pump out a good working version for you sometime soon.
If anyone else wants to do it, go ahead, you will probably be done faster then i am. :P