DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ProcessVariables()

void Entity::ProcessVariables ( )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3878

3879 {
3880 //currently only temperature on EntityAI
3881 if (g_Game.IsWorldWetTempUpdateEnabled())
3882 {
3884 {
3885 float target = g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(this);
3886 if (GetTemperature() != target || !IsFreezeThawProgressFinished())
3887 {
3888 float heatPermCoef = 1.0;
3889 EntityAI ent = this;
3890 while (ent)
3891 {
3892 heatPermCoef *= ent.GetHeatPermeabilityCoef();
3893 ent = ent.GetHierarchyParent();
3894 }
3895
3896 SetTemperatureEx(new TemperatureDataInterpolated(target,ETemperatureAccessTypes.ACCESS_WORLD,m_ElapsedSinceLastUpdate,GameConstants.TEMP_COEF_WORLD,heatPermCoef));
3897 }
3898 }
3899 }
3900 }
DayZGame g_Game
Определения DayZGame.c:3942
ETemperatureAccessTypes
Определения TemperatureAccessConstants.c:2
void SetTemperatureEx(TemperatureData data)
sets temperature, handles base overheating and freezing state progression logics
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
float m_ElapsedSinceLastUpdate
float GetTemperature()
bool CanHaveTemperature()
returns true used on selected items that have a temperature effect and can processes temperature chan...
proto native EntityAI GetHierarchyRoot()
Returns root of current hierarchy (for example: if this entity is in Backpack on gnd,...
bool IsSelfAdjustingTemperature()
bool IsFreezeThawProgressFinished()
on server only

Перекрестные ссылки CanHaveTemperature(), EntityAI(), g_Game, GetHierarchyRoot(), GetTemperature(), IsFreezeThawProgressFinished(), IsSelfAdjustingTemperature(), m_ElapsedSinceLastUpdate, SetTemperatureEx() и GameConstants::TEMP_COEF_WORLD.