TeamSpen210 / HammerAddons

Useful tweaks and content for Source Engine Games
123 stars 36 forks source link

Fix animation stutter in any Source game by adding an "idle" sequence, like the original vactube animations #252

Closed karl-police closed 12 months ago

karl-police commented 1 year ago

This is a fix which does not directly affect AnimateEveryFrame or m_bClientSideAnimation

This is completly different, and I still don't really know if in Portal 2 the cubes actually do not lag.

The animations lag because they do not have an idle sequence,.

Not sure why.

Doesn't matter if it's ACT_IDLE or if it's named idle. There just has to be more than one sequence for it not to stutter.

The original prop_vac_anim animations also have an "idle" sequence.

 

Portal 2 gotta be affected by this as well. My case is that I only had one sequence, I just had a straight line with a straight junction.

Apparently your script can create more sequences. And if there's more than one, nobody would encounter this issue.

karl-police commented 12 months ago

changed it to "ref.smd" but haven't tested that change yet, only my first change but should work as well

idk from where the "ref.smd" file comes from, so I had no clue what it contains

TeamSpen210 commented 12 months ago

ref.smd is from the lines before, it just builds a cube mesh.