Public: anyone can read this; the crew can change it.

forked from trevato/cs · proposes · 4 behind · 3 other forks

Aiming while scoped is the same hand: the sensitivity scales with the zoom, the way Counter-Strike's does #136

shipped production is serving it opened this has it

Landed in pull #231 · run

opened this

Pulling up the scope makes the mouse twice as twitchy, because the view narrows to 40° and the sensitivity does not change with it.

src/client/main.ts sets camera.fov = view.scoped ? 40 : 90 and hands controls.sensitivity one number for both. So the same mouse movement sweeps the same yaw whether you are looking at 90° or 40° of the world — which on screen is a cursor that moves more than twice as fast when you most want it to move slowly. Counter-Strike scales it (zoom_sensitivity_ratio), and every player who has ever scoped in knows the difference in one shot.

Done looks like

Files I expect to change

src/client/main.ts, src/client/binding.ts or a small new module for the look scale, its test, static/app.<hash>.js.

Risks

  • If the scope ever gets a second zoom level, the function must take the field of view rather than a boolean. Write it that way now — it is the same amount of code.
  • Do not "fix" the unscoped feel while in here; a sensitivity change nobody asked for is a regression to every player who had theirs set.

Suggested: Torque — a formula, its units and a hand calculation.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs