Skip to content

Sprinting tweaks, 2 new sprint settings#1794

Merged
saibotk merged 4 commits intoTTT-2:masterfrom
wgetJane:sprint-tweaks
Mar 13, 2025
Merged

Sprinting tweaks, 2 new sprint settings#1794
saibotk merged 4 commits intoTTT-2:masterfrom
wgetJane:sprint-tweaks

Conversation

@wgetJane
Copy link
Contributor

ttt2_sprint_stamina_cooldown 0.8 : time in seconds before stamina begins regenerating after sprinting
ttt2_sprint_forwards_only 1 : require forward key to be held to be able to sprint, prevents sprinting backwards or side to side, still allows sprinting diagonally with W+A or W+D

not sure if these should be enabled by default, but feels closer to how sprint/stamina in other games work

@TimGoll
Copy link
Member

TimGoll commented Mar 11, 2025

I think sprinting was mostly done by @saibotk , so it is up to him to review. On first glance this looks solid though

@TimGoll
Copy link
Member

TimGoll commented Mar 11, 2025

Speaking of sprint: I think you made a rework of the sprint animation years ago. This is something that I always wanted to bring into TTT2 as well, but never had the time to do

@wgetJane
Copy link
Contributor Author

Speaking of sprint: I think you made a rework of the sprint animation years ago. This is something that I always wanted to bring into TTT2 as well, but never had the time to do

yeah i abandoned it after both ttt2 and crttt rewrote their sprint implementation to fix movement prediction

imo in retrospect those changes in the addon might've been too harsh (i still personally prefer sprint disabled)

@saibotk
Copy link
Member

saibotk commented Mar 11, 2025

Ill review this later or tomorrow!
Thanks for the PR though :)

@saibotk saibotk self-requested a review March 11, 2025 10:10
@TimGoll
Copy link
Member

TimGoll commented Mar 11, 2025

Speaking of sprint: I think you made a rework of the sprint animation years ago. This is something that I always wanted to bring into TTT2 as well, but never had the time to do

yeah i abandoned it after both ttt2 and crttt rewrote their sprint implementation to fix movement prediction

imo in retrospect those changes in the addon might've been too harsh (i still personally prefer sprint disabled)

were they? I liked the short video where I saw the animation. I think TTT2 (and most of GMod) lacks quite a lot of polish. This is why I started adding sounds to stuff for example. To make it feel less static. And these animations fit into this idea.

I personally hate playing without sprinting :D

Copy link
Member

@saibotk saibotk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks!

@saibotk saibotk merged commit d3ff971 into TTT-2:master Mar 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants