IN Enumerations

From Garry's Mod
Jump to: navigation, search

Unlike BUTTON_CODE_ Enums, these enums are abstracted to allow the user to bind actions to any key they might prefer.

Keybinds using these actions work with two console commands, one starting with a plus and one with a minus symbol. A key press or release will call either the plus or minus command, adding or removing the corresponding enum in the current CUserCmd.

Enumerations used by:

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
IN_ATTACK 1 +attack bound key ( Default: Left Mouse Button )
IN_JUMP 2 +jump bound key ( Default: Space )
IN_DUCK 4 +duck bound key ( Default: CTRL )
IN_FORWARD 8 +forward bound key ( Default: W )
IN_BACK 16 +back bound key ( Default: S )
IN_USE 32 +use bound key ( Default: E )
IN_LEFT 128 +left bound key ( Look left )
IN_RIGHT 256 +right bound key ( Look right )
IN_MOVELEFT 512 +moveleft bound key ( Default: A )
IN_MOVERIGHT 1024 +moveright bound key ( Default: D )
IN_ATTACK2 2048 +attack2 bound key ( Default: Right Mouse Button )
IN_RUN 4096
IN_RELOAD 8192 +reload bound key ( Default: R )
IN_ALT1 16384 +alt1 bound key
IN_ALT2 32768 +alt2 bound key
IN_SCORE 65536 +showscores bound key ( Default: Tab )
IN_SPEED 131072 +speed bound key ( Default: Shift )
IN_WALK 262144 +walk bound key ( Slow walk )
IN_ZOOM 524288 +zoom bound key ( Suit Zoom )
IN_WEAPON1 1048576 For use in weapons. Set in the physgun when scrolling an object away from you.
IN_WEAPON2 2097152 For use in weapons. Set in the physgun when scrolling an object towards you.
IN_GRENADE1 8388608 +grenade1 bound key
IN_GRENADE2 16777216 +grenade2 bound key
Personal tools