As far as I know you’d need to edit the game’s gamemovement.cpp file to achieve that.
Luckily the source files of the game are publicly available for creating mods and stuff through the source SDK. If you are having trouble about what to change in the code refer to this link: HL2 Bunnyhop restriction
Haven’t tested it but it looks promising.