Spent some time today trying to give the cows a more herd-like behaviour.
What this modified cow_flee.sqf script does:
When a cow detects a vehicle nearby, the cow will look for a other cows nearby.
If it finds other cows, it will move towards a cow it respects, rather than running directly away from the vehicle.
If it doesn't find a higher-ranking cow, it will behave as usual and flee the vehicle.
How it plays:
It gives the cows a bit more awareness of each other, and an instinct to stay together. By watching how the cows move, its possible to work out who is the highest ranking, and herd accordingly. Be careful though, cows will still separate if they fall behind.
If you have any time to play with it, let me know how it feels for you. Do the cows behave more as you'd expect from a herd, or does this seem a bit artificial? What other behaviours can you think of that would increase the experience?
Also, testing this script with humans rather than cows has been hours of giggles. :D