Walking Indicator - #1831
Open
AdamTadeusz wants to merge 9 commits into
Open
Conversation
AdamTadeusz
marked this pull request as draft
April 4, 2026 09:31
AdamTadeusz
marked this pull request as ready for review
July 30, 2026 17:19
Masterkatze
reviewed
Sep 5, 2026
| "color" "255 255 255 200" | ||
| "texture" "vgui/hud/player/walkingIndicator" | ||
|
|
||
| "barwidth" "0" |
Contributor
There was a problem hiding this comment.
It's weird that the bar is drawn over the texture and the maximum value of barwidth is equal to wide. Imo it would be better to decouple the bar from indicator - then setting it's position and dimension would make more sense. Also add a parameter to set how the bar is getting filled (vertically or horizontally).
|
|
||
| // Changing movement direction, looking around, wall-running accelerate the player. Raise the threshold. | ||
| constexpr float SILENT_THRESHOLD_GRACE = 0.7f; | ||
| #define MAX_SILENT_SPEED SILENT_THRESHOLD_GRACE * (GetFlags() & FL_DUCKING ? GetCrouchSpeed() : GetNormSpeed()) |
| if (!pTargetPlayer) | ||
| return; | ||
|
|
||
| if (!pTargetPlayer->IsAlive() || !pTargetPlayer->IsWalking()) |
Contributor
There was a problem hiding this comment.
Draw the indicator when you aim too?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
NeoAssets PR
Adds a walking indicator with an optional bar that indicates how close the player is to breaching the threshold above which the player will make noise regardless (mostly for debugging but some players may choose to use it in game i guess).
Also adds a command to set bot skin, since I forgot to remove it xP
Toolchain