Fix for Jittery and Jerkiness on Gestures During Scenes #406
Labels
No labels
branch-old
branch-rewrite
bug
cannot-reproduce
duplicate
enhancement
fixed-old
fixed-rewrite
game
invalid
might-return-to
need-feedback
need-search
question
tools
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Archive/LeakNet#406
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the HL2 leak and Leaknet, character models that are playing scene files with gestures in them will have gestures that glitch out after they finish playing and look bad. Here is how to fix it in
cl_dll/animationlayer.h:At line 31, replace
output.flCycle = LoopingLerp( flPercent, from.flCycle, to.flCycle );with:
At line 47, replace
output.flCycle = Lerp( flPercent, from.flCycle, to.flCycle );with:
At line 76, at the start of the
LoopingLerp_Hermite( float flPercent, AnimationLayer_t prev, AnimationLayer_t from, AnimationLayer_t to )function, before the line that says
AnimationLayer_t output;add in:
return LoopingLerp(flPercent, from, to);After
output.nSequence = to.nSequence;Change
output.flCycle = LoopingLerp_Hermite( flPercent, prev.flCycle, from.flCycle, to.flCycle );to:
At the function
inline AnimationLayer_t Lerp_Hermite<AnimationLayer_t>( float flPercent, const AnimationLayer_t& prev, const AnimationLayer_t& from, const AnimationLayer_t& to )Before the line that says
AnimationLayer_t output;add
return Lerp(flPercent, from, to);And then after the line
output.nSequence = to.nSequence;Change
output.flCycle = Lerp_Hermite( flPercent, prev.flCycle, from.flCycle, to.flCycle );to:
An example of the fixed animationlayer.h file has been attached: animationlayer.h
changed title from Fix{-Ing-} Jittery and Jerkiness on Gestures During Scenes to Fix{+ for+} Jittery and Jerkiness on Gestures During Scenes
changed the description
You can actually make a merge request with those changes, if you will
changed the description
mentioned in commit
f416a9b1ae