They are weighted, yes! With a bit of random thrown in. The bots consider 2 nodes ahead and prefer to go get things they need, or go into crawlspaces if they're on all four. If an enemy is near they go into "battle mode" and start just shuffling around randomly and firing. If they're out of water and get hit, there's a chance they'll run away.