diff --git a/docs/wiki/feature/nightvision.md b/docs/wiki/feature/nightvision.md index c138198971..679bd1b846 100644 --- a/docs/wiki/feature/nightvision.md +++ b/docs/wiki/feature/nightvision.md @@ -1,24 +1,33 @@ --- layout: wiki title: Nightvision -description: Different types of NVGs with different levels of quality. +description: Adds realistic effects to NVGs. group: feature category: equipment parent: wiki mod: ace version: major: 3 - minor: 0 + minor: 12 patch: 0 --- +
+
Note:
+

Changed in 3.12.0.

+
+ ## 1. Overview -### 1.1 Multiple Generation NVGs -Adds different night vision devices with varying image quality and field of view. New Classnames for Generations 1, 2, and 4 NVG's (default Arma 3 NVG's represents Generation 3) and a wide view NVG. +This addon strives to simulate night vision devices more realistically. -### 1.2 Blending effects -Adds a blending effect depending on ammunition type when firing while using a night vision device. Especially tracer rounds are bright, but you can use the IR-dim tracers from the Ballistics module to reduce tis effect. +### 1.1 Nightvision effects + +The addon will add effects to the player's night vision depending on ambient light and NVG configuration (mono-, bi-, quadocular). + +### 1.2 Multiple Generation NVGs + +Adds different night vision devices with varying image quality and field of view. New classnames for Generations 1, 2, and 4 NVG's (default Arma 3 NVG's represents Generation 3) and a wide view NVG. ### 1.3 Brightness adjustment Enables the user to manually adjust NVG brightness. diff --git a/docs/wiki/framework/nightvision-framework.md b/docs/wiki/framework/nightvision-framework.md index 2f0ad424b5..f3a0379bb5 100644 --- a/docs/wiki/framework/nightvision-framework.md +++ b/docs/wiki/framework/nightvision-framework.md @@ -8,19 +8,37 @@ parent: wiki mod: ace version: major: 3 - minor: 0 + minor: 12 patch: 0 --- +
+
Note:
+

Changed in 3.12.0.

+
+ ## 1. Config Values ```cpp class CfgWeapons { - class MyNightVision { - displayName = "Banana NVGs"; // Name displayed in the inventory - ace_nightVision_grain = 0.75; // Amount of grain (dots) on the screen (more means more grain) - can be higher than 1 - ace_nightVision_blur = 0.055; // Blur amount (more means more blur) - keep low values! - ace_nightVision_radBlur = 0.001; // Radial blur amount (more means more blur) - keep low values! - }; + class myNightVision: NVGoggles { + scope = 1; + modelOptics = ""; + author = ECSTRING(common,ACETeam); + descriptionShort = "Biocular nightvision goggles"; + displayName = "NV Goggles (Bio)"; + GVAR(border) = QPATHTOF(data\nvg_mask_binos_4096.paa); // Edge mask for different tube configurations. Three types: mono, bino and quad. + GVAR(bluRadius) = 0.13; // Edge blur radius. + GVAR(eyeCups) = 1; // Does have eyecups. + GVAR(generation) = 4; // Generation 4. Affects image quality. + }; }; ``` + +## 2. Events + +To change night vision settings with code use: + +`ace_nightvision_fogScaling = 0.5;` // More is more fog. + +`ace_nightvision_effectScaling = 0.5;` // More is more apparent effects.