Advanced Weapon Scopes
This mod is designed as almost complete replacement for vanilla scopes for providing more smooth game experience since only my scopes has unique abilities. My recomendation is getting rid of any vanilla scopes except PU, Kobra, PSO and 1PN51. Mod content: EOTech XPS3-4 - familiar holographic sight with ability to attach a G33 magnifier for magnification doubling; Leupold 3.5-10x40 Mk 4 - Riflescope for mid and long… (more)
This mod is designed as almost complete replacement for vanilla scopes for providing more smooth game experience since only my scopes has unique abilities. My recomendation is getting rid of any vanilla scopes except PU, Kobra, PSO and 1PN51. Mod content: EOTech XPS3-4 - familiar holographic sight with ability to attach a G33 magnifier for magnification doubling; Leupold 3.5-10x40 Mk 4 - Riflescope for mid and long range shooting, illuminated reticle; ACOG - Well known scope with 4x magnification. This scope has different reticle from vanilla one and has the option of mounting an additional RMR red dot sight; SpecterDR 1.5-6x - A sight that combines all the advantages of collimator and telescopic sights for short- and medium-range shooting; RMR - Small collimator sight, which can be mounted on an ACOG or a pistol. Also has optional mounts with two different heights for mounting on any other weapon; Dedal DHF-5 - Russian-made optical scope designed for high-precision shooting. Has 5-20x magnification; NF ATACR 7-35x56 - This scope takes accurate long range shooting to a whole new level. Has a 7-35x magnification; NF ATACR 1-8x24 - Is designed and built to be the ultimate low-power variable riflescope. Has a field of view at 1x equivalent to open sights… But vastly more precise; Walther MRS - Open type collimator sight. Because of its design is not often used by military, but is popular among hunters and fans of military tactical games; OKP-7 - Russian-made collimator sight. Extremely convenient in use due to its design; AN/PVS-4 - Passive US Army 2nd generation night vision optical sight. 3.6x magnification; Pilad 4x32 - Russian hunting optic sight. Cheap, heavy, has fixed 4x magnification; Zenit B-13 AK Side Mount - Russian made lightweight genuine Zenit rail mount for AK, allows you to mount ANY of the these sights on the AK mount system; Tri-rail Mount - Aluminum sights mount, allows you to mount ANY of the these sights on the Mosin rifle, SKS, SVT etc. Idea of this mod is give ability to players use any scope on any weapon in this game without unliked limits of "hunting" and "RIS" slots. So to attach scope to the mount you need both items, then combine one with another. To unmount scope from mount - put item in your hands and press LMB. You can repair any scope by Electrical Repair Kit. All of these scopes and mounts uses vanilla slots so this mod is compatible with almost any weapon mod. Red dot sights are made for comfortable use - they are not subject to sun backlighting unlike vanilla ones. Names and description of every item are translatedinto English and Russian (if you want to help with it, contact me). Donation Some of the models and textures used here are made by me from scratch, while others are bought. If you want to donate to support my work, you can do it here: Hipolink Boosty Thank you! Contact me in Discord Inkota#3273 for any questions. I WON'T ACCEPT STEAM FRIENDS REQUEST You can use this mod on monetized severs (if you have BI approval). Copyright 2021-2024 Inkota. This item is not authorized for posting on Steam (i.e. reuploaded, repacked), except under this Steam account named "Inkota".
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
Every server-visible override preserves its chain.
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; 25 others share it. Ranked list.
Event hooks carry 99.8% of this mod's structural load. 0.000 ms/s in all.
2 hooks · 0.0004 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 2 hooks | 0.0004 ms/s | 99.8% | ActionToggleNVMode.ActionCondition, PlayerBase.SetActions |
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.
Where 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
super() only on some paths · 4 · warning
- ASVAL.CanEnterIronsights returns true without consulting super.CanEnterIronsights() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
AdvancedWeaponScopes.pbo::Scripts\4_World\Classes\ASVALRifle.c:3 - ActionToggleNVMode.ActionCondition returns true without consulting super.ActionCondition() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
AdvancedWeaponScopes.pbo::Scripts\4_World\Actions\moddedActionToggleNVMode.c:3 - Aug.CanEnterIronsights returns true without consulting super.CanEnterIronsights() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
AdvancedWeaponScopes.pbo::Scripts\4_World\Classes\AugRifle.c:3 - DayZPlayerCameraOptics.SetCameraPP calls super.SetCameraPP() only on some paths — on the others the chain below this mod is dropped.
AdvancedWeaponScopes.pbo::Scripts\4_World\DontJudgeMeForThisCodePlease.c:5
- ASVAL.CanEnterIronsights returns true without consulting super.CanEnterIronsights() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
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 8 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 |
|---|---|---|---|---|
ActionConstructor.RegisterActions |
— | yes | ✓ | AdvancedWeaponScopes.pbo::Scripts\4_World\Actions\RegisterActions_Playerbase.c:60 |
ActionToggleNVMode.ActionCondition |
T2 | yes | conditional | AdvancedWeaponScopes.pbo::Scripts\4_World\Actions\moddedActionToggleNVMode.c:3 |
ASVAL.CanEnterIronsights |
— | yes | conditional | AdvancedWeaponScopes.pbo::Scripts\4_World\Classes\ASVALRifle.c:3 |
Aug.CanEnterIronsights |
— | yes | conditional | AdvancedWeaponScopes.pbo::Scripts\4_World\Classes\AugRifle.c:3 |
DayZPlayerCameraOptics.SetCameraPP |
— | yes | conditional | AdvancedWeaponScopes.pbo::Scripts\4_World\DontJudgeMeForThisCodePlease.c:5 |
ModItemRegisterCallbacks.RegisterOneHanded |
— | yes | ✓ | AdvancedWeaponScopes.pbo::Scripts\4_World\Animations.c:3 |
PlayerBase.SetActions |
T2 | yes | ✓ | AdvancedWeaponScopes.pbo::Scripts\4_World\Actions\RegisterActions_Playerbase.c:3 |
PluginRecipesManagerBase.RegisterRecipies |
— | yes | ✓ | AdvancedWeaponScopes.pbo::Scripts\4_World\Recipes\RegisterRecipies.c:3 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
PlayerBase.SetActions | T2 | 8.0 | placeholder | 0.0002 |
ActionToggleNVMode.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.
AdvancedWeaponScopes.pbo
AD_XPS34requiredVersion 0.1 — requiresDZ_Weapons_OpticsAD_VanillaTweaks_M16requiredVersion 0.1 — requiresDZ_Weapons_Firearms_M16A2AD_SpecterDRrequiredVersion 0.1 — requiresDZ_Weapons_OpticsAD_RMRrequiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_PVS4requiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_PiladrequiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_OKP7requiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_NFATACR_1_8requiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_NFATACRrequiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_MRSrequiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAD_MosinMountrequiredVersion 0.1 —requires 14 addons
DZ_Data,DZ_Weapons_Optics,AD_Pilad,AD_DHF5,AD_PVS4,AD_OKP7,AD_RMR,AD_ACOG,AD_MRS,AD_NFATACR,AD_NFATACR_1_8,AD_SpecterDR,AD_LeupoldMk4,AD_XPS34AD_LeupoldMk4requiredVersion 0.1 — requiresDZ_DataAD_DHF5requiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_OpticsAdvancedWeaponScopesrequiredVersion 0.1 — requiresDZ_DataAD_B13MountrequiredVersion 0.1 —requires 14 addons
DZ_Data,AD_Pilad,AD_DHF5,AD_PVS4,DZ_Weapons_Optics,AD_OKP7,AD_RMR,AD_ACOG,AD_MRS,AD_NFATACR,AD_NFATACR_1_8,AD_SpecterDR,AD_LeupoldMk4,AD_XPS34AD_ACOGrequiredVersion 0.1 — requiresDZ_Data,DZ_Weapons_Optics
census 1.1 · findings 1.1 · hash c85928b8cdfa6c30