File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ if (isServer) then {
4343 }] call CBA_fnc_addEventHandler ;
4444};
4545
46+ GVAR(isACEAXLoaded) = isClass (configFile >> " CfgPatches" >> " aceax_gearinfo" );
47+
4648// Backpack classnames which will be made invisible instead of being made a chestpack. Useful for items like the vanilla legstrap.
4749GVAR(exceptions) = [
4850 " B_LegStrapBag_black_F" ,
Original file line number Diff line number Diff line change @@ -26,9 +26,14 @@ private _shouldSwitchNVGs = currentVisionMode _unit != 0;
2626if ((_chestpack isEqualTo " " ) or (backpack _unit isNotEqualTo " " )) exitWith {};
2727
2828// add items
29- private _loadout = [_unit ] call CBA_fnc_getLoadout ;
30- (_loadout select 0 ) set [5 , [_chestpack , _chestpackLoadout ]];
31- [_unit , _loadout ] call CBA_fnc_setLoadout ;
29+ private _loadout = getUnitLoadout _unit ;
30+ _loadout set [5 , [_chestpack , _chestpackLoadout ]];
31+ _unit setUnitLoadout _loadout ;
32+
33+ if (GVAR(isACEAXLoaded)) then {
34+ [_unit , [_unit ] call aceax_gearinfo_fnc_getTextureOptions ] call aceax_gearinfo_fnc_setTextureOptions ;
35+ };
36+
3237if (_shouldSwitchNVGs ) then {
3338 _unit action [" NVGoggles" , _unit ];
3439};
Original file line number Diff line number Diff line change @@ -41,9 +41,14 @@ if ((_backpack isEqualTo "") or ([_unit] call FUNC(chestpack)) isEqualTo "") exi
4141removeBackpackGlobal _unit ;
4242
4343// add backpack loadout
44- private _loadout = [_unit ] call CBA_fnc_getLoadout ;
45- (_loadout select 0 ) set [5 , [_chestpack , _chestpackLoadout ]];
46- [_unit , _loadout ] call CBA_fnc_setLoadout ;
44+ private _loadout = getUnitLoadout _unit ;
45+ _loadout set [5 , [_chestpack , _chestpackLoadout ]];
46+ _unit setUnitLoadout _loadout ;
47+
48+ if (GVAR(isACEAXLoaded)) then {
49+ [_unit , [_unit ] call aceax_gearinfo_fnc_getTextureOptions ] call aceax_gearinfo_fnc_setTextureOptions ;
50+ };
51+
4752if (_shouldSwitchNVGs ) then {
4853 _unit action [" NVGoggles" , _unit ];
4954};
You can’t perform that action at this time.
0 commit comments