Button only pressed once
How to detect if user press a button only once? I don't want fakemeta's way because when I pressed it, it detect many times. I use this with fakemeta:
PHP Code:
|
Re: Button only pressed once
No, I mean, if I use client_PreThink it looks like this in console:
+fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun +fastrun It's kind of flood, right? I don't want it, I just want to detect if I press forward button only once. I use that for playing animation, so the animation won't play if I use fakemeta because the animation starts from begining. |
Re: Button only pressed once
#define m_afButtonPressed 246
#define m_afButtonReleased 247 |
Re: Button only pressed once
how about fire?
would it be possible to check when an person pressed the fire button? |
Re: Button only pressed once
Ham_Weapon_PrimaryAttack
|
Re: Button only pressed once
Bos93, thanks :D work very nice
|
Re: Button only pressed once
Hey, need help with this! When I'm reloading and press the IN_FORWARD button, the reload animation stops. How could I prevent IN_FORWARD button when I was reloading?
PHP Code:
|
| All times are GMT -4. The time now is 15:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.