JBMod / jbmod

Official bug tracker and request tracker for JBMod
https://www.jbmod.com/
13 stars 1 forks source link

Viewmodel swaying gone after the HL2DM merge #20

Closed 0x5066 closed 1 year ago

0x5066 commented 1 year ago

Describe the bug Since the rebase on HL2DM, the viewmodel swaying found in 0.5/HL2 is practically gone, only leaving us with a minimal amount of swaying.

To Reproduce Steps to reproduce the behavior:

  1. Open a game (SP or MP doesn't matter)
  2. Move your mouse around
  3. Note the lack of the usual viewmodel swaying you'd find in HL2.

Expected behavior The previous behavior before the MP merge.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

TEAMJBMOD commented 1 year ago

HL2MP (and other multiplayer Valve games) use predicted viewmodels to prevent jitter when you have higher latency.

The calculations used in HL2 aren't predictable so the default won't ever be exactly the same but you can get closer if you increase your sway with cl_wpn_sway_scale.
The next release will bump that default up to be closer to other Valve MP games and will remove the cheat flag from it.

The next release will also let you revert to non-predicted viewmodels by setting cl_wpn_sway_interp 0 but you'll have a bad time if you do that in MP.