mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4b42eb4385
* Merge ST Nightvision * Cleanup * Header cleanup * Add ace setting for fog * Cleanup debug * Manual merge refuel changes * Add new setting for effect scaling * Cleanup * Use ace_common_fnc_getZoom * Fix compat inheritance changes * Fix stringtable * Add category * Tidy function headers * Replace global event with remote event
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#define COMPONENT nightvision
|
|
#define COMPONENT_BEAUTIFIED Night Vision
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
// #define DEBUG_MODE_FULL
|
|
// #define DISABLE_COMPILE_CACHE
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
#ifdef DEBUG_ENABLED_NIGHTVISION
|
|
#define DEBUG_MODE_FULL
|
|
#endif
|
|
|
|
#ifdef DEBUG_SETTINGS_NIGHTVISION
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_NIGHTVISION
|
|
#endif
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
|
|
|
|
|
// Effect Settings / Magic values to tweak:
|
|
|
|
// Decreases fog when in air vehicles
|
|
#define ST_NVG_AIR_FOG_MULTIPLIER 0.5
|
|
|
|
// Increase blur when looking down sights
|
|
#define ST_NVG_CAMERA_BLUR_SIGHTS_RIFLE 6
|
|
#define ST_NVG_CAMERA_BLUR_SIGHTS_PISTOL 2
|
|
|
|
#define ST_NVG_MINFOG 0.2
|
|
#define ST_NVG_MAXFOG 0.3
|
|
|
|
#define ST_NVG_GRAIN_MIN 2.25
|
|
#define ST_NVG_GRAIN_MAX 2.7
|
|
|
|
#define ST_NVG_BLUR_MIN 0.05
|
|
#define ST_NVG_BLUR_MAX 0.11
|
|
|
|
#define ST_NVG_BRIGHT_MIN 0.65
|
|
#define ST_NVG_BRIGHT_MAX 0.75
|
|
|
|
#define ST_NVG_CONTRAST_MIN 0.4
|
|
#define ST_NVG_CONTRAST_MAX 0.8
|
|
|
|
#define ST_NVG_NOISEINTENSITY_MIN 0.4
|
|
#define ST_NVG_NOISEINTENSITY_MAX 0.55
|
|
|
|
#define ST_NVG_NOISESHARPNESS_MIN 1.2
|
|
#define ST_NVG_NOISESHARPNESS_MAX 1
|