Enums/IN

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(sort by numeric value - which is also kind of the intuitive order)
Line 20: Line 20:
 
* {{HookFunction|GM|KeyPress}}
 
* {{HookFunction|GM|KeyPress}}
 
* {{HookFunction|GM|KeyRelease}}
 
* {{HookFunction|GM|KeyRelease}}
 
+
|Fields={{EnumField|IN_ATTACK|1|+attack bound key ( Default: Left Mouse Button )}}{{EnumField|IN_JUMP|2|+jump bound key ( Default: Space )}}{{EnumField|IN_DUCK|4|+duck bound key ( Default: CTRL )}}{{EnumField|IN_FORWARD|8|+forward bound key ( Default: W )}}{{EnumField|IN_BACK|16|+back bound key ( Default: S )}}{{EnumField|IN_USE|32|+use bound key ( Default: E )}}{{EnumField|IN_CANCEL|64}}{{EnumField|IN_LEFT|128|+left bound key ( Look left )}}{{EnumField|IN_RIGHT|256|+right bound key ( Look right )}}{{EnumField|IN_MOVELEFT|512|+moveleft bound key ( Default: A )}}{{EnumField|IN_MOVERIGHT|1024|+moveright bound key ( Default: D )}}{{EnumField|IN_ATTACK2|2048|+attack2 bound key ( Default: Right Mouse Button )}}{{EnumField|IN_RUN|4096}}{{EnumField|IN_RELOAD|8192|+reload bound key ( Default: R )}}{{EnumField|IN_ALT1|16384|+alt1 bound key}}{{EnumField|IN_ALT2|32768|+alt2 bound key}}{{EnumField|IN_SCORE|65536|+showscores bound key ( Default: Tab )}}{{EnumField|IN_SPEED|131072|+speed bound key ( Default: Shift )}}{{EnumField|IN_WALK|262144|+walk bound key ( Slow walk )}}{{EnumField|IN_ZOOM|524288|+zoom bound key ( Suit Zoom )}}{{EnumField|IN_WEAPON1|1048576|For use in weapons. Set in the physgun when scrolling an object away from you.}}{{EnumField|IN_WEAPON2|2097152|For use in weapons. Set in the physgun when scrolling an object towards you.}}{{EnumField|IN_BULLRUSH|4194304}}{{EnumField|IN_GRENADE1|8388608|+grenade1 bound key}}{{EnumField|IN_GRENADE2|16777216|+grenade2 bound key}}
|Fields=
+
{{EnumField|IN_ALT1|16384|+alt1 bound key}}
+
{{EnumField|IN_ALT2|32768|+alt2 bound key}}
+
{{EnumField|IN_ATTACK|1|+attack bound key ( Default: Left Mouse Button )}}
+
{{EnumField|IN_ATTACK2|2048|+attack2 bound key ( Default: Right Mouse Button )}}
+
{{EnumField|IN_BACK|16|+back bound key ( Default: S )}}
+
{{EnumField|IN_DUCK|4|+duck bound key ( Default: CTRL )}}
+
{{EnumField|IN_FORWARD|8|+forward bound key ( Default: W )}}
+
{{EnumField|IN_JUMP|2|+jump bound key ( Default: Space )}}
+
{{EnumField|IN_LEFT|128|+left bound key ( Look left )}}
+
{{EnumField|IN_MOVELEFT|512|+moveleft bound key ( Default: A )}}
+
{{EnumField|IN_MOVERIGHT|1024|+moveright bound key ( Default: D )}}
+
{{EnumField|IN_RELOAD|8192|+reload bound key ( Default: R )}}
+
{{EnumField|IN_RIGHT|256|+right bound key ( Look right )}}
+
{{EnumField|IN_SCORE|65536|+showscores bound key ( Default: Tab )}}
+
{{EnumField|IN_SPEED|131072|+speed bound key ( Default: Shift )}}
+
{{EnumField|IN_USE|32|+use bound key ( Default: E )}}
+
{{EnumField|IN_WALK|262144|+walk bound key ( Slow walk )}}
+
{{EnumField|IN_ZOOM|524288|+zoom bound key ( Suit Zoom )}}
+
{{EnumField|IN_GRENADE1|8388608|+grenade1 bound key}}
+
{{EnumField|IN_GRENADE2|16777216|+grenade2 bound key}}
+
{{EnumField|IN_WEAPON1|1048576|For use in weapons. Set in the physgun when scrolling an object away from you.}}
+
{{EnumField|IN_WEAPON2|2097152|For use in weapons. Set in the physgun when scrolling an object towards you.}}
+
{{EnumField|IN_BULLRUSH|4194304}}
+
{{EnumField|IN_CANCEL|64}}
+
{{EnumField|IN_RUN|4096}}
+
 
}}
 
}}

Revision as of 20:24, 18 April 2017

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_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
Personal tools
Navigation