Impulse question
What is the right way to block impulse command via fakemeta?
|
Re: Impulse question
you really should start searching o_O
PHP Code:
|
Re: Impulse question
I knew that way. I had in mind - is it safe to block this function. Or will modification take effect? Cuz I thought if blocking function - other cmd lines of that client think are blocked. And as I knew - buttons don't take effect. So why should this work? Or it does?
|
Re: Impulse question
Yes tested, and it works! ;)
|
Re: Impulse question
Also, some impulses may be stored by the engine for a while before they are actually executed in pev_impulse (e.g. when trying to turn the flashlight on while reloading).
This only matters if you're planning to block the impulse after detecting it on CmdStart, or if you also want to block it for bots. |
Re: Impulse question
CmdStart is the only way with Fakemeta.
With Ham, you can hook Ham_Player_ImpulseCommands and check pev_impulse value, this forward is called every frame, may be from Pre or Post Think, without Ham, you could try to hook PostThink and check there pev_impulse value. -edit- Seems to work in PreThink and in PostThink. |
Re: Impulse question
|
| All times are GMT -4. The time now is 16:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.