Hook button release
How can i hook the frame in which a user released a button.
For instance, i was holding +use, i want to hook that frame in which i released the +use key. |
Re: Hook button release
Check for IN_USE button and see when it stops being used.
|
Re: Hook button release
Quote:
|
Re: Hook button release
I'm sure there's a pdata offset for this. Checking if button & pev_oldbuttons && !(button & pev_button) is another way though.
|
Re: Hook button release
I've one, but it will be checked every frame
PHP Code:
|
Re: Hook button release
ok...
and what is the difference b/w FM_CmdStart and FM_CmdEnd |
Re: Hook button release
I've never seen anyone use FM_CmdEnd, but I'd definitely give it a shot at least.
|
Re: Hook button release
The difference is that they occur at different positions in time. The pre commands are used to block things. I don't have an official list of what happens but here's an example of how it could look:
Code:
CmdStartCode:
PreThink |
Re: Hook button release
From HLSDK:
Quote:
Quote:
|
Re: Hook button release
Quote:
|
| All times are GMT -4. The time now is 09:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.