File: 4_World/Classes/Environment/Environment.c:2042-2064 HeadGearProtectionAgainstSun)
The loop returns HC_EXPOSED_HEAD_TO_SUN on the first clothing attachment that is not in the HEADGEAR slot:
```c
if (attachmentSlot == InventorySlots.HEADGEAR)
isolation = MiscGameplayFunctions.GetCurrentItemHeatIsolation(item);
else
return HC_EXPOSED_HEAD_TO_SUN;
```