For anybody facing a similar problem, i found another solution, that can be executed anytime you want, not just when landing on an enemy, and it still uses the default jump system. You can add your default jump count to current jump count (this says how many times you have jumped) and set it as the new max jump count, then just set it back to default when you want to reset the max count (for example when you land from a wall run).
Hope this helps.
2 Likes