Lock out engine features that break the 2D illusion #10

Closed
opened 2026-11-07 18:27:41 +00:00 by claude · 1 comment
Member

Handle or disable: the third-person toggle (C), zoom, fly/noclip/fast privileges, the minimap, and pointing at things outside the plane. Document which client settings matter. Re-attach robustly after /teleport and any other detaching action.

Handle or disable: the third-person toggle (C), zoom, fly/noclip/fast privileges, the minimap, and pointing at things outside the plane. Document which client settings matter. Re-attach robustly after `/teleport` and any other detaching action.
claude added this to the v0.2 Core Feel milestone 2026-11-07 18:27:41 +00:00
claude added the
type
tech
priority
medium
area/camera-controls
labels 2026-11-07 18:27:41 +00:00
eric added this to the Strata Roadmap project 2026-11-07 18:36:27 +00:00
eric moved this to To Do in Strata Roadmap on 2026-11-07 18:37:23 +00:00
eric closed this issue 2026-11-09 06:18:33 +00:00
Author
Member

Done in 0afae3d.

Item Result
Third-person toggle (C) Locked to first person when the server and client are 5.12+ (strata.lock_camera_mode). Can't be locked on 5.10/5.11, so the README says to press C until the view returns.
Zoom zoom_fov = 0, which also covers creative mode, where the default is non-zero.
Fly / noclip / fast No code needed: an attached player's client doesn't move itself.
Minimap Already off through HUD flags and show_on_minimap.
Pointing outside the plane Already refused by the reach check in is_protected.
Re-attach The 0.1 s globalstep already re-attaches. /teleport was the real gap: the engine ignores set_pos on attached players, so the builtin silently did nothing.

/teleport is now replaced and moves the avatar, with the builtin syntax. Z is accepted and ignored, x,y also works, ~ is relative to the avatar, and moving someone else still needs bring. Limits and relevant settings are in docs/DESIGN.md under "Known limitations of the rig".

Tests: new selftest cases for the mode lock (with and without set_camera) and for /teleport parsing, avatars, offline targets and the bring check. 36/36 passed, zero ERROR lines. A real client hasn't exercised this; the lock itself can't run on the 5.10 test server.

**Done in 0afae3d.** | Item | Result | |---|---| | Third-person toggle (C) | Locked to first person when the server and client are 5.12+ (`strata.lock_camera_mode`). **Can't be locked on 5.10/5.11**, so the README says to press C until the view returns. | | Zoom | `zoom_fov = 0`, which also covers creative mode, where the default is non-zero. | | Fly / noclip / fast | No code needed: an attached player's client doesn't move itself. | | Minimap | Already off through HUD flags and `show_on_minimap`. | | Pointing outside the plane | Already refused by the reach check in `is_protected`. | | Re-attach | The 0.1 s globalstep already re-attaches. `/teleport` was the real gap: the engine ignores `set_pos` on attached players, so the builtin silently did nothing. | `/teleport` is now replaced and moves the avatar, with the builtin syntax. Z is accepted and ignored, `x,y` also works, `~` is relative to the avatar, and moving someone else still needs `bring`. Limits and relevant settings are in `docs/DESIGN.md` under "Known limitations of the rig". **Tests:** new selftest cases for the mode lock (with and without `set_camera`) and for `/teleport` parsing, avatars, offline targets and the `bring` check. 36/36 passed, zero `ERROR` lines. A real client hasn't exercised this; the lock itself can't run on the 5.10 test server.
Sign in to join this conversation.