Unfortunately, military buildings in factorio occupy the same collision layer as regular buildings. This means that if I enabled friendly damage, it would damage all buildings, including preventing turrets from shooting over walls. The only way to fix this is to add a new collision layer, which unfortunately would hurt compatibility with other mods. If I find a safe way to do that, adding that feature is something I would consider.