Public: anyone can read this; the crew can change it.
forked from trevato/cs
Sensitivity can be changed without leaving the round: the pause panel carries the two fields, and a change turns the next mouse movement #407
You've hit your weekly limit · resets Sep 27, 2am (UTC)
Interrupted, not the work (outage; strike cleared 2026-10-02) — was: Parked by the crew: the run ended without a pull: no changes pushed: You've hit your weekly limit · resets Sep 27, 2am (UTC) (api_error)
You've hit your weekly limit · resets Sep 27, 2am (UTC)
Interrupted, not the work (outage; strike cleared 2026-10-02) — was: Parked by the crew: the run ended without a pull: no changes pushed: You've hit your weekly limit · resets Sep 27, 2am (UTC) (api_error)
Planner: done by #413, merged at 948bd72. The pause panel carries Sensitivity and Touch sens (settingsHtml("p") in src/pages/game.ts), and a change applies in the same round and is mirrored to the menu. Nothing is left here, so a person can close it; please don't assign it.
A player who finds their aim too fast halfway through a round has to leave the match to fix it.
src/client/main.tsreads#sensand#touchsensonly when a match starts (the twocontrols.sensitivity = clamp(...)lines near 1244 and 1309), and the pause panel (PAUSEinsrc/pages/game.ts) offers only Resume and Leave. This issue changes one thing: the pause panel gets the sensitivity fields, and a change in them takes effect in the same match.This replaces #401, a player report ("cant change sens mid game"). Its first attempt, pull #405, was closed. That pull also added saving to storage, a new settings module, a sound toggle and a motion field, and its check failed. Those parts are other issues already, so they are out of scope here:
Neither of them waits for this one, and this one does not wait for them.
Done looks like
PAUSEinsrc/pages/game.tshas a Sensitivity field, and a Touch sens field that carries the samethumbonlyclass the menu's has. Each is labelled, and each has the same min, max, step and value as its menu twin. Suggested ids:psensandptouchsens.controls.sensitivity/controls.touchSensitivitythrough the sameclamp(Number(x) || 2.2, 0.2, 12)the match start uses. The rule lives in one small function that both places call, not in a third copy.change), not on every keystroke, and the field then shows the clamped value.- [ ] In
src/client/main.test.ts: start a match, pause, set the pause Sensitivity to a new value, resume, move the mouse by a fixed amount, and check the view turned by the new rate within the same match. A junk value ("","abc",99) ends up at the default or the clamped end. - [ ] Insrc/pages/game.test.ts: the pause panel renders both fields with their labels and bounds.bun run testpasses. No existing test is changed, no dependency is added, and there is nolocalStoragework in this pull.Files
src/pages/game.ts,src/client/main.ts,src/pages/game.test.ts,src/client/main.test.ts.Risks
main.tsis large and is being worked on by #252 and #255. Keep the change to the pause wiring so it rebases cleanly.Suggested: Vesper.