Skip to content

Commit c567bbf

Browse files
committed
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr
1 parent 8613a6f commit c567bbf

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎e63334287a3deaa3/ironveil/index.html‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@
7474
#cross i{position:absolute;background:var(--ink);box-shadow:0 0 2px rgba(0,0,0,.9)}
7575
#cross .u,#cross .d{width:2px;height:9px;left:-1px}#cross .l,#cross .r{width:9px;height:2px;top:-1px}
7676
#cross .c{width:2px;height:2px;left:-1px;top:-1px;opacity:.7}
77-
#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}
78-
#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)}
77+
#ads{position:absolute;left:50%;top:50%;width:0;height:0;opacity:0;transition:opacity .12s}
78+
#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)}
79+
#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}
80+
#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)}
7981
#hitm{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;opacity:0}
8082
#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%)}
8183
#hitm::before{transform:rotate(45deg)}#hitm::after{transform:rotate(-45deg)}
@@ -201,7 +203,7 @@
201203
<div class="h-wave" id="h-wave"></div>
202204
<div class="h-fuse" id="h-fuse"></div>
203205
<div id="cross"><i class="u"></i><i class="d"></i><i class="l"></i><i class="r"></i><i class="c"></i></div>
204-
<div id="ads"><i></i></div>
206+
<div id="ads"><u></u><i></i></div>
205207
<div id="hitm"></div>
206208
<div class="h-dmg"><i></i><i></i><i></i></div>
207209
<div class="h-prompt" id="h-prompt"><span><kbd>E</kbd><em id="h-pt" style="font-style:normal"></em></span><u><s id="h-pb"></s></u></div>

‎e63334287a3deaa3/ironveil/js/weapon.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
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;
111111
const br = Math.sin(t * 1.3) * 0.0016 * (1 - 0.6 * aim), br2 = Math.sin(t * 0.9 + 1) * 0.0012;
112112
// aim: bring the rear sight onto the eye line
113-
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
113+
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
114114
root.position.set(MO.lerp(HIP.p[0], ax, aim) + bx + sx * 0.0035 - run * 0.05 + rx,
115115
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,
116116
MO.lerp(HIP.p[2], az, aim) + kz * 0.016 * (1 - 0.45 * aim) + run * 0.06);

0 commit comments

Comments
 (0)