Эмуляция игровых клавиш.
вот такая конструкция
Code
:NONAME_28
0@ *= 2
0@ += 12006488
0A8C: write_memory 0@ size 2 value 128 virtual_protect 0
0AB2: ret 0
вставьте это в любое место скрипта, а вызывайте так
Code
0AB1: call_scm_func @NONAME_28 1 6
последний параметр номер игровой клавиши которую мы эмулируем. Вот полный список
Code
ONFOOT CONTROLS
# CONTROL GXT ENTRY VALUES
0 left/right ~k~~GO_LEFT~ / ~k~~GO_RIGHT~
1 forward/backward ~k~~GO_FORWARD~ / ~k~~GO_BACK~
2 special ctrl left/right ~k~~VEHICLE_LOOKLEFT~/~k~~VEHICLE_LOOKRIGHT~
3 special ctrl up/down -unknown-
4 action/secondary fire ~k~~PED_ANSWER_PHONE~/ ~k~~PED_FIREWEAPON_ALT~
5 previous weapon/zoom in ~k~~PED_CYCLE_WEAPON_LEFT~/ ~k~~PED_SNIPER_ZOOM_IN~
6 aim weapon ~k~~PED_LOCK_TARGET~
7 next weapon/zoom out ~k~~PED_CYCLE_WEAPON_RIGHT~/ ~k~~PED_SNIPER_ZOOM_OUT~
8 group CTRL forward ~k~~GROUP_CONTROL_FWD~
9 group CTRL back ~k~~GROUP_CONTROL_BWD~
10 conversation - no ~k~~CONVERSATION_NO~
11 conversation - yes ~k~~CONVERSATION_YES~
12 (does not exist) -- -- --
13 change camera ~k~~CAMERA_CHANGE_VIEW_ALL_SITUATIONS~
14 jump ~k~~PED_JUMPING~
15 enter vehicle ~k~~VEHICLE_ENTER_EXIT~
16 sprint ~k~~PED_SPRINT~
17 fire ~k~~PED_FIREWEAPON~
18 crouch ~k~~PED_DUCK~
19 look behind ~k~~PED_LOOKBEHIND~
LALT sneak ~k~~SNEAK_ABOUT~
VEHICLE CONTROLS
# CONTROL GXT ENTRY VALUES
0 left/right ~k~~VEHICLE_STEERLEFT~/ ~k~~VEHICLE_STEERRIGHT~
1 steer back/up ~k~~VEHICLE_STEERUP~/ ~k~~VEHICLE_STEERDOWN~
2 special ctrl left/right ~k~~VEHICLE_TURRETLEFT~/ ~k~~VEHICLE_TURRETRIGHT~ (NUM6)
3 special control up/down ~k~~VEHICLE_TURRETUP~/ ~k~~VEHICLE_TURRETDOWN~
4 secondary fire ~k~~VEHICLE_FIREWEAPON_ALT~
5 look left ~k~~VEHICLE_LOOKLEFT~
6 hand brake ~k~~VEHICLE_HANDBRAKE~
7 look right ~k~~VEHICLE_LOOKRIGHT~
8 next radio station ~k~~VEHICLE_RADIO_STATION_UP~
9 previous radio station ~k~~VEHICLE_RADIO_STATION_DOWN~
10 no ~k~~CONVERSATION_NO~
11 yes / trip skip ~k~~CONVERSATION_YES~
12 (does not exist) -- -- --
13 camera ~k~~CAMERA_CHANGE_VIEW_ALL_SITUATIONS~
14 brake/reserve ~k~~VEHICLE_BRAKE~
15 enter/exit ~k~~VEHICLE_ENTER_EXIT~
16 accelerate ~k~~VEHICLE_ACCELERATE~
17 fire ~k~~VEHICLE_FIREWEAPON~
18 horn ~k~~VEHICLE_HORN~
19 submission ~k~~TOGGLE_SUBMISSIONS~
RMB vehicle mouse look ~k~~VEHICLE_MOUSELOOK~