Agree, this workaround help keeping group tight under some circumstances.True to that... if the reason the AI is moving all over the place, thats because the AI leader issuing engage/attack command. So that means his AI subordinate will break formation and find a 'better' firing position.
What zGuba did was using enableAttack false, so the AI will not issue engage command, unless by some calculations the odds for engaging is good, then the AI leader will have enableAttack true again.
bCombat AI Mod:
For ArmA3: https://github.com/fabrizioT/bdetect_arma3
For ArmA2/OA: https://github.com/fabrizioT/bDetect
ArmA2 Youtube Channel: