Zombies shouldn't be smart but at the same time being able to easily cheese them and make them loop around without them realizing that they cant even hit you feels off as a whole.
One solution is to make zombies smarter and if they are unable to hit you would start destroying the base, but this also feels off, zombies arent supposed to be smart at least not the basic ones.
Another solution is to add more types of zombies that each have their own fighting style and attack you differently.
So for example you would have a zombie specialised in destroying structures, low hp, only hits structures unless maybe it can directly hit you, has more block damage and lower damage on entities.
Ranged zombies, never hit you with melee, only attacks at a distance, can hit trough bars, holes etc.
Flying zombie that can land on rooftop and then start attacking entity/structure on foot, destroying the ceiling and landing on your head.
Etc...
Basically the idea is that add a variety of types of zombies to make the gameplay more rich instead of one dimensionnal and require you to be fully aware of your surrounding and being able to fend off attacks coming on every front instead of being able to mindlessly click at zombies coming directly at you.
One solution is to make zombies smarter and if they are unable to hit you would start destroying the base, but this also feels off, zombies arent supposed to be smart at least not the basic ones.
Another solution is to add more types of zombies that each have their own fighting style and attack you differently.
So for example you would have a zombie specialised in destroying structures, low hp, only hits structures unless maybe it can directly hit you, has more block damage and lower damage on entities.
Ranged zombies, never hit you with melee, only attacks at a distance, can hit trough bars, holes etc.
Flying zombie that can land on rooftop and then start attacking entity/structure on foot, destroying the ceiling and landing on your head.
Etc...
Basically the idea is that add a variety of types of zombies to make the gameplay more rich instead of one dimensionnal and require you to be fully aware of your surrounding and being able to fend off attacks coming on every front instead of being able to mindlessly click at zombies coming directly at you.