downloaded the script that changes the input from double tapping ALT
double-clicked before launching game to make sure autohotkey was running
Anyway, pressing G just made my character spin around in different directions, checked to see if G was already binded to another function (it was) so I changed the input key to Y, then Tab, no success.
Should the .ahk file be in a certain directory?
UPDATE: so I swapped all the keys in the script like so: ?SetTitleMatchMode 2 #SingleInstance Force
#IfWinActive, Cyberpunk 2077 (C) 2020
*G:: { Send {Y} Sleep, 100 Send {Y} } Return
#IfWinActive and "Y" would toggle the weapons, but G would do nothing, any clues?
Thank you for this. Having to hold alt just to put weapons way was annoying. LOL, don't know if you or anyone else as noticed. but when u get into your car at night and your headlights come on, hitting the "G" key will turn your car lights off, and hit again, and you turn on your high beams. LOL, makes a difference driving around with Brights on. I don't even know if that's possible in base game, its awesome!
Thanks for this mod. It boggles my mind that CPDR couldn't even get the most basic function of any first person shooter implemented right. Never knew that double tapping Alt key holsters your weapon and I always used the crappy weapon wheel. Was that mentioned somewhere in the game, maybe early on? Idk.
We know. And it f***ing sucks, because alt also cycles weapons and you end up cycling weapons 50% of the time instead of holstering your weapon. There's no reason why the developers chose not allow us to bind a separate holster key, yet here we are.
I have it set up, and it works 90% of the time without issue, but then the other 10% it will work while at the same time triggering my consumable action (which I have bound to "caps").
I've changed "Alt" to U and "G" to Y (keys I have bound), but that's it otherwise. I'm not sure why/where it's getting my consumable action from...
Hi, You should take into account that the functions of the weapon wheel and holster are hard-coded in the game to work with only one key for some reason, and these functions cannot be separated without beeng able to access to in-game resources which is currently impossible without the appropriate modding tools. This script is a small code run by a third party application that just simulating double pressing a key set in the game for the Holster with another key (some kind of a little trick) without making any changes into game resources. So it's quite difficult for me to answer what exactly keyboard keys combinations will work properly. It's impossible to test them all. The only thing I can definitely say is that remapping Alt to Tab, CapsLock or Ctrl works fine for me without any issues. I hope I haven't explained too confusing.
Ah, ok. Damn. However, your explanation pointed out how obvious the fix I'm looking for is, so thanks. I never use the weapon cycle, or weapon wheel actually, so I just need a holster button. Simple for me to hotkey it myself as a double clicked button, duh. Thanks!
I would agree that it's great but not perfect. I still sometimes end up switching weapons with the G key, rather than putting them away. All in all, though, it works a LOT better than the ALT double-tap.
Thanks for this and great job!! It works great. You have *XButton2:: in your example as Mouse5. Do you happen to know what the button name is for Mouse3? (middle mouse button).
34 comments
- installed autohotkey
- downloaded the script that changes the input from double tapping ALT
- double-clicked before launching game to make sure autohotkey was running
Anyway, pressing G just made my character spin around in different directions, checked to see if G was already binded to another function (it was) so I changed the input key to Y, then Tab, no success.Should the .ahk file be in a certain directory?
UPDATE: so I swapped all the keys in the script like so:
?SetTitleMatchMode 2
and "Y" would toggle the weapons, but G would do nothing, any clues?#SingleInstance Force
#IfWinActive, Cyberpunk 2077 (C) 2020
*G::
{
Send {Y}
Sleep, 100
Send {Y}
}
Return
#IfWinActive
f*#@ing HOLD R YO HOLSTER WEAPON!!!!!!1111111111
Good job!
I've changed "Alt" to U and "G" to Y (keys I have bound), but that's it otherwise.
I'm not sure why/where it's getting my consumable action from...
You should take into account that the functions of the weapon wheel and holster are hard-coded in the game to work with only one key for some reason, and these functions cannot be separated without beeng able to access to in-game resources which is currently impossible without the appropriate modding tools.
This script is a small code run by a third party application that just simulating double pressing a key set in the game for the Holster with another key (some kind of a little trick) without making any changes into game resources.
So it's quite difficult for me to answer what exactly keyboard keys combinations will work properly. It's impossible to test them all.
The only thing I can definitely say is that remapping Alt to Tab, CapsLock or Ctrl works fine for me without any issues.
I hope I haven't explained too confusing.
However, your explanation pointed out how obvious the fix I'm looking for is, so thanks.
I never use the weapon cycle, or weapon wheel actually, so I just need a holster button.
Simple for me to hotkey it myself as a double clicked button, duh.
Thanks!