summaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 16:03:34 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 16:03:34 +0100
commit4171b26d1ce68d185f3d2611f5753f4288a92a69 (patch)
treeee271ec4b5330598830638f208eac96e8e79e12f /CONTEXT.md
parentFix overlay-vanishing projections; ammo rule via held weapons (diff)
downloadhl2h-4171b26d1ce68d185f3d2611f5753f4288a92a69.tar.gz
hl2h-4171b26d1ce68d185f3d2611f5753f4288a92a69.zip
Clip transition and radius lines at the near plane
Transition-box edges and projectile radius rings were only drawn when both endpoints projected. An edge with one corner behind the camera vanished, so a half-visible box or ring showed nothing. Add a segment projector that clips at the near plane in view space, then clips the 2D result to the screen bounds, and use it for both.
Diffstat (limited to 'CONTEXT.md')
-rw-r--r--CONTEXT.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/CONTEXT.md b/CONTEXT.md
index 2cec0ad..acdab2f 100644
--- a/CONTEXT.md
+++ b/CONTEXT.md
@@ -271,7 +271,8 @@ vocabulary / decisions.
271 trigger whose target equals `g_map_prev` is marked `<- map` (the way back). 271 trigger whose target equals `g_map_prev` is marked `<- map` (the way back).
272- Scanning runs at 4 Hz in the ESP draw; the 8 world corners are projected and 272- Scanning runs at 4 Hz in the ESP draw; the 8 world corners are projected and
273 the 12 edges are drawn as a 3D wireframe, with a 10 px tag above the highest 273 the 12 edges are drawn as a 3D wireframe, with a 10 px tag above the highest
274 visible corner. 274 visible corner. Each edge is clipped at the camera near plane and then to the
275 screen, so a box straddling the camera still draws its visible portions.
275 276
276## Bones / ESP 277## Bones / ESP
277 278
@@ -644,7 +645,9 @@ vocabulary / decisions.
644 `m_DmgRadius` (`FIELD_FLOAT`) as fallback, then 300/200/150/300 for 645 `m_DmgRadius` (`FIELD_FLOAT`) as fallback, then 300/200/150/300 for
645 frag/RPG/AR2/bomb. 646 frag/RPG/AR2/bomb.
646- Draws a small marker and a `FRAG 1.2s`-style label; the optional radius ring 647- Draws a small marker and a `FRAG 1.2s`-style label; the optional radius ring
647 is a 24-segment horizontal circle projected at the projectile height. 648 is a 24-segment horizontal circle projected at the projectile height, with
649 every segment near-plane/screen clipped independently, so it still draws
650 when the grenade itself is off-screen or behind the camera.
648 Toggles: Fuse timer, Blast radius. 651 Toggles: Fuse timer, Blast radius.
649 652
650## Roadmap / TODO 653## Roadmap / TODO