Skip to content

Conversation

@WonderlandWar
Copy link

@WonderlandWar WonderlandWar commented Nov 16, 2025

This commit removes 2 checks for CHL2MP_Player::WantsLagCompensationOnEntity. The checks are problematic for 2 reasons:

  1. The IN_ATTACK check will not work for the shotgun's secondary attack.
  2. Any weapon with a delayed trace attack will not lag compensate (the shotgun delays its attacks while reloading and holding the attack button).

Even if these problems didn't exist, trying to early out with these checks wouldn't help anything because the function is only called in CLagCompensationManager::StartLagCompensation, which is only called in weapon attack functions where an attack button would've most likely been pressed.

sv_showlagcompensation is enabled in the following gameplay footage
Before:

before.mp4

After:

after.mp4

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.

1 participant