ACE3/addons/optics/config.cpp
commy2 903f046810
Optics - Convert Optics to use CBA Optics (#7273)
* convert ace_optics to use cba_optics

* convert ace optics to cba optics

* Remove duplicate

* Add PIP config

* Use optics index

* Fix pboProject build

* Update CfgWeapons.hpp

* Correct SOS, adjust sizes and fix build issues

* Update addons/optics/script_component.hpp

* Corrected sizes again

* Made the scripted optics the first optics mode, fixed PIP SOS not being able to use irons

* Remove unused test object

* Readd AI stuff

visionMode is already set

* Updated some info on binos

forceOptics also already set

* Overhaul of magnifications

* Adjusted MOS & Nightforce

* Maybe this time the optics sizes will be fine... surely?

* Replace heavy optics blur with CBA one

* Added PIP names back

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2024-08-15 01:17:46 -07:00

40 lines
1.1 KiB
C++

#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {
"ACE_optic_Hamr_2D",
"ACE_optic_Hamr_PIP",
"ACE_optic_Arco_2D",
"ACE_optic_Arco_PIP",
"ACE_optic_MRCO_2D",
"ACE_optic_MRCO_PIP",
"ACE_optic_SOS_2D",
"ACE_optic_SOS_PIP",
"ACE_optic_LRPS_2D",
"ACE_optic_LRPS_PIP"
};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
author = ECSTRING(common,ACETeam);
authors[] = {"Taosenai","KoffeinFlummi","commy2"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgPreloadTextures.hpp"
#include "CfgJointRails.hpp"
#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"
class CBA_PIPItems {
ACE_optic_Hamr_2D = "ACE_optic_Hamr_PIP";
ACE_optic_Arco_2D = "ACE_optic_Arco_PIP";
ACE_optic_MRCO_2D = "ACE_optic_MRCO_PIP";
ACE_optic_SOS_2D = "ACE_optic_SOS_PIP";
ACE_optic_LRPS_2D = "ACE_optic_LRPS_PIP";
};