3 Years Ago
Manual scoping for lag compensation (#130) * Manual control of starting and stopping lag compensation * Change to start lag compensation automatically only before AttackPrimary and AttackSecondary on BaseWeapon (this is when we're most likely to want it if you're using base weapon) * Have StartLagCompensation return IDisposable so it can optionally be used in a using block and finish automatically * Entity.LagCompensation static IDisposable. Rename LagCompensation (bool) to EnableLagCompensation and update BaseWeapon + base Player