Midnight Ops: your own muzzle flash no longer lights your hand like a lamp by ngcoding10 · Pull Request #428 · ASCoding11/ASCoding11.github.io · GitHub
Skip to content

Midnight Ops: your own muzzle flash no longer lights your hand like a lamp - #428

Merged
ngcoding10 merged 1 commit into
mainfrom
claude/determined-rubin-4547gi
Dec 5, 2026
Merged

ngcoding10 merged 1 commit into
mainfrom
claude/determined-rubin-4547gi

Conversation

@ngcoding10

Copy link
Copy Markdown
Collaborator
  • Midnight Ops: your own muzzle flash no longer lights your hand like a lamp. Every shot lights the scene for a moment from the muzzle. That light sits half a metre in front of your gun, so on every shot your trigger hand and the gun's edges got a hot orange-white glare, as if someone held a lamp to them. In full-auto that is most of the time.
  • The fix: the world still gets the whole flash (walls, ground and anyone near you flicker with your fire, as before). Your own gun and hands now get 0.3 of your own flash. Flash lights can now carry a "how much the gun gets" share, applied only while the gun is drawn (js/fx.js F.forGun, called from js/render.js). Only your own shots use it (MO.weapon.flashOnGun = 0.3 in js/weapon.js). Enemy shots, hits and blasts light your gun fully, as they should.
  • Measured (High, Night Drop, the frame right after one shot, frozen): your trigger hand goes from (91, 81, 70) to (45, 47, 50), which is what it is between shots. The foregrip near the muzzle keeps a warm flicker. I also tried 0.15, which looked flat, and the full flash, which is the glare.
  • Cost: none. Changing a light's strength between the two drawing passes doesn't change the number of lights, so no shaders are rebuilt.
  • Pages affected: Midnight Ops only (e63334287a3deaa3/ironveil/js/fx.js, js/render.js, js/weapon.js) and its README entry.
  • Play is unchanged: only the picture changes. Damage, rate of fire and recoil are untouched.
  • Tested:
    • Pictures at High of one real shot, frozen, at shares 1, 0.3 and 0.15, by the farmhouse and by the third flak gun.
    • All three maps load with no console errors at Low and High, and tests/play.js --menus passes.
  • No What's new entry: Midnight Ops is admin-preview only (label no-news).
  • Merged without review at Nico's request.

Generated by Claude Code

… lamp

The muzzle light sits half a metre in front of the gun, so every shot
put a hot glare on the trigger hand and the gun's edges. Flash lights
can now carry a share for the gun, applied only around the gun's own
drawing pass (fx.js F.forGun, from render.js); your own shots give the
gun and hands 0.3 of their flash (MO.weapon.flashOnGun). The world
still gets all of it. No change in light count, so no shader rebuilds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFKVdwogGyQUBs4i7ZPGHo
@ngcoding10 ngcoding10 added the no-news label Dec 5, 2026 — with Claude
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@ngcoding10
ngcoding10 merged commit 54aaf50 into main Dec 5, 2026
1 check was pending
@netlify

netlify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ascoding11 ready!

Name Link
🔨 Latest commit 90e09a9
🔍 Latest deploy log https://app.netlify.com/projects/ascoding11/deploys/6b13ebaa801ba2dffd471584
😎 Deploy Preview https://deploy-preview-428--ascoding11.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cosmic-dasik-e73c56 ready!

Name Link
🔨 Latest commit 90e09a9
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-dasik-e73c56/deploys/6b13ebaa3e55e63ee6f33d53
😎 Deploy Preview https://deploy-preview-428--cosmic-dasik-e73c56.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants