Keys: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 30: Line 30:
| 65536|| KEY_ONFOOT_LOOKBHND
| 65536|| KEY_ONFOOT_LOOKBHND
|-
|-
| 1|| Example
| 1|| KEY_INCAR_HANDBRAKE
|-
|-
| 2 || Example
| 2 || KEY_INCAR_LOOKRIGHT
|-
|-
| 4 || Example
| 4 || KEY_INCAR_LOOKLEFT
|-
|-
| 8 || Example
| 8 || KEY_INCAR_LEANDOWN
|-
|-
| 16|| Example
| 16|| KEY_INCAR_LEANUP
|-
|-
| 1024|| Example
| 1024|| KEY_INCAR_FORWARD
|-
|-
| 2176|| Example
| 288 || KEY_INCAR_HORN
|-
|-
| 4096|| Example
| 2176|| KEY_INCAR_BACKWARD
|-
|-
| 8192|| Example
| 4096|| KEY_INCAR_RIGHT
|-
|-
| 65536|| Example RegisterSquirrelConst(v, "KEY_INCAR_LEFT", 8192);
| 8192|| KEY_INCAR_LEFT
    RegisterSquirrelConst(v, "KEY_INCAR_RIGHT", 4096);
    RegisterSquirrelConst(v, "KEY_INCAR_BACKWARD", 2176);
    RegisterSquirrelConst(v, "KEY_INCAR_FORWARD", 1024);
    RegisterSquirrelConst(v, "KEY_INCAR_HORN", 288);
    RegisterSquirrelConst(v, "KEY_INCAR_LEANUP", 16);
    RegisterSquirrelConst(v, "KEY_INCAR_LEANDOWN", 8);
    RegisterSquirrelConst(v, "KEY_INCAR_LOOKLEFT", 4);
    RegisterSquirrelConst(v, "KEY_INCAR_LOOKRIGHT", 2);
    RegisterSquirrelConst(v, "KEY_INCAR_SUB_MISSION", 65536);
    RegisterSquirrelConst(v, "KEY_INCAR_HANDBRAKE", 1);//added 
|-
|-
| Example || Example
| 65536|| KEY_INCAR_SUB_MISSION
|-
| Example || Example
|}
|}

Revision as of 13:41, 25 March 2022

Key Value Macro
1 KEY_ONFOOT_AIM
2 KEY_ONFOOT_NEXTWEP
4 KEY_ONFOOT_PREVWEP
64 KEY_ONFOOT_PUNCH
288 KEY_ONFOOT_CROUCH
576 KEY_ONFOOT_FIRE
1024 KEY_ONFOOT_SPRINT
2176 KEY_ONFOOT_JUMP
4096 KEY_ONFOOT_RIGHT
8192 KEY_ONFOOT_LEFT
16384 KEY_ONFOOT_BACKWARD
32768 KEY_ONFOOT_FORWARD
65536 KEY_ONFOOT_LOOKBHND
1 KEY_INCAR_HANDBRAKE
2 KEY_INCAR_LOOKRIGHT
4 KEY_INCAR_LOOKLEFT
8 KEY_INCAR_LEANDOWN
16 KEY_INCAR_LEANUP
1024 KEY_INCAR_FORWARD
288 KEY_INCAR_HORN
2176 KEY_INCAR_BACKWARD
4096 KEY_INCAR_RIGHT
8192 KEY_INCAR_LEFT
65536 KEY_INCAR_SUB_MISSION