Skip to content

Fix class select animation playback #1285

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 2 commits into
base: master
Choose a base branch
from

Conversation

brokenparts
Copy link
Contributor

@brokenparts brokenparts commented May 16, 2025

Hi. This fixes a bug where class select animations will freeze if you go back and forth in the menu.

Related issues:

Before

fix-class-select-anims-before.mp4

After

fix-class-select-anims-after.mp4

Details

When reusing the shared CTFPlayerModelPanel in the class select screen, SetupFlexWeights would incorrectly calculate a large negative m_flSceneTime. This would result in class select animations freezing when going back and forth in the class select menu.

-0.1s start times are allowed to give the system time to lerp to the looping animation. This constant is already used in neighboring code.

The 2nd commit just replaces this 0.1f magic number with a macro constant. This is optional, I just thought it would be a nice improvement.

When reusing the shared CTFPlayerModelPanel in the class select screen,
SetupFlexWeights would incorrectly calculate a large negative
m_flSceneTime. This would result in class select animations freezing
when going back and forth in the class select menu.

-0.1s start times are allowed to give the system time to lerp to the
looping animation. This constant is already used in neighboring code.
@condor00fr
Copy link

Finally someone has adresse this! Is there any ways the sound effects could be re-introduced as well?

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.

2 participants