Skip to content

Commit

Permalink
Optics - Convert Optics to use CBA Optics (#7273)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: PabstMirror <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2024
1 parent 4014cd5 commit 903f046
Show file tree
Hide file tree
Showing 31 changed files with 165 additions and 750 deletions.
17 changes: 0 additions & 17 deletions addons/optics/CfgEventHandlers.hpp

This file was deleted.

7 changes: 0 additions & 7 deletions addons/optics/CfgOpticsEffect.hpp

This file was deleted.

31 changes: 10 additions & 21 deletions addons/optics/CfgPreloadTextures.hpp
Original file line number Diff line number Diff line change
@@ -1,49 +1,38 @@
#define MACRO_PRELOAD \
GVAR(BodyDay) = "*"; \
GVAR(BodyNight) = "*"; \
GVAR(ReticleDay) = "*"; \
GVAR(ReticleNight) = "*"

class PreloadTextures {
class CfgWeapons {
class ACE_optic_Hamr_2D {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_Hamr_PIP {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_Arco_2D {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_Arco_PIP {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_MRCO_2D {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_MRCO_PIP {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_SOS_2D {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_SOS_PIP {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_LRPS_2D {
MACRO_PRELOAD;
PRELOAD;
};

class ACE_optic_LRPS_PIP {
MACRO_PRELOAD;
PRELOAD;
};
};
};
204 changes: 0 additions & 204 deletions addons/optics/CfgRscTitles.hpp

This file was deleted.

6 changes: 0 additions & 6 deletions addons/optics/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ class CfgVehicles {
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
MACRO_ADDITEM(ACE_optic_Hamr_2D,2);
MACRO_ADDITEM(ACE_optic_Hamr_PIP,2);
MACRO_ADDITEM(ACE_optic_Arco_2D,2);
MACRO_ADDITEM(ACE_optic_Arco_PIP,2);
MACRO_ADDITEM(ACE_optic_MRCO_2D,2);
//MACRO_ADDITEM(ACE_optic_MRCO_PIP,2);
MACRO_ADDITEM(ACE_optic_SOS_2D,2);
MACRO_ADDITEM(ACE_optic_SOS_PIP,2);
MACRO_ADDITEM(ACE_optic_LRPS_2D,2);
MACRO_ADDITEM(ACE_optic_LRPS_PIP,2);
//MACRO_ADDITEM(ACE_optic_DMS,2);
};
};
};
Loading

0 comments on commit 903f046

Please sign in to comment.