S.T.A.L.K.E.R. 2: Heart of Chornobyl

S.T.A.L.K.E.R. 2: Heart of Chornobyl

View Stats:
[SOLVED] How do I change the under barrel grenade launcher keybind?
Solution: I managed to solve it by binding something in "fight and exploration" (or whatever it's called) category to B and in %LOCALAPPDATA% \Stalker2\Saved\CustomizeControls.cfg searching for "ToggleAttachMode" and setting the key to T in my case. You can do similar for melee.


Here's the post:

I know that Tab + C works as well as holding B but I want to rebind the button to hold T (same as Change Firing Mode after my rebind).

Even went as far as adding

[1] : struct.begin DefaultID = -1 bIsPlayerMappable = true PlayerMappableOption = ToggleAttachMode InputActionSID = IA_ToggleAttachMode Key = T OldKey = B Triggers : struct.begin [0] = EPlayerActionInputTrigger::Hold struct.end struct.end
(3 spaces = 1 tab)

under
AttachSelector : Struct.Begin
in CustomizeControls.cfg located in AppData\Local\Stalker2\Saved as someone pointed out in one of other discussions i saw.

I noticed that keybinds only appear there once you changed them in-game but there is not an option to change the grenade launcher bind in-game.

I have no idea how whatever I wrote makes sense + first time writing a discussion & formatting in Steam.
Last edited by idk what to put here; Dec 16, 2024 @ 2:09pm
< >
Showing 1-3 of 3 comments
Kenshii Dec 15, 2024 @ 6:06am 
Saw this post way later. Letting you know that your link to the other steam post did in fact work for me.

Just highlighting a few things regarding what that other user posted:
1) The default for grenade launcher is holding B. Your prob like me and changed "Change Fire Mode" to something else but didn't rebind anything to B.

As you mentioned keybinds will appear once you changed them in game. Just put any action to B in game - the game will warn you it'll overwrite "Change Fire Mode" or something. Just say yes.

2) Exit the game. The .cfg file will update. Now open the .cfg file in notepad. I did ctrl + f for "oldkey = b". You're looking for the ones with EPlayerActionInputTrigger::Hold.

The other post mentions you should see something like this:
DefaultID = -1
bIsPlayerMappable = true
PlayerMappableOption = ToggleAttachMode
InputActionSID = IA_ToggleAttachMode
Key = None
OldKey = B
Triggers : struct.begin
[0] = EPlayerActionInputTrigger::Hold
struct.end

This is true, however it came up twice in my .cfg file. I just edited both of them to Key = T.

I think you specifically need to modify from the top, within Exploration. Looks like
PlayerMappings : struct.begin
None =
Exploration : struct.begin
...

The other struct with the same code for the grenade launcher is written under.
InspectArtifact : struct.begin
...


Also, not sure why I can't change from ::Hold to ::Tap or ::Pressed. I tried to make a dedicated button where it switched on tap/press but it won't do it unfortunately. The button works, I just have to hold it.
WooKie Dec 15, 2024 @ 11:17am 
You can long press and release forward mouse button to change between them. it's less clunky but yeah I wish to rebind to.
I managed to solve it by binding something in "fight and exploration" (or whatever it's called) category to B and in %LOCALAPPDATA% \Stalker2\Saved\CustomizeControls.cfg searching for "ToggleAttachMode" and setting the key to T in my case. You can do similar for melee.

Originally posted by WooKie:
You can long press and release forward mouse button to change between them. it's less clunky but yeah I wish to rebind to.
I bound the side buttons to quick slots.
Last edited by idk what to put here; Dec 16, 2024 @ 2:07pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Dec 2, 2024 @ 2:44pm
Posts: 3