Fix MvM victory screen player animations #1286
Closed
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.
Hi. This fixes several visual bugs relating to player animations on the Mann Up victory screen.
Before/After
Demoman with The Bootlegger equipped
Sniper with The Huntsman equipped
Details
This PR essentially just moves the class select animation logic from
CTFClassMenu::LoadItems()
to a new functionCTFPlayerModelPanel::PlayClassSelectAnimation()
, which can be used by both the class select menu and the MvM loot screen menu. This allows both menus to reuse the same animation logic, eliminating duplicated and potentially inconsistent code.Note: As of the current master 39f6dde, this is affected by the class select animation playback bug. This could be resolved by merging my previous PR before merging this one:
Testing
To force the loot screen to show on a listen server, change this check to always be true:
source-sdk-2013/src/game/client/tf/tf_hud_mann_vs_machine_victory.cpp
Line 1924 in 39f6dde
and add this ConCommand: