Skip to content

[TF2] Add metal change number batching #1404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

horiuchii
Copy link

Description

This PR adds batching to the numbers that appear over the engineer's metal count whenever a change happens.
This improves visibility in cases where the player expends or gains metal in quick succession such as using the Widowmaker, using the Short Circuit's primary fire or when picking up building gibs.

The functionality of the batching are controlled by two new CVars:
hud_metalaccounttext_batching - Defaults to 1
hud_metalaccounttext_batching_window - Defaults to 0.5

tf2-metal-batch.mp4

@Borloxos
Copy link

Borloxos commented Jul 9, 2025

The CVars have a typo: metalaccount instead of metalcount.

@Bradasparky
Copy link

The CVars have a typo: metalaccount instead of metalcount.

The name isn't a typo. The hud file is called tf_hud_account, hence metalaccount.

Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Jul 10, 2025
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