I'm not sure if this should go here or in the Tech Support section, so If this is the wrong place, please let me know.
As a hobbyist game developer, I'm curious about how the Light Awareness System works in The Dark Mod. I've been poking through the source code, but haven't found any definitive math explaining it, or code comments mentioning on how it's calculated. If anyone could point me to exactly where to look, or could explain what steps and/or math it's using to calculate how visible the player is, I'd greatly appreciate the insight.
For reference, I'm trying to implement a similar system in my own stealth game I'm working on in Unreal Engine 4.