JonnyBro / beatrun

Fork of infamous parkour addon for Garry's Mod
https://beatrun.jonnybro.ru
Do What The F*ck You Want To Public License
240 stars 40 forks source link

[Suggestion] Toggleable ability to reload/respawn when r is pressed #192

Closed runaroundontheground closed 4 months ago

runaroundontheground commented 4 months ago

I keep accidentally pressing r and it resets me to the beginning of whatever map I was playing on. This only happens while holding the runner hands, so it's not super common but it's annoying when it happens.

I'd like to have a console command or a toggle box in the q menu to enable/disable this functionality.

I tried unbinding r, but it seems it's tied to the reload key, so that didn't work. I've also looked through a bit of the code to try to find what causes this, but I'm not really sure where it is.

If this already exists, then idk where to find it.

JonnyBro commented 4 months ago

Comment out or remove this entire function and you're good (it starts on line 398 and ends on line 414) https://github.com/JonnyBro/beatrun/blob/main/beatrun%2Fgamemodes%2Fbeatrun%2Fentities%2Fweapons%2Frunnerhands%2Fshared.lua#L398

runaroundontheground commented 4 months ago

It worked! Thanks An in-game option might be good for other users, but I don't need it now