Advertisement
_PoY

BGE 20AE - OG keyboard+mouse+macro keybinds (universal)

Jul 18th, 2024 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. WARNING : as of July 24th 2024, this setup doesn't allow the player to properly shoot Gyrodisks.
  2.  
  3. SETUP :
  4. - Add the "main content" section to BGE.player.ini, located in C:\Users\<username>\Saved Games\Beyond Good & Evil - 20th Anniversary Edition
  5. - Install AutoHotkey. Save the autohotkey section to a file with extension .ahk, then run it (double-click on the file when AutoHotkey is installed). The script should appear in the tray (bottom right of screen with default taskbar on Windows).
  6.  
  7. EFFECTS :
  8. - This sets most controls from the original game.
  9. - Notable exceptions :
  10. - no zoom with Mouse Wheel.
  11. - no left/right lean in photo mode with left/right inputs.
  12. - without using the macro, interaction is set as Middle Mouse Button.
  13. - This setup assigns the Ubisoft pause menu to P.
  14. - Contrary to HD, you won't be able to Quickdisks, as this requires the Gyrodisk shoot button and the jump button to be on different keys.
  15.  
  16.  
  17. ### AUTOHOTKEY ###
  18.  
  19. #IfWinActive ahk_class BGEMain
  20.  
  21. ~LButton::
  22. Send {MButton Down}
  23. Return
  24.  
  25. ~LButton Up::
  26. Send {MButton Up}
  27. Return
  28.  
  29. LControl & ~LButton::
  30. Send {LControl Down}{MButton Down}
  31. Return
  32.  
  33. LControl & ~LButton Up::
  34. Send {LControl Down}{MButton Up}
  35. Return
  36.  
  37.  
  38.  
  39. ### MAIN CONTENT ###
  40.  
  41. [Infos]
  42. # Skip intro message
  43. SkipBootUpMsg=1
  44.  
  45. [KeySetting]
  46. # SelectedKeySetting_PC=
  47. # 0 : deactivate action if custom code assigned ?
  48. # 1 : override key if custom code assigned, otherwise uses default key
  49. # 2-8 : garbage data that can make the game crash at startup. If the game still runs, then key mappings will make no sense
  50. SelectedKeySetting_PC=1
  51.  
  52. [KeySetting]
  53. # SelectedKeySetting_PC=
  54. # 0 : deactivate action if custom code assigned ?
  55. # 1 : override key if custom code assigned, otherwise uses default key
  56. # 2-8 : garbage data that can make the game crash at startup. If the game still runs, then key mappings will make no sense
  57. SelectedKeySetting_PC=1
  58.  
  59. [Keybindings]
  60. # Leaving the code blank sets the action to its default key
  61. # Code : AZERTY/QWERTY
  62.  
  63. # This layout sets E for compass, Middle Mouse Button for actions.
  64. # A macro triggers both Left and Middle Mouse Buttons when Left Mouse Button is used, to mimic OG.
  65. # The rest is as close to OG as possible.
  66.  
  67. # 18 : E
  68. INO_KEY_COMPASS=18
  69. # 258 : Left Mouse Button
  70. INO_KEY_ATTACK=258
  71. # 15 : Tab
  72. INO_KEY_MAP=15
  73. # 57 : Space
  74. INO_KEY_ACCELERATE=57
  75. # 46 : C
  76. INO_KEY_CENTER_CAMERA=46
  77. # 259 : Right Mouse Button
  78. INO_KEY_JUMP=259
  79. # 260 : Middle Mouse Button
  80. INO_KEY_ACTION=260
  81. # 1 : Esc
  82. INO_KEY_INVENTORY=1
  83. # 42 : Shift
  84. INO_KEY_OBSERVE=42
  85. # 3 : 2
  86. INO_KEY_PREV=3
  87. # 4 : 3
  88. INO_KEY_NEXT=4
  89. # 25 : P
  90. INO_KEY_PAUSE=25
  91. # 29 : Ctrl
  92. INO_KEY_CROUCH=29
  93. # 16 : A/Q
  94. INO_KEY_USE=16
  95.  
  96. # 259 : Right Mouse Button
  97. INO_KEY_BACK=259
  98. # 258 : Left Mouse Button
  99. INO_KEY_CONFIRM=258
  100.  
  101. # 57 : Space
  102. INO_KEY_MENU_INFO=57
  103. # 57 : Space
  104. INO_KEY_MAP_ZOOM=57
  105. # 17 : Z/W
  106. INO_KEY_UP=17
  107. # 30 : Q
  108. INO_KEY_LEFT=30
  109. # 31 : S
  110. INO_KEY_DOWN=31
  111. # 32 : D
  112. INO_KEY_RIGHT=32
  113. # 258 : Left Mouse Button
  114. INO_KEY_TAKE_PHOTO=258
  115. # 259 : Right Mouse Button
  116. INO_KEY_GYRODISK_SHOOT=259
  117.  
  118. INO_KEY_RESET=
  119. INO_KEY_PUCK_SWAP=
  120. INO_KEY_PUCK_SHOOT=
  121. INO_KEY_UP_BAK=
  122. INO_KEY_LEFT_BAK=
  123. INO_KEY_DOWN_BAK=
  124. INO_KEY_RIGHT_BAK=
  125. INO_KEY_NAVIGATE_DOWN=
  126. INO_KEY_NAVIGATE_UP=
  127. INO_KEY_NAVIGATE_RIGHT=
  128. INO_KEY_NAVIGATE_LEFT=
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement