Skip to content

Add group settings for Attack, Reinforce and Dynamic Reinforcement#441

Open
nk3nny wants to merge 7 commits intomasterfrom
Add-group-settings
Open

Add group settings for Attack, Reinforce and Dynamic Reinforcement#441
nk3nny wants to merge 7 commits intomasterfrom
Add-group-settings

Conversation

@nk3nny
Copy link
Copy Markdown
Owner

@nk3nny nk3nny commented Feb 17, 2025

Adds universal group settings for Attack, Flight and Dynamic reinforcement

Disabling 'enableAttack' on groups has the benefit of giving us more control of group actions (less running away doing random shit). The cost is that the AI will conduct fewer unit level flanking attacks.

Adds universal group settings for Attack, Flight and Dynamic reinforcement

Disabling 'enableattack' on groups has the benefit of giving us more control of group actions (less running away doing random shit).  The cost is that the AI will conduct fewer innate flanking attacks.
1
] call CBA_fnc_addSetting;

addMissionEventHandler ["GroupCreated", {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be in the EventHandlers pbo

[
{
if (count (units _this) > 0) then {
if (GVAR(autoAddDynamicReinforcement)) then {_this setVariable [QGVAR(enableGroupReinforce), true, true];};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we maybe should split this up into a more logical system. why should we, for example, wait when all 3 settings are disabled?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a 3-second wait before executing (waitAndExecute) instead of waiting until all 3 are enabled (waitUntilAndExecute), but that's still a good point.

[
{
if (count (units _this) > 0) then {
if (GVAR(autoAddDynamicReinforcement)) then {_this setVariable [QGVAR(enableGroupReinforce), true, true];};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a 3-second wait before executing (waitAndExecute) instead of waiting until all 3 are enabled (waitUntilAndExecute), but that's still a good point.


// auto disable allowFleeing on groups
[
QGVAR(disableFleeingOverride),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the next setting need a XEH initPost eventhandler instead. People spawn in units all the time, which will not get caught by this.

nk3nny and others added 6 commits September 29, 2025 17:56
Co-authored-by: diwako <diwako@gmail.com>
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Adds curatorWaypointPlaced eventhandler allowing ZEUS to override currently executing tactics
Fixes leftover debug information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants