Skip to content

Marker: shape 'ring', a flat band on the ground with its own width - #337

Closed
Kharote wants to merge 1 commit into
mainfrom
feat/marker-ring
Closed

Kharote wants to merge 1 commit into
mainfrom
feat/marker-ring

Conversation

@Kharote

@Kharote Kharote commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

What this changes

A server wanted a quiet circle on the ground where a player presses E. A cylinder is at least 0.25 m tall and draws as an open wall, and none of the game's decals is a ring; the workaround sank a cylinder into the ground.

  • New shape: 'ring': a flat band lying on the ground (lifted as a plane is), size across, its band width wide (new option and property, 0.01 to 32 m, default 0.1; a band wider than the ring fills the disc). Its trigger volume is a decal's (2 m up).
  • A ring has no height, so its width travels in markerShow's height field: no wire change.
  • Docs: Marker.place options, Marker.shape, new Marker.width (since 1.2.1); C# SDK regenerated.

How it was tested

  • markers.test.cjs: new test, a ring sends its width, clamps it and defaults to 0.1; 19 pass.
  • New runtime.marker_shapes (markers/tests/marker_shapes_test.cpp): the ring's mesh is flat over the ground, outer edge at half the size, inner edge the band width in, a full disc without an inner outline; passed with clang 19 (-Wall -Wextra -Wpedantic -Werror).

Checklist

  • I read CONTRIBUTING.md and agree that my contribution is licensed as it says.
  • The change is my own work: no code, assets or dumps that are not mine or that come from the game.
  • python Dev/tools/format_source.py --check passes.
  • Tests cover the change, and the checks of this pull request pass.
  • Public behaviour that changed is documented (KCD-Synced/KCDS-DOCS) or needs no docs.

@Kharote Kharote mentioned this pull request Nov 24, 2026
5 tasks done
@Kharote

Kharote commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

Shipped in 1.2.1 (#349, release v1.2.1).

@Kharote Kharote closed this Nov 24, 2026
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