Added viewing range to pedestrians (complete code).