JMod - Full NVG Scope Support & Red Dot Fix
📢 NVG Mod Update - Full Scope Compatibility + Red Dot & Rangefinder Fix! 🔥 🚀 Big update for all NVG users! We've just rolled out a new patch to improve your night vision experience and fix some key issues. 🌙 What This Mod Does In the base game, NVGs only enable night vision on low-magnification scopes, making higher-power optics useless at night. This mod removes that restriction, allowing ALL scopes—regardless of… (more)
📢 NVG Mod Update - Full Scope Compatibility + Red Dot & Rangefinder Fix! 🔥 🚀 Big update for all NVG users! We've just rolled out a new patch to improve your night vision experience and fix some key issues. 🌙 What This Mod Does In the base game, NVGs only enable night vision on low-magnification scopes, making higher-power optics useless at night. This mod removes that restriction, allowing ALL scopes—regardless of magnification—to fully support night vision rendering when NVGs are active. Now, whether you're using a red dot, ACOG, or long-range optic, you’ll always be able to use night vision! 🔧 Fixes & Features: ✅ NVG Compatibility for ALL Scopes! - Now you can use night vision on every optic in the game, including magnified scopes that were previously blocked by vanilla restrictions. ✅ Kobra & Reflex Sights Now Work with NVGs! No more invisible red dots when using NVGs. Both Kobra and Reflex optics are now fully compatible and will remain visible in low-light conditions. ✅ Rangefinder HUD Fix Fixed an issue where the rangefinder’s distance display would remain on screen after exiting the optic. The HUD will now correctly disappear when you stop using the rangefinder. ✅ Performance Tweaks & Bug Fixes - Minor optimizations for NV rendering. - Adjustments to ensure smooth transitions between NV and normal vision modes. ⚠️ Apology for the Bikey Issue We sincerely apologize to server owners for the bikey issue in the latest published version. I unfortunately lost my old bikey, which is why a new one is now being used. I appreciate your patience while this was resolved. The updated bikey is now included in the latest release. If you encounter any further issues, please let us know so we can assist as quickly as possible. ⚡ Update your mod now and experience full NVG compatibility! As always, thanks for your support and keep the feedback coming! 🎯 💬 Got issues or suggestions? Drop them in the Discord! 🚀👀 https://discord.gg/9jhEB6BGqr🔗 Join the Discord
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
3 chain breaks, all on specific classes the mod replaces wholesale — matters only if another mod patches the same classes.
less than 0.001% of each server frame at 100 players (0.000 ms/s). Counts hook dispatch and timers only, not what the hooks do inside. Methodology.
Structural load of the 328 scripted mods analyzed, lightest on the left. This mod's bar is lit; 36 others share it. Ranked list.
Event hooks carry 99.8% of this mod's structural load. 0.000 ms/s in all.
1 hook · 0.0002 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 1 hook | 0.0002 ms/s | 99.8% | ActionViewBinoculars.ActionCondition |
Counts how often each hook is dispatched and how many timers stay alive, not what the code inside does. Some rates are order-of-magnitude estimates; the methodology lists which.
Chain breaks, by consequence
3 overrides that skip super(), ranked by how much they can affect. On any server a break replaces vanilla's behaviour on that method and silences every earlier-loaded mod hooking it.
EnterOptics · ExitOptics
Only this class is affected. Matters only if another mod in your stack patches the same class.
1 class
ActionViewBinoculars2 locations
JModv2.pbo::WorldScripts\MyScript.c:82JModv2.pbo::WorldScripts\MyScript.c:111SetCameraPP
Only this class is affected. Matters only if another mod in your stack patches the same class.
1 class
DayZPlayerCameraOptics1 location
JModv2.pbo::WorldScripts\MyScript.c:4Where this mod runs often
Hooks on per-frame and high-rate surfaces, with what their bodies call. Body work, not the hook itself, is what costs frame time.
Other findings
Checks answered without super() · 3 · warning
- ActionViewBinoculars.ActionCondition returns its own answer without consulting super.ActionCondition() — vanilla's conditions on this check, and those of every earlier-loaded mod, no longer apply. Intended when a mod owns the rule outright; otherwise it is how another mod's restriction quietly stops working.
JModv2.pbo::WorldScripts\MyScript.c:72 - KobraOptic.IsNVOptic returns its own answer without consulting super.IsNVOptic() — vanilla's conditions on this check, and those of every earlier-loaded mod, no longer apply. Intended when a mod owns the rule outright; otherwise it is how another mod's restriction quietly stops working.
JModv2.pbo::WorldScripts\MyScript.c:167 - ReflexOptic.IsNVOptic returns its own answer without consulting super.IsNVOptic() — vanilla's conditions on this check, and those of every earlier-loaded mod, no longer apply. Intended when a mod owns the rule outright; otherwise it is how another mod's restriction quietly stops working.
JModv2.pbo::WorldScripts\MyScript.c:148
- ActionViewBinoculars.ActionCondition returns its own answer without consulting super.ActionCondition() — vanilla's conditions on this check, and those of every earlier-loaded mod, no longer apply. Intended when a mod owns the rule outright; otherwise it is how another mod's restriction quietly stops working.
Which vanilla methods the mod hooks, which of them drop the chain, how often each hook fires, and which risky calls sit inside hot hooks.
How long hook bodies take, network cost, or engine-side load. Measured across live fleets, most server lag comes from the engine and world state, not mod script chains — a light footprint does not clear a mod of lag, and a heavy one does not convict it. Methodology.
Everything else
All 10 overrides
Surface is the dispatch tier the rubric can price (— = unpriced); server is whether the override exists on a dedicated server; super() shows whether the vanilla chain is preserved on a server.
| method | surface | server | super() | where |
|---|---|---|---|---|
ActionViewBinoculars.ActionCondition |
T2 | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:72 |
ActionViewBinoculars.EnterOptics |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:82 |
ActionViewBinoculars.ExitOptics |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:111 |
DayZPlayerCameraOptics.SetCameraPP |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:4 |
KobraOptic.InitOpticMode |
— | yes | ✓ | JModv2.pbo::WorldScripts\MyScript.c:161 |
KobraOptic.IsNVOptic |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:167 |
KobraOptic.GetCurrentNVType |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:172 |
ReflexOptic.InitOpticMode |
— | yes | ✓ | JModv2.pbo::WorldScripts\MyScript.c:142 |
ReflexOptic.IsNVOptic |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:148 |
ReflexOptic.GetCurrentNVType |
— | yes | ✗ none | JModv2.pbo::WorldScripts\MyScript.c:153 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
ActionViewBinoculars.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
Includes 0.000 ms/s from placeholder-rated surfaces.
Load-order constraints (CfgPatches)
What each PBO declares: its addon identity and the addons it requires to be loaded first (requiredAddons). A partial load-order signal from the mod's own metadata.
JModv2.pbo
JModv2— no requiredAddons
census 1.1 · findings 1.1 · hash 59c21a967bfaf2d6