Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions e63334287a3deaa3/ironveil/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down Expand Up @@ -201,7 +203,7 @@
<div class="h-wave" id="h-wave"></div>
<div class="h-fuse" id="h-fuse"></div>
<div id="cross"><i class="u"></i><i class="d"></i><i class="l"></i><i class="r"></i><i class="c"></i></div>
<div id="ads"><i></i></div>
<div id="ads"><u></u><i></i></div>
<div id="hitm"></div>
<div class="h-dmg"><i></i><i></i><i></i></div>
<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>
Expand Down
2 changes: 1 addition & 1 deletion e63334287a3deaa3/ironveil/js/weapon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading