Complex sentence: The warm gases from a fire could be used to smoke food and when cooking with water, steam could be used to cook some foods more slowly.
Split into simpler sentences: The warm gases from a fire could be used to smoke food. Cooking with water would have produced steam which could also have been used to cook some foods more slowly.