game_timer entity and HL2 generic timer HUD element#442
Merged
Blixibon merged 1 commit intoJul 27, 2025
Conversation
|
This would be useful, i tried implementing this for my own mod but end up failing |
azzyr
requested changes
Jul 24, 2025
Collaborator
|
Additional bug found: The timer HUD does not ever close if using saverestore with an active timer |
96393ba to
983f2b7
Compare
azzyr
approved these changes
Jul 27, 2025
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.
A new entity which shows a timer on the player's HUD. It can be displayed with a caption and use various parameters to control the timer’s behavior.
In the following example, 3 timers with different parameters are shown, with each reducing the player's health by 5 as a generic output:
https://drive.google.com/file/d/13uw0VRfQbKzid7939AZsgZ2ZzniEkvNn/view?usp=sharing
This is designed to be a generic version of
team_round_timerfrom TF2, an entity used to control the round timer.game_timeruses the same I/O/KV syntax and general functionality. This includes the ability to pause, count up or down, etc.Features specific to
game_timerinclude the ability to specify a warning time, control the progress bar, change the timer’s position on the screen, etc.This feature will also be available in the TF2 branch, with the unique ability to display multiple timers in that game, although that is not currently present in this PR.
PR Checklist
developbranch OR targets another branch with a specific goal in mind