From c567bbf2adac8843b48c753d2670dab33feef663 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 16:27:54 +0000 Subject: [PATCH] Midnight Ops: aimed view stays open; dot-in-a-notch reticle - When aimed, the Thompson drops low and forward so it no longer covers the middle of the view; shots still go to the centre. - The aiming reticle is a single dot inside a U-shaped notch, like an iron sight's rear notch around the front post. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr --- e63334287a3deaa3/ironveil/index.html | 8 +++++--- e63334287a3deaa3/ironveil/js/weapon.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/e63334287a3deaa3/ironveil/index.html b/e63334287a3deaa3/ironveil/index.html index b1a71c1b..912a26fd 100644 --- a/e63334287a3deaa3/ironveil/index.html +++ b/e63334287a3deaa3/ironveil/index.html @@ -74,8 +74,10 @@ #cross i{position:absolute;background:var(--ink);box-shadow:0 0 2px rgba(0,0,0,.9)} #cross .u,#cross .d{width:2px;height:9px;left:-1px}#cross .l,#cross .r{width:9px;height:2px;top:-1px} #cross .c{width:2px;height:2px;left:-1px;top:-1px;opacity:.7} -#ads{position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border:1.5px solid rgba(236,228,206,.75);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.55),inset 0 0 0 1px rgba(0,0,0,.4);opacity:0;transition:opacity .12s} -#ads i{position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#ffd36b;box-shadow:0 0 0 1px rgba(0,0,0,.7),0 0 6px rgba(255,190,80,.8)} +#ads{position:absolute;left:50%;top:50%;width:0;height:0;opacity:0;transition:opacity .12s} +#ads u{position:absolute;left:-14px;top:-7px;width:28px;height:19px;border:2px solid rgba(236,228,206,.85);border-top:0;border-radius:0 0 11px 11px;box-shadow:0 2px 0 -1px rgba(0,0,0,.5),inset 0 -1px 0 rgba(0,0,0,.35)} +#ads u::before,#ads u::after{content:'';position:absolute;top:-1px;width:6px;height:2px;background:rgba(236,228,206,.85)}#ads u::before{left:-7px}#ads u::after{right:-7px} +#ads i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:#ffd36b;box-shadow:0 0 0 1.5px rgba(0,0,0,.75),0 0 7px rgba(255,190,80,.85)} #hitm{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;opacity:0} #hitm::before,#hitm::after{content:'';position:absolute;left:12px;top:0;width:2px;height:26px;background:linear-gradient(var(--ink) 0 32%,transparent 32% 68%,var(--ink) 68%)} #hitm::before{transform:rotate(45deg)}#hitm::after{transform:rotate(-45deg)} @@ -201,7 +203,7 @@
-
+
E
diff --git a/e63334287a3deaa3/ironveil/js/weapon.js b/e63334287a3deaa3/ironveil/js/weapon.js index 9a2c9354..06f62cf9 100644 --- a/e63334287a3deaa3/ironveil/js/weapon.js +++ b/e63334287a3deaa3/ironveil/js/weapon.js @@ -110,7 +110,7 @@ const aim = P.aimK, run = P.sprintK * (1 - aim), bobA = P.bobAmp * (1 - 0.85 * aim), bx = Math.cos(P.bob) * 0.006 * bobA * (1 + run), by = Math.abs(Math.sin(P.bob)) * -0.008 * bobA * (1 + run * 1.5), t = MO.time; const br = Math.sin(t * 1.3) * 0.0016 * (1 - 0.6 * aim), br2 = Math.sin(t * 0.9 + 1) * 0.0012; // aim: bring the rear sight onto the eye line - const ax = -M.sight.x, ay = -M.sight.y, az = -0.24 - M.sight.z; // eye well behind the rear sight, so the sights stay small and the view open + const ax = -M.sight.x, ay = -M.sight.y - 0.078, az = -0.3 - M.sight.z; // aimed: the gun drops low and forward so the view stays open; the reticle marks the aim // eye well behind the rear sight, so the sights stay small and the view open root.position.set(MO.lerp(HIP.p[0], ax, aim) + bx + sx * 0.0035 - run * 0.05 + rx, MO.lerp(HIP.p[1], ay, aim) + by + br + dy * 0.02 - drop - run * 0.035 - P.crouchK * 0.008 * (1 - aim) + sy * -0.003, MO.lerp(HIP.p[2], az, aim) + kz * 0.016 * (1 - 0.45 * aim) + run * 0.06);