Checks characters proximity for usable Universal Temperature Sources and register them.
1477 {
1479
1480
1484
1487
1488 foreach (
EntityAI nearestEntity : nearestObjects)
1489 {
1490 if (nearestEntity.IsUniversalTemperatureSource() && nearestEntity !=
m_Player)
1491 {
1493 if (!nearestEntity.GetUniversalTemperatureSource().GetLambda().AffectsPlayer())
1494 continue;
1495
1498 continue;
1499
1501 }
1502 }
1503
1504 if (
m_Player.GetItemInHands() &&
m_Player.GetItemInHands().IsUniversalTemperatureSource())
1506 }
void DayZPlayerUtils()
cannot be instantiated
ref array< UTemperatureSource > m_UTemperatureSources
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
const float ENVIRO_TEMP_SOURCES_LOOKUP_RADIUS
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float SqrFloat(float f)
Returns squared value.