ACE3/addons/nightvision/CfgWeapons.hpp
PabstMirror 4b42eb4385
ST Nightvision Effects (#4694)
* 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
2017-12-06 13:15:33 -06:00

87 lines
3.0 KiB
C++

class CfgWeapons {
class Binocular;
class NVGoggles: Binocular {
displayName = CSTRING(NVG_Gen3_brown);
modelOptics = "";
GVAR(border) = QPATHTOF(data\nvg_mask_binos_4096.paa);
GVAR(bluRadius) = 0.15;
};
class O_NVGoggles_hex_F: NVGoggles { // APEX NVG with multiple lenses (spider eyes)
modelOptics = "";
GVAR(border) = QPATHTOF(data\nvg_mask_quad_4096.paa); // Use quad tube mask
GVAR(bluRadius) = 0.26;
};
class NVGogglesB_grn_F: NVGoggles { // APEX NVG/Thermal
modelOptics = "\A3\weapons_f\reticle\optics_night"; // use vanilla modelOptics so it will show in IR mode
};
class NVGoggles_OPFOR: NVGoggles {
modelOptics = "";
displayName = CSTRING(NVG_Gen3_black);
};
class NVGoggles_INDEP: NVGoggles {
modelOptics = "";
displayName = CSTRING(NVG_Gen3_green);
};
class ACE_NVG_Gen1: NVGoggles_OPFOR {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(NVG_Gen1);
GVAR(generation) = 1;
};
class ACE_NVG_Gen2: NVGoggles_INDEP {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(NVG_Gen2);
GVAR(generation) = 2;
};
class ACE_NVG_Gen4: NVGoggles {
author = ECSTRING(common,ACETeam);
displayName = CSTRING(NVG_Gen4);
GVAR(generation) = 4;
};
class ACE_NVG_Wide: NVGoggles {
author = ECSTRING(common,ACETeam);
modelOptics = QPATHTOF(models\ACE_nvg_wide_optics);
displayName = CSTRING(NVG_FullScreen);
};
// Examples of different goggle effect types (scope=1)
// These all function differently, but we have no models to go with them
class ACE_NVG_Biocular: NVGoggles {
scope = 1;
modelOptics = "";
author = ECSTRING(common,ACETeam);
descriptionShort = "Biocular nightvision goggles";
displayName = "NV Goggles (Bio)";
GVAR(border) = QPATHTOF(data\nvg_mask_4096.paa);
GVAR(bluRadius) = 0.13;
GVAR(eyeCups) = 1;
};
class ACE_NVG_Monocular: NVGoggles {
scope = 1;
modelOptics = "";
author = ECSTRING(common,ACETeam);
descriptionShort = "Monocular nightvision goggles";
displayName = "NV Goggles (Mono)";
GVAR(border) = QPATHTOF(data\nvg_mask_4096.paa);
GVAR(bluRadius) = 0.13;
};
class ACE_NVG_Binocular: NVGoggles {
scope = 1;
modelOptics = "";
author = ECSTRING(common,ACETeam);
descriptionShort = "Binocular nightvision goggles";
displayName = "NV Goggles (Bino)";
GVAR(border) = QPATHTOF(data\nvg_mask_binos_4096.paa);
GVAR(bluRadius) = 0.15;
};
class ACE_NVG_Quadocular: NVGoggles {
scope = 1;
modelOptics = "";
author = ECSTRING(common,ACETeam);
descriptionShort = "Quadocular nightvision goggles";
displayName = "NV Goggles (Quad)";
GVAR(border) = QPATHTOF(data\nvg_mask_quad_4096.paa);
GVAR(bluRadius) = 0.26;
};
};