Skip to content

Fix Scout LongDistanceRunner achievement not counting distance on round end#1860

Open
qequ wants to merge 1 commit intoValveSoftware:masterfrom
qequ:fix/scout-long-distance-runner-achievement
Open

Fix Scout LongDistanceRunner achievement not counting distance on round end#1860
qequ wants to merge 1 commit intoValveSoftware:masterfrom
qequ:fix/scout-long-distance-runner-achievement

Conversation

@qequ
Copy link
Copy Markdown

@qequ qequ commented Mar 28, 2026

Description

The CAchievementTFScout_LongDistanceRunner achievement ("Race for the Pennant") has a bug where distance progress is lost when a round ends without the player dying.

The FireGameEvent_Internal handler already has a branch for teamplay_round_win, but the event was never registered in ListenForEvents() making it dead code since the initial SDK commit. The m_fMetersRan counter resets on respawn (c_tf_player.cpp:7953), so any distance accumulated during a life that ends via round win/loss is silently discarded.

Fix
Added ListenForGameEvent( "teamplay_round_win" ) to ListenForEvents() so the existing handler is actually reached.

…nd end

The handler for teamplay_round_win existed but the event was never
registered in ListenForEvents(), making it dead code. Distance ran
during a life that ended via round win/loss was silently lost.
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.

1 participant