2016-08-18 16:37:38 +00:00
|
|
|
---
|
|
|
|
layout: wiki
|
|
|
|
title: Night Vision Framework
|
|
|
|
description: Explains how to set-up night vision goggles with ACE3 night vision system.
|
|
|
|
group: framework
|
|
|
|
order: 5
|
|
|
|
parent: wiki
|
2016-08-30 13:49:04 +00:00
|
|
|
mod: ace
|
|
|
|
version:
|
|
|
|
major: 3
|
2017-12-20 20:21:55 +00:00
|
|
|
minor: 12
|
2016-08-30 13:49:04 +00:00
|
|
|
patch: 0
|
2016-08-18 16:37:38 +00:00
|
|
|
---
|
|
|
|
|
2017-12-20 20:21:55 +00:00
|
|
|
<div class="panel callout">
|
|
|
|
<h5>Note:</h5>
|
|
|
|
<p>Changed in 3.12.0.</p>
|
|
|
|
</div>
|
|
|
|
|
2016-08-18 16:37:38 +00:00
|
|
|
## 1. Config Values
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
class CfgWeapons {
|
2017-12-20 20:21:55 +00:00
|
|
|
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.
|
|
|
|
};
|
2016-08-18 16:37:38 +00:00
|
|
|
};
|
|
|
|
```
|
2017-12-20 20:21:55 +00:00
|
|
|
|
|
|
|
## 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.
|