ACE3/addons/nightvision/script_component.hpp

49 lines
1.1 KiB
C++
Raw Normal View History

2015-01-12 22:08:37 +00:00
#define COMPONENT nightvision
2016-06-20 09:41:17 +00:00
#define COMPONENT_BEAUTIFIED Night Vision
2015-01-12 22:08:37 +00:00
#include "\z\ace\addons\main\script_mod.hpp"
2015-09-16 15:55:23 +00:00
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
2015-09-16 15:55:23 +00:00
2015-01-14 19:51:03 +00:00
#ifdef DEBUG_ENABLED_NIGHTVISION
2015-01-12 22:08:37 +00:00
#define DEBUG_MODE_FULL
#endif
2015-01-14 19:51:03 +00:00
#ifdef DEBUG_SETTINGS_NIGHTVISION
#define DEBUG_SETTINGS DEBUG_SETTINGS_NIGHTVISION
2015-01-12 22:08:37 +00:00
#endif
2016-06-20 09:41:17 +00:00
#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