Jump to content

Recommended Posts

Posted (edited)

Digital Combat Simulator  Black Shark Screenshot 2025.10.09 - 00.25.20.63.png

 

I've been looking into how AI units detect aircraft at night, and the results are actually really interesting. After checking through the detection.lua file and running a bunch of tests, I found that sky_bodies_illumination_factor is set to true, which means the moon phase directly affects how visible you are to AI. The game uses four moon stages quarter, half, three quarter, and full, with each one adding more light that helps AI spot you more easily against the night sky.

sky_bodies_illumination_factor = true,
other_light_sources_illumination_factor = true, --no effect if sun_illumination factor disabled
darkness_threshold = 0.0, --no effect if sun_illumination factor disabled

What stood out the most in testing was how external lights change your visibility. The parameter light_source_detection_distance is set to 10,000 meters when light power is at full, and my tests showed that position lights make you a lot easier to see and far more likely to be engaged by AI. Strobe lights also increased detection, but not as quickly as the position lights, while formation lights barely made a difference.
 

as_light_source = {
    light_source_detection_distance = 10000.0 --for light power = 1.0f
},

The file also shows that other_light_sources_illumination_factor is set to true, which means your own aircraft lights actually light up your airframe and make you glow against the dark background. In other words, you are basically making yourself a visible target when your lights are on.

Another important part is the darkness_threshold value, which is set to 0.0. That suggests AI detection does not completely disappear at night. It is just greatly reduced unless you are illuminated by your own lights or the moon.
 

max_detection_distance = 50000.0, --m, absolute limit

But detection times increase significantly at longer ranges
 

average_det_time_max_dist_0 = 1.0, --s, average detection time of target ahead at the maximal distance
average_det_time_max_dist_180 = 10.0, --s, average detection time of target behind at the maximal distance


Overall, both the code and testing show that flying with lights on at night, especially under a bright moon, makes you far easier to detect and engage. What should be the cover of darkness actually turns into a disadvantage if you are not careful with your lighting.

 

Contributer: @mach_point_yuh, @lightningw0lf, @zenki1419

Digital Combat Simulator  Black Shark Screenshot 2025.10.09 - 00.28.18.18.png

Edited by FlintMcgee
proof reading
  • Like 2
  • Thanks 2
  • 2 weeks later...
Posted

I've wondered how to get the AI to turn off its lights on fence-in where it makes sense to turn them off. We were always trained to keep all emissions off when on combat missions. At least back in the day with B-52s, back when we were still a low-level penetrator.

Intel Core i9 [14th Gen] i9-14900K [24 Core] 3.20 GHz > OC 6.0 GHz | MSI PRO Z790-A MAX WiFi | ARCTIC Liquid Freezer III Pro 360 - AIO CPU Cooler | 2x Samsung 990 EVO Plus SSDs 2TB / 4TB PCIe Gen 5x2 M.2 | Corsair Vengeance DDR5 64GB 6000MHz | Corsair HX1500i (2025) ATX PSU | MSI RTX 5090 32G SUPRIM SOC (32GB GDDR7) | Phanteks XT Pro Ultra, Mid-Tower Case | 5x Noctua NF-F12 iPPC 3000 PWM, Heavy Duty Cooling Fans, 4-Pin, 3000 RPM (120mm, Black) | 1 x Noctua NA-FC1, 4-Pin PWM Fan Controller (Black)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...