Half-Life: Alyx

Half-Life: Alyx

Not enough ratings
Internal Speedbutton Testing
   
Award
Favorite
Favorited
Unfavorite
Addon Type: Maps
Tags: Alyx Addon
File Size
Posted
Updated
148.991 KB
16 May, 2022 @ 8:56am
1 Oct, 2023 @ 1:17am
18 Change Notes ( view )

Subscribe to download
Internal Speedbutton Testing

Description
Internal Speedbutton Testing





Sprint Toggle Button

Adds a long-time requested freature - the ability to run quicker with just press of a button!


Was Half-Life: Alyx always too slow for you?
Are you a person who enjoys action and a bit of adrenaline?
Do you want to quickly empty your stomach?

Then this mod is just for you!



IMPORTANT NOTICE!

To toggle the sprint, press the "Grip"(eject pistol clip) or "Weapon Switch" button on your non-dominant hand

Make sure you have subscribed to the Scalable Init Support mod!



Features
  • Press Grip(eject pistol clip)/Weapon Switch button on your non-dominant hand to toggle the sprint

  • A hud that is attached to player's dominant hand(close to your weapons), showing the current stamina value; the hud disappears if the sprint is not active after reaching 100% stamina

  • The stamina is drained only if the player moves; when not moving or when having sprint disabled, the stamina regenerates by itself

  • As the player reaches low stamina, a heartbeat sound and a slight screen blur notifies them, so they won't have to always look at the hud

  • Left-Handed Support

  • Scalable Init Support - Meaning the mod works on all maps!



Customisation

The Sprint can be customised with these commands:

Command
Function
Default Value
sprint_drain_speed
How quickly does the stamina deplete(drain happens 5 times more often than regen, so multiply the value by 5)
0.02
sprint_regen_speed
How quickly does the stamina regenerate
0.05
sprint_max_stamina
How much stamina can you have at once
5
sprint_speed_multiplier
How quickly do you move with sprint active
1.75
sprint_hud_scale
The scale of the stamina hud(0 to disable hud)
1 (0 to disable hud)
sprint_low_stamina_warning_disabled
If enabled, disables the heartbeat sound and screen blur warning, when the stamina is low
0
sprint_control_disable_weaponswitch
If enabled, weaponswitch button won't enable the sprint anymore
0
sprint_control_disable_grip
If enabled, grip button won't enable the sprint anymore
0
sprint_control_disable_armgrenade
If enabled, armgrenade button won't enable the sprint anymore
1
sprint_custom_control_disabled
If enabled, allows for the customisable button to be used
1
sprint_custom_control_hand
On which hand is the activation button located(right = 0; left = 1)
1
sprint_custom_control_button
Which custom button should be pressed to activate the sprint(refer to the Discussion page for details)
4
sprint_activation_sound_disabled
Disables the sound emitted when the player activates/deactives the Sprint
0

You can create custom configs by adding "sprint_config.cfg" to your "\Half-Life Alyx\game\hlvr\cfg\" directory.
Put the commands above into the cfg file to have effect in game.



What can I do if I liked this mod?
If you liked the mod please consider rating/adding it to favourites, It helps me as a creator to gather feedback and motivation for my future content - Thank you!



Huge thanks to Skummeh and SIBBO for playtesting and special thanks to FrostEpex for help with VScript.

I appreciate any form of feedback, be it a rating or comment. I always want to improve my mods, so if you encounter any issues, let me know so I can fix them.
Popular Discussions View All (2)
0
25 May, 2022 @ 8:47am
PINNED: Custom Button Binds
CementStairs
0
12 Feb, 2023 @ 5:35am
Internal Speedbutton Testing not working, the main version is wokring
T-TaaN
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?