IN
Description
Unlike Enums/BUTTON_CODE, 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:
- Player:KeyDown
- Player:KeyDownLast
- Player:KeyPressed
- Player:KeyReleased
- CMoveData:AddKey
- CMoveData:GetButtons
- CMoveData:GetOldButtons
- CMoveData:KeyDown
- CMoveData:KeyPressed
- CMoveData:KeyReleased
- CMoveData:KeyWasDown
- CMoveData:SetButtons
- CMoveData:SetOldButtons
- CUserCmd:GetButtons
- CUserCmd:KeyDown
- CUserCmd:RemoveKey
- CUserCmd:SetButtons
- GM:KeyPress
- GM:KeyRelease
Values
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_CANCEL | 64 | |
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_BULLRUSH | 4194304 | |
IN_GRENADE1 | 8388608 | +grenade1 bound key |
IN_GRENADE2 | 16777216 | +grenade2 bound key |