-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interaction - Add condition to zeus actions #6665
Interaction - Add condition to zeus actions #6665
Conversation
addons/main/script_macros.hpp
Outdated
@@ -134,4 +134,6 @@ | |||
#define MRAD_TO_DEG(d) ((d) / 17.45329252) // Conversion factor: 9 / (50 * PI) | |||
#define MOA_TO_RAD(d) ((d) * 0.00029088) // Conversion factor: PI / 10800 | |||
|
|||
#define ZEUS_ACTION_CONDITION (QUOTE(QUOTE(ADDON)) in curatorAddons _target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about macro name because double QUOTE
can't be used in actions added by script not config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ace_zeus" in curatorAddons z
is ~0.2ms with just ace or 0.5 with my full modset
so we might want to use cached call instead
#define ZEUS_ACTION_CONDITION ([nil, {QUOTE(QUOTE(ADDON)) in curatorAddons _target}, missionNamespace, QUOTE(QUOTE(GVAR(zeusCheck))), 60] call ace_common_fnc_cachedCall)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add event to clear this cache, e.g. that one on interaction menu closed (don't remember exactly name)? 60s timeout can be not so effective if removeCuratorAddons
/addCuratorAddons
are used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ace_interactMenuClosed
* Add conditions to zeus actions * Add condition caching
When merged this pull request will:
Zeus modules can be disabled/enabled with
removeCuratorAddons
/addCuratorAddons
commands. This PR adds condition which checks if addon is enabled for curator and thus zeus interaction menu are controlled the same way.ref #6632
@Bummeri