Dry items in player possession.
826 {
829
830 int attCount =
m_Player.GetInventory().AttachmentCount();
831
832 #ifdef ENABLE_LOGGING
834 #endif
837
839 {
841 distance =
Math.
Max(distance, 0.1);
843 #ifdef ENABLE_LOGGING
844 LogDryWetProcess(string.Format("distance to heatsource: %1 m", distance));
845 #endif
846 }
847
848 for (int attIdx = 0; attIdx < attCount; ++attIdx)
849 {
850 attachment =
m_Player.GetInventory().GetAttachmentFromIndex(attIdx);
851 if (attachment && attachment.IsItemBase())
852 {
854 if (item)
856 }
857 }
858
860 {
862 }
863
864 #ifdef ENABLE_LOGGING
865 LogDryWetProcess("==========");
866 #endif
867 }
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.
vector GetPosition()
Get the world position of the Effect.