Similarly, cordyceps take over the brain and force the host to do things outside of the norm. Like the cordyceps that effect ants, they take over, make the ant climb to unnaturally high up altitudes (for ants) and then the fungus erupts out of the ant's head and disperses spores to infect other ants.
This concept is seen infecting humans in the horror/survival game "The Last Of Us."