Crowds and Bullet
I've made this crowd R&D using Houdini crowds. The agents follow a logic to detect danger and then escape based on their level of panic. The agents detect rocks and the probability of being injured, they also evaluate their neighbor's panic level. Following these two parameters, their own panic level increases. When their panic level reaches the top, they finally decide to escape.