Skip to content

Commit

Permalink
make configs less readable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCandianVendingMachine committed Dec 4, 2024
1 parent 70e4d4a commit fbb3d55
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions addons/missileGuidanceCompat/patchVanilla/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class CfgAmmo {
enabled = 1;
};
class EventHandlers {
init = QUOTE([ARR_7(ARG_1(getShotParents ARG_1(_this,0),0), '', '', '', typeOf ARG_1(_this,0), nil, ARG_1(_this,0))] call ace_missileguidance_fnc_onFired);
init = QUOTE([ARR_7(ARG_1(getShotParents ARG_1(_this,0),0),'','','',typeOf ARG_1(_this,0),nil,ARG_1(_this,0))] call ace_missileguidance_fnc_onFired);
};
};

Expand Down Expand Up @@ -95,7 +95,7 @@ class CfgAmmo {
enabled = 1;
};
class EventHandlers {
init = QUOTE([ARR_7(ARG_1(getShotParents ARG_1(_this,0),0), '', '', '', typeOf ARG_1(_this,0), nil, ARG_1(_this,0))] call ace_missileguidance_fnc_onFired);
init = QUOTE([ARR_7(ARG_1(getShotParents ARG_1(_this,0),0),'','','',typeOf ARG_1(_this,0),nil,ARG_1(_this,0))] call ace_missileguidance_fnc_onFired);
};
};

Expand Down Expand Up @@ -133,47 +133,29 @@ class CfgAmmo {
enabled = 1;
};
class EventHandlers {
init = QUOTE([ARR_7(ARG_1(getShotParents ARG_1(_this,0),0), '', '', '', typeOf ARG_1(_this,0), nil, ARG_1(_this,0))] call ace_missileguidance_fnc_onFired);
init = QUOTE([ARR_7(ARG_1(getShotParents ARG_1(_this,0),0),'','','',typeOf ARG_1(_this,0),nil,ARG_1(_this,0))] call ace_missileguidance_fnc_onFired);
};
};

class Sh_82mm_AMOS_LG: Sh_82mm_AMOS_guided {
submunitionAmmo = QGVAR(82mm_laser_active);
submunitionDirectionType = "SubmunitionModelDirection";
class EventHandlers {
init = QUOTE(
[ARR_3(
{ ARG_1(velocity ARG_1(_this,0),2) < 0 },
{ triggerAmmo ARG_1(_this,0); },
_this
)] call CBA_fnc_waitUntilAndExecute;
);
init = QUOTE([ARR_3({ ARG_1(velocity ARG_1(_this,0),2) < 0 },{ triggerAmmo ARG_1(_this,0); },_this)] call CBA_fnc_waitUntilAndExecute;);
};
};
class Sh_155mm_AMOS_LG: Sh_82mm_AMOS_LG {
submunitionAmmo = QGVAR(155mm_laser_active);
submunitionDirectionType = "SubmunitionModelDirection";
class EventHandlers {
init = QUOTE(
[ARR_3(
{ ARG_1(velocity ARG_1(_this,0),2) < 0 },
{ triggerAmmo ARG_1(_this,0); },
_this
)] call CBA_fnc_waitUntilAndExecute;
);
init = QUOTE([ARR_3({ ARG_1(velocity ARG_1(_this,0),2) < 0 },{ triggerAmmo ARG_1(_this,0); },_this)] call CBA_fnc_waitUntilAndExecute;);
};
};
class R_230mm_LG: R_230mm_HE {
submunitionAmmo = QGVAR(230mm_laser_active);
submunitionDirectionType = "SubmunitionModelDirection";
class EventHandlers {
init = QUOTE(
[ARR_3(
{ ARG_1(velocity ARG_1(_this,0),2) < 0 },
{ triggerAmmo ARG_1(_this,0); },
_this
)] call CBA_fnc_waitUntilAndExecute;
);
init = QUOTE([ARR_3({ ARG_1(velocity ARG_1(_this,0),2) < 0 },{ triggerAmmo ARG_1(_this,0); },_this)] call CBA_fnc_waitUntilAndExecute;);
};
};
};

0 comments on commit fbb3d55

Please sign in to comment.