clcmd, and keypress.
how can I register a clcmd and get when it is pressed AND when it is released? I can make people bind the comand, but how will i get when they press AND release that bound key?
Code:
|
Re: clcmd, and keypress.
Code:
|
Re: clcmd, and keypress.
the engine automatically detects the +/- and acts accordingly?
|
Re: clcmd, and keypress.
Quote:
|
Re: clcmd, and keypress.
Quote:
|
Re: clcmd, and keypress.
You can not catch duck walk or attack using that type of register, you need to do something like this
This is off the top of my head but you get the idea... (not at my house right now) Code:
|
Re: clcmd, and keypress.
Quote:
1) What is client prethink? Is it something that is always executing instead of setting task of function? I've found only one explanation that it is "Forward" and nothing else. 2) IN_ATTACK - what is that? Sorry, if i'm too silly :| |
Re: clcmd, and keypress.
1) client_prethink is a forward (engine?) that is called before every frame.
2) IN_ATTACk is the ID of the button they are pressing, which is +attack. fakemeta way: Code:
|
Re: clcmd, and keypress.
Doesn't work. Compiles but i don't see "YOUR ATTACKING!!"
|
Re: clcmd, and keypress.
try FM_PlayerPostThink, and if that dont work, i guess maybe PostThink and pev_oldbutton or something cant remember....
|
| All times are GMT -4. The time now is 21:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.