I think the AI should avoid moving tanks the same way it avoids construction sites. Currently it is very easy to hit friendly troops when you drive through a group of AIs, or when you get into a vehicle that is not large enough to accommodate all the teammates. AI will also swarm around and try to enter the vehicle (and get hit).
It is also very annoying when you have worked hard to set up an AT gun or MG, and an AI blocks your sight and firepower (AI won’t help you load the gun if you give a defense command, and if you don’t command anything, they will just walking around), so I suggest that the same mechanism should be applied In the built weapons.
It would be even better if they could automatically avoid the aimline when we use weapons like LMGs and GLs.