i an not using templates, just define fog_start and fog_end in your main after the level_load instruction, set the clip_far as well. look up the fog colour values in the map properties. this way it works without problems.