Half-Life: Alyx

Half-Life: Alyx

Internal Speedbutton Testing
44 Comments
tarkovsky 13 Apr @ 8:52am 
There is my config for Oculus Quest 3. Unlimited stamina, without sprint hud, sound and warning. Activate/disable by "X" button on left controller (if right hand is primary). Do not block activate grenade. Very useful for me.

Put it to "\Half-Life Alyx\game\hlvr\cfg\sprint_config.cfg"

sprint_drain_speed "0.01"
sprint_regen_speed "0.10"
sprint_max_stamina "10"
sprint_low_stamina_warning_disabled "1"
sprint_control_disable_armgrenade "0"
sprint_control_disable_weaponswitch "1"
sprint_control_disable_grip "1"
sprint_activation_sound_disabled "1"
sprint_hud_scale "0"
Epoch 1 Jan @ 2:50pm 
So I disabled the other sprint testing mod and just went in with the beta and it works! Will fiddle around with binding but thank you and sorry for my ignorance.
Epoch 1 Jan @ 2:41pm 
Did preciously what you said. Checked the sprint_config.cfg and it is named properly, put the commands in the same order as the screenshot just to test it, nothing. It still activates only when using the grip function even though I put in the command to disable it.

I'm subscribed to both the testing and the other workshop sprint mod could that be giving me issues?
CementStairs  [author] 29 Dec, 2024 @ 1:41am 
IF you're sure you need a fully custom bind (the presets with "sprint_control_disable_[button]" are the most common buttons you'd want to use anyways), then take a look at the pinned Discussion to see to which action you want to bind the button:

https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2808938697/3382778848120099494/

Keep in mind that some of those actions are always specific to a certain hand (e.g. gun related are usually on your dominant), so experiment to see which works for you. The most common are: 4, 16 and 27, which are already included as aforementioned presets.
CementStairs  [author] 29 Dec, 2024 @ 1:41am 
@Epoch

Hey,
the commands you want to be using are in the "Customisation" section on this page. At the bottom, there's the file-path where you should save your config file.

It should be named exactly "sprint_config.cfg", and make sure it's truly a ".cfg" file and not "sprint_config.cfg.txt", if you have file extensions disabled.

Inside of the file, you put one command to a line separately. Like in this example:

https://imgur.com/a/muJ5U85
Epoch 28 Dec, 2024 @ 1:26pm 
Sorry it's been so long since my last response. The config file doesn't respond to anything I put inside of it, it still activates with even the slightest grip of my offhand controller. I'm also still confused as to how I'm actually supposed to bind the command to a custom key.
A_pet_tick 25 Apr, 2024 @ 9:19am 
Maybe autodisable sprint after the movement joystick is de-pressed. Idk how feasable that is in this games modding tools.
AK3D 22 Apr, 2024 @ 10:37am 
Hmm.. It's looks like really nice mod. I don't like the concept that you need to turn sprint on AND off all the time. Maybe there is a way to enable sprint only when button is hold rather than use it as toggle?
CementStairs  [author] 29 Mar, 2024 @ 1:10am 
@Epoch

Hey!

Generally, the actions you want to try are "Use", "Use Grip", "Arm Grenade", "Adjust Height" or "Show inventory" and perhaps "Toggle Burst Fire" (though explore other options if necessary).

If you want to bind the action to the primary hand, you can use the "sprint_custom_control_hand" convar, though mind that the same actions on one hand might not get triggered on the opposite hand (refer to what in-game actions the buttons trigger on your device).

Also note that if you want to keep some of the changes even after reloading, you should put them to the "sprint_config.cfg" file, as described in the Customisation section.
Epoch 28 Mar, 2024 @ 8:07pm 
Hey! I understand you do not own the Index controllers but I'm having an issue. I'm trying to bind the left control stick click as the sprint button but for the life of me cannot find the value for it on the wiki page you linked. Any ideas?
Yukki Freeman 9 Sep, 2023 @ 3:49pm 
thank you, this helped a lot
CementStairs  [author] 9 Sep, 2023 @ 5:16am 
@Yukki Freeman

You can download only this "Internal Speedbutton Testing" version, and have only it enabled in-game, with the other version disabled.
Since both of these addons share the same script files, one of them would be overriden if both were enabled at the same time (the one that was enabled last would be the one working).
Also, make sure to start a new save for the campaign/custom map you want to be playing with this mod, as Alyx doesn't natively support loading new addons mid-playthrough.
Yukki Freeman 8 Sep, 2023 @ 2:48pm 
Do I need to install the normal and the beta or just 1 of them? Do I have to activate just 1 or both? If it's just 1, do I have to activate the beta or the main one?
T-TaaN 25 Jan, 2023 @ 11:17am 
Can you please add an option to stop sprinting when stop moving?
CementStairs  [author] 18 Dec, 2022 @ 1:49pm 
Hey,

You can create a regular empty .txt file in the directory mentioned above(it should be the same directory as the other .cfg files), and change it's file extension to ".cfg". The name of the file should always be "sprint_config.cfg". Then inside of the file, there should be only one command per line, in this exact format: "sprint_speed_multiplier 100". Restart the game, and it should get automatically activated.
Lil Chong 18 Dec, 2022 @ 1:01pm 
Yo how do I create a config file? I copied one of the existing HLA cfg files and put in the commands that you have listed above but none of them are working in game.
Yukki Freeman 24 Nov, 2022 @ 10:01am 
thank you, this help a lot
CementStairs  [author] 24 Nov, 2022 @ 5:43am 
When it comes to the custom binds, see the pinned topic here on this Workshop page. It links resources, where you can find which button you want to bind.

I'm not an owner of Valve Index and I don't know what their control scheme is, but the links above will tell you, which number refers to what button function so you can set it as desired.

If it says that "4" is "Use Grip", then the button on your controller that activates this function will be represented by the number "4".
CementStairs  [author] 24 Nov, 2022 @ 5:39am 
Hey!

It's the first option you mentioned - "sprint_control_disable_grip 1"

If you type just the command without any value - "sprint_control_disable_grip" - then it will tell you what it's currently set to.
Yukki Freeman 23 Nov, 2022 @ 4:25pm 
and i use valve index controller and i want use the right analog up for sprint, sorry for being so dumb,
Yukki Freeman 23 Nov, 2022 @ 4:20pm 
hey, what command i use to not activate the sprint with the grip? is "sprint_control_disable_grip 1" or "sprint_control_disable_grip=1" or "sprint_control_disable_grip:1"?
CementStairs  [author] 19 Sep, 2022 @ 11:39am 
Sorry for the confusion
A_pet_tick 19 Sep, 2022 @ 11:34am 
thats probably the problem lol. Thanks for the heads up
CementStairs  [author] 19 Sep, 2022 @ 4:37am 
@A_pet_tick

If your config file is called "spring_config.cfg" then I'm sorry for the inconvenience. It's a typo, as it's supposed to be "sprint_config.cfg" - it was already fixed on the main page, but here I accidentally reverted it.
A_pet_tick 18 Sep, 2022 @ 2:23pm 
Its loading. It seems like the hud is disabled for some reason (although that is what I wanted to set it to anyways). I think its ignoring my config since using vconsole during the game to do setup stuff makes it work
CementStairs  [author] 18 Sep, 2022 @ 1:57pm 
Enable this in the menu together with the Scalable Init Support and then Start the campaign/a custom map with Addons Enabled.

If you're unsure whether the addon loaded, open console and look for a Vscript message telling you that the Sprint Script is running.

Also make sure that there's no mods that could cause compatibility issues enabled.
A_pet_tick 18 Sep, 2022 @ 1:51pm 
Actually, i think my issue comes from the mod not loading at all for some reason. The sprint hud thing isnt appearing. Is there a trick to how i should enable this mod (like order wise? should I enable this first before or after maps + scaleable init support?)
A_pet_tick 18 Sep, 2022 @ 1:41pm 
Anyone know what an ideal setup for boneworks like mobility would be? Im having trouble finding a good custom button. Tried 25 since that should be on the right spot with default controlls (i have crouching disabled) but no register.
CementStairs  [author] 21 Aug, 2022 @ 10:53pm 
Awesome, thanks!
The Coletrain 21 Aug, 2022 @ 2:57pm 
It does play the sounds when sprint_activation_sound_disabled is set to 0.
CementStairs  [author] 21 Aug, 2022 @ 2:13am 
Oh and just to make sure, if the convar "sprint_activation_sound_disabled" is set to 0, it still plays the sound for you, right?
CementStairs  [author] 21 Aug, 2022 @ 2:08am 
@The Coletrain

Thank you for ensuring me that it's so far stable. I'm glad you're enjoying it!
The Coletrain 21 Aug, 2022 @ 2:06am 
Wow, I updated my config with the new command and the noise is gone. You're honestly a legend for updating the mod that quickly after I suggested it. I haven't had any problems with this internal sprint mod yet, and I used it for a good 6 hours the other day. I'm gonna use this to play through the second Bioshock map, and I'll post a video and credit you and your mod for sure, may even include my config and how I set it up in the description.
CementStairs  [author] 19 Aug, 2022 @ 10:22am 
@The Coletrain

Hey, I added an option to disable the sound through "sprint_activation_sound_disabled" convar(console variable). Try it and let me know if everything works fine.
The Coletrain 19 Aug, 2022 @ 9:13am 
This mod is a must have for me, I really appreciate you making it. The only thing keeping it from being perfect for me is the noise it makes when you toggle on and off sprint. The noises (Especially the toggle off noise) are weird and kind of break my immersion, I believe there should be an option to toggle that noise off. With my bindings, there is no need to have a sound indication seeing as I've never accidentally toggled sprint. Phenomenal mod, very useful and customizable :)
CementStairs  [author] 26 May, 2022 @ 5:37am 
Also, are you using the in-game console for this? It is enabled by adding "-console -vconsole" to the startup options of Alyx, and then activated in-game by the "~" or "`" button that is under the "Esc" button on your keyboard.

It's also important to know that if you use these commands outside of the session you're currently in(for instance you use them in the startup menu and then load a map), they will get reverted to the default values. So either test those commands in a map you're already playing, or create the custom "sprint_config.cfg" file as described in the mod's description to have this automatically done for you.

At the very least, I'd use just the commands "sprint_control_disable_weaponswitch 1" and "sprint_control_disable_armgrenade 0" to stop the crouch button from activating the sprint, and for the armgrenade button to activate it instead.
CementStairs  [author] 26 May, 2022 @ 5:37am 
@CptAnonymou5

Hey,

It seems the screenshot you sent me doesn't exist, so I sadly can't see what commands you used.

Nevertheless, I will ask you about few things that could be the cause of it.

Firstly, does the Sprint Mod work normally(can you use the regular controls to activate the sprint)?

If so, do you see the new commands ( "sprint_control_disable_grip" for instance) suggested by the console upon writing "sprint"? (It should display all commands starting or including this word).

If it shows some commands, but not the new ones, I'd make sure you have subscribed to the test version of the mod and that you have it enabled in the menu, while also having the public version disabled.
AdeptuS AnonyMouS 25 May, 2022 @ 11:43pm 
Unless I'am doing it wrong noting I do seems to change anything on Oculus. Here is an image of cmd's I tried https://i.imgur.com/Tupu1tT.png
CementStairs  [author] 25 May, 2022 @ 9:27pm 
From what I've been told, the Grip Button on Oculus might be the "left stick down button", but I can't confirm it, so you can try that before changing to "sprint_control_disable_grip 1".

As for the fully custom controls, you can change the value of "sprint_custom_control_button" during runtime, so if you have "sprint_custom_control_disabled 0" and the correct hand set, you can try going through the inputs availalbe on the HLA wiki and try pressing all the buttons on that hand to see if it works(some of the inputs are hand-specific, like "Eject Magazine" works only on your dominant hand), as I'm sadly not aware of any other method of figuring out the control scheme.
CementStairs  [author] 25 May, 2022 @ 9:27pm 
Hey,

There's sadly not an Oculus Control Layout as far as I'm concerned, and I can't test which button is which myself, because I don't own an Oculus device.

I think the "Arm Grenade" button might be fairly easy to find on the controller, because it should be same on both of your hands. You can try using the command "sprint_control_disable_armgrenade 0" to enable the arm grenade while also changing "sprint_control_disable_grip 1" and "sprint_control_disable_weaponswitch 1" to disable the default inputs.
AdeptuS AnonyMouS 25 May, 2022 @ 5:06pm 
Are button binding numbers different on Oculus? I cant seem to find an answer on Google.. I see you have the button set @ Button #4 (Grip) but with Oculus Q2 link its Stick crouch which brings me to your testing mod. Id gladly test it around I play Alyx all the time but looks like I might need to guess numbers for the buttons on Quest 2.
If you have any insight on the button layout numbers let me know might help. I will post if I can figure it out.
CementStairs  [author] 25 May, 2022 @ 9:19am 
New Commands added:

- sprint_control_disable_armgrenade - Has checks for whether the player is holding a grenade(so the sprint wouldn't get activated/deactivated when player arms a nade)


Button Customisation Commands
-------------------------------------------------
- sprint_custom_control_disabled
- sprint_custom_control_hand
- sprint_custom_control_button
★bosinn★ 22 May, 2022 @ 5:05am 
nice
CementStairs  [author] 20 May, 2022 @ 10:10pm 
Added "sprint_control_disable_weaponswitch" and "sprint_control_disable_grip" for testing