detect +attack and execute code many times
Hey,
I wish to detect if a player is holding down +attack / +attack2 I think I can use - register_forward( FM_CmdStart, "CmdStart" ) And then something like: PHP Code:
Thanks for the help <3 |
Re: detect +attack and execute code many times
Quote:
But the header looks like : ( const id, const uc_handle, const seed ) and use get_uc( uc_handle, UC_Buttons ); to retrieve buttons. |
Re: detect +attack and execute code many times
Quote:
PHP Code:
And where can I get a list of buttons? |
Re: detect +attack and execute code many times
List of all things you need: includes/hlsdk_const.inc
Also, you can get oldbuttons and compare to see if the player is holding, clicked or released in oldbuttons, it's stored the last frame's buttons |
Re: detect +attack and execute code many times
get_uc is a fakemeta native. UC_Buttons is a fakemeta constant.
See in fakemeta.inc and fakemeta_const.inc. |
| All times are GMT -4. The time now is 14:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.