Conversation
Contributor
|
Great work on that one! Looks clean! Glad to see HL2DM is still getting some love! |
speedvoltage
added a commit
to speedvoltage/hl2dm-fixes
that referenced
this pull request
Sep 10, 2026
Issue: Legacy player animations produce choppy third-person gestures and prevent local gesture interpolation. Fix: Integrate the community multiplayer animation migration and its compile, gesture-layer, weapon-switch, model-change and predicted SLAM transition corrections. Preserve the existing gameplay fixes on this separate test branch. Source-PR: ValveSoftware#2071 Upstream-head: 47cece6 Co-authored-by: Brandon Little <blittle@inco.cc>
Lambdagon
added a commit
to Day-of-Conquest/DoDs-SDK2013
that referenced
this pull request
Sep 14, 2026
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.
This converts the old
CPlayerAnimStatein HL2:DM to the newerCMultiPlayerAnimStateused in later games like TF2.Currently, player animations are calculated on the server, which is then sent to clients for interpolation.
CMultiPlayerAnimStatemakes it possible to also calculate player animations on the client and have it match the server. This resolves the issue where animations appear choppy and gestures do not play properly in thirdperson, since animations are not interpolated for the local player.This is based on Tony Sergi's unfinished implementation from the 2007 SDK, adapted for the current SDK. It appears at some point HL2:DM was going to transition to 9-way blending for player animations. If HL2:DM ever receives newer animations, this implementation would make it a lot easier.
I didn't implement the automatic head looking behavior because I don't think it's necessary. The aim pose parameters are sufficient, and they more accurately represent where the player is actually looking.
Related issues: #35, #119, #447
Before:
before.mp4
After:
after.mp4