Messing with Half-Life controls Created 2 years ago2021-12-05 09:06:17 UTC by blsha blsha

Created 2 years ago2021-12-05 09:06:17 UTC by blsha blsha

Posted 2 years ago2021-12-05 09:06:17 UTC Post #346106
Client changes are something I hate and fear, so before I ruin my source code I'd like to know if it's gonna be in vain or not.
I want to do two things:
1) Change the longjump call to double pressing the spacebar a-la Black Mesa.
2) Make pressing the mousewheel call for your weapon's third attack, this one will have only so many uses but nonetheless.

I've never done any controls realted code before. Are these things possible to do? If so, what do I have to do?
blsha blshaWatching you.
Posted 2 years ago2021-12-20 22:38:35 UTC Post #346137
The first one may be tricky - I'm not sure off the top of my how the long jump works but I believe there's a buttons variable and the code would check that both the crouch and jump bits are set. Changing it to double-tap of the spacebar would be doable - on the first jump set a flag on the player and if the player presses jump again within one second or whatever, long jump, otherwise clear the flag.
If Half-Life supports mousewheel press I think that would just be an extra binding in config.cfg
You must be logged in to post a response.