# Headlights extends view distance in rain

**URL:** <https://discourse.cataclysmdda.org/t/headlights-extends-view-distance-in-rain/2502>\
**Category:** The Garage\
**Created:** [August 1, 2013, 8:05pm UTC](https://discourse.cataclysmdda.org/t/headlights-extends-view-distance-in-rain/2502 "2013-08-01T20:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeadWar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/headwar/32/2685_2.png) [@HeadWar](https://discourse.cataclysmdda.org/u/HeadWar)\
**Post date:** [August 1, 2013, 8:05pm UTC](https://discourse.cataclysmdda.org/t/headlights-extends-view-distance-in-rain/2502/1 "2013-08-01T20:05:58Z")

</div>

Middle of the day, view distance is reduced by rain, but my headlights create a cone of extra visibility. Not a big deal, but doesn’t seem quite right.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [August 1, 2013, 9:11pm UTC](https://discourse.cataclysmdda.org/t/headlights-extends-view-distance-in-rain/2502/2 "2013-08-01T21:11:44Z")

</div>

That’s how the goofy light level code works. The view distance is reduced based on light level, which is effected by weather conditions. Perhaps this was originally intended to represent general poor visibility? Hard to say. In the future (who knows when) I’d like to change it to have ambient light level set by the weather, and adjust visibility as well, as you of course get with sheets of rain and such.

The eventual goal would be to have both light level and less-than-ideal air conditions contribute to visibility such that we can perhaps show detail up close, approximations (humanoid, flying thing, tree) at medium range, and large-scale items at long range (buildings, cars, etc.)
