Skip to content

Walking Indicator - #1831

Open
AdamTadeusz wants to merge 9 commits into
NeotokyoRebuild:masterfrom
AdamTadeusz:340_walkingIndicator
Open

Walking Indicator#1831
AdamTadeusz wants to merge 9 commits into
NeotokyoRebuild:masterfrom
AdamTadeusz:340_walkingIndicator

Conversation

@AdamTadeusz

@AdamTadeusz AdamTadeusz commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

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

  • Windows MSVC VS2022

@AdamTadeusz AdamTadeusz added the Changes in neoAssets This PR depends on changes in the neoAssets repository. The relevant PR should be in the description label Mar 13, 2026
@AdamTadeusz
AdamTadeusz marked this pull request as draft April 4, 2026 09:31
@AdamTadeusz AdamTadeusz added the New Changes for Reviewers New changes has been made. This label is mostly to notify reviewers. label Jul 30, 2026
@AdamTadeusz
AdamTadeusz requested a review from a team July 30, 2026 17:19
@AdamTadeusz
AdamTadeusz marked this pull request as ready for review July 30, 2026 17:19
@DESTROYGIRL DESTROYGIRL added the UI/HUD Relates to the HUD, NeoUI, menus, etc label Aug 28, 2026
"color" "255 255 255 200"
"texture" "vgui/hud/player/walkingIndicator"

"barwidth" "0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

inline function?

if (!pTargetPlayer)
return;

if (!pTargetPlayer->IsAlive() || !pTargetPlayer->IsWalking())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Draw the indicator when you aim too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes in neoAssets This PR depends on changes in the neoAssets repository. The relevant PR should be in the description New Changes for Reviewers New changes has been made. This label is mostly to notify reviewers. UI/HUD Relates to the HUD, NeoUI, menus, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants