Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

Taffers,

Time ago @Obsttorte and I worked on an AutoHotKey script that allows to control the player speed with the mouse wheel. In a further attempt to reduce the amount of critical keys this game demands I also created back then a script that allows the Left Alt Key to act as a lean modifier:

  • Left Alt + W = Lean forward
  • Left Alt + A = Lean left
  • Left Alt + D = Lean right

I never got around publishing the script because it isn't as good as it needs to be but I think we can debate regardless whether such a Lean Modifier Key would be welcomed in the core game or not. The most interesting aspect in my opinion is that we can claim back important keys such as Q and E and use them for other purposes.

----------------------------------------------------------------------

Here below is the script in case anyone wants to give it a try (you must be familiar with AutoHotKey). The required key bindings for the script to work are:

  • Move forward [W], Strafe Left [A], Strafe Right [D]
  • Lean Forward [Numpad8], Lean Left [Numpad4], Lean Right [Numpad6]

You can of course change the script to your liking....

#IfWinActive ahk_exe TheDarkModx64.exe ; run only when TDM is in focus

<!w::
while (GetKeyState("LAlt", "P") && GetKeyState("w", "P"))
{
	Send {Blind}{Numpad8 down}
}
Send {Numpad8 up}
return

<!a::
while (GetKeyState("LAlt", "P") && GetKeyState("a", "P"))
{
	Send {Blind}{Numpad4 down}
}
Send {Numpad4 up}
return

<!d::
while (GetKeyState("LAlt", "P") && GetKeyState("d", "P"))
{
	Send {Blind}{Numpad6 down}
}
Send {Numpad6 up}
return

Cheers!

Edited by snatcher
  • Thanks 1

TDM_Modpack_Thumb_51.png.748522d7ee2ef4ae4c47f52887da2c66.png

Posted

Good work. I would use it myself because eventhough I'm not stressed for keys it makes the controls easier if it's nice and close like the delete button to my arrow keys. 

Posted

I detect two use cases where the script is limited:

  • Trying to blackjack AI on the move (players may want to lean forward)
  • Trying to pickpocket AI on the move (players may want to lean forward)

The proper implementation of a Lean Modifier Key should be:

  • If the player is moving and the Lean Modifier Key is pressed, the player leans while moving.
  • If the player is not moving and the Lean Modifier Key is pressed, the player simply leans.

TDM_Modpack_Thumb_51.png.748522d7ee2ef4ae4c47f52887da2c66.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...