AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   All hookable keys (https://forums.alliedmods.net/showthread.php?t=130568)

drekes 06-25-2010 06:18

All hookable keys
 
I've been searching for a list of all hookable keys like IN_JUMP, IN_DUCK and all the others, but can't seem to find it anywhere.
Could someone make a list of all these.

Thanks

Sylwester 06-25-2010 06:28

Re: All hookable keys
 
scripting\include\hlsdk_const.inc
Code:

// pev(entity, pev_button) or pev(entity, pev_oldbuttons) values
#define IN_ATTACK                      (1<<0)
#define IN_JUMP                        (1<<1)
#define IN_DUCK                        (1<<2)
#define IN_FORWARD                      (1<<3)
#define IN_BACK                        (1<<4)
#define IN_USE                          (1<<5)
#define IN_CANCEL                      (1<<6)
#define IN_LEFT                        (1<<7)
#define IN_RIGHT                        (1<<8)
#define IN_MOVELEFT                    (1<<9)
#define IN_MOVERIGHT                    (1<<10)
#define IN_ATTACK2                      (1<<11)
#define IN_RUN                          (1<<12)
#define IN_RELOAD                      (1<<13)
#define IN_ALT1                        (1<<14)
#define IN_SCORE                        (1<<15)    // Used by client.dll for when scoreboard is held down


drekes 06-25-2010 06:37

Re: All hookable keys
 
Thanks Sylwester

drekes 06-25-2010 09:45

Re: All hookable keys
 
What is the difference between IN_LEFT & IN_MOVELEFT?

joropito 06-25-2010 10:20

Re: All hookable keys
 
Quote:

Originally Posted by drekes (Post 1219398)
What is the difference between IN_LEFT & IN_MOVELEFT?

One of them is strafe key.

drekes 06-25-2010 10:28

Re: All hookable keys
 
Quote:

Originally Posted by joropito (Post 1219432)
One of them is strafe key.

I guess that would be IN_MOVELEFT, right?

DruGzOG 06-25-2010 10:38

Re: All hookable keys
 
Yeah.

drekes 06-25-2010 10:44

Re: All hookable keys
 
Thanks guys

mottzi 06-25-2010 15:46

Re: All hookable keys
 
Can you guys teach me how to use this hooks? 1 Example with In_Jump? Pls :D

Alka 06-25-2010 15:49

Re: All hookable keys
 
Use
Search


All times are GMT -4. The time now is 14:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.