Finding User's Pressed Buttons
I already know how to do this via Engine but not via Fakemeta. I have tried posted methods and they have not worked for me. So I am posting this to ask how would you find buttons a user has pressed at the moment using Fakemeta?
For those who will ask the ultimate question: "Why just not use Engine?" - Fakemeta is less harsh on the CPU and the faster the plugin runs, the better. |
Re: Finding User's Pressed Buttons
Code:
|
Re: Finding User's Pressed Buttons
Quote:
|
Re: Finding User's Pressed Buttons
This code will hook ALL available buttons...
Code:
public plugin_init()greetz regalis |
Re: Finding User's Pressed Buttons
Quote:
Code (plugin_init) - Code:
Code (plugin_precache) - Code:
Code (Function) - Code:
NOTE: This worked perfectly fine using get_user_buttons. |
Re: Finding User's Pressed Buttons
Maybe you actually used parantheses correctly the first time?
|
Re: Finding User's Pressed Buttons
Quote:
Don't know where exactly your problem is!? Maybe post more code and describe WHAT is not working! kthx |
Re: Finding User's Pressed Buttons
If you used get_user_buttons() then you had a hook to client prethink.
FM_CmdStart is NOT the same as FM_PlayerPreThink (CmdStart is NOT called on every player frame). Fix: Hook FM_CmdStart (<-check buttons) and FM_PlayerPreThink(<- set model). You could just hook only FM_PlayerPreThink and deal with buttons and models there, but with CmdStart you have a more "instant" action on pressed buttons. |
Re: Finding User's Pressed Buttons
Quote:
Quote:
|
| All times are GMT -4. The time now is 10:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.