Why?
I was recently having discussions with some smart community members. I shared with them my reasoning:
Sniping is definitively not, following 0AD vision on Repetition - "If you find yourself doing the same action over and over without thought, then we need to either eliminate or automate such an action. Linear repetitious procedures are meaningless and boring."
Manual sniping is as today, very clearly on the very repetitive end of the spectrum.
Testing if this would be OP
A mod in development from a very smart community member, gave me the opportunity to emulate some kind of "auto-sniping". I was surprise to find out it was indeed very effective, and beating by far a top player sniping skills: NoobDude (That I have 0 chances to beat normally). I was very surprise because my expectations was that it would make little difference compared to player manual sniping.
So I though about just putting the idea into a hole forever...
... But since my initial reasoning was still holding true, and smart members were agreeing that it was, in theory, undesirable to have to have to spam so much clicks to control a very simple behavior, sniping still feels like a problem needing a solution.
How could this be addressed
unit_action.js, already have a kind of class filter for "attack-move". Another way I found to get a sens of what would such feature could feel like.
"attack-move":
{
"execute": function(position, action, selection, queued, pushFront)
{
let targetClasses;
if (Engine.HotkeyIsPressed("session.attackmoveUnit"))
targetClasses = { "attack": ["Unit"] };
else
targetClasses = { "attack": ["Unit", "Structure"] };
Implementing a stance, or hotkey, in main game that would help players "attack weakest unit in range" or another similar feature may change the meta.
But this "sniping" meta of is arguably not most rewarding mechanics you can hope for a strategy game.
TLDR: No script publicly exist for (practically) sniping in a multiplayer game. I think we should however seek to fix the compulsive clicking required for sniping. This won't end 0AD, but may give way to the implementation of more interesting mechanics, and game-play metas. Also the unfair advantage that this could provide may deter any moders to do it. The best approach could be to have it in native game.