Dry items in player possession.
823 {
826
827 int attCount =
m_Player.GetInventory().AttachmentCount();
828
829 #ifdef ENABLE_LOGGING
831 #endif
834
836 {
838 distance =
Math.
Max(distance, 0.1);
840 #ifdef ENABLE_LOGGING
841 LogDryWetProcess(string.Format("distance to heatsource: %1 m", distance));
842 #endif
843 }
844
845 for (int attIdx = 0; attIdx < attCount; ++attIdx)
846 {
847 attachment =
m_Player.GetInventory().GetAttachmentFromIndex(attIdx);
848 if (attachment && attachment.IsItemBase())
849 {
851 if (item)
853 }
854 }
855
857 {
859 }
860
861 #ifdef ENABLE_LOGGING
862 LogDryWetProcess("==========");
863 #endif
864 }
ref array< UTemperatureSource > m_UTemperatureSources
void ApplyDrynessToItemEx(ItemBase pItem, EnvironmentDrynessData pDrynessData)
bool m_HasTemperatureSources
float m_TemperatureSourceDistance
bool m_UseTemperatureSources
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
const float ENVIRO_TICK_RATE
static proto float Max(float x, float y)
Returns bigger of two given values.
class JsonUndergroundAreaTriggerData GetPosition