look up the r.raytracing,shadow commands there should be one for max ray distance which is what I think you need