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

◆ ProcessVariables()

void Entity::ProcessVariables ( float elapsedTime)
inlineprotected

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

3914 {
3915 //currently only temperature on EntityAI
3916 if (g_Game.IsWorldWetTempUpdateEnabled())
3917 {
3919 {
3920 float target = g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(this);
3921 if (GetTemperature() != target || !IsFreezeThawProgressFinished())
3922 {
3923 float heatPermCoef = 1.0;
3924 EntityAI ent = this;
3925 while (ent)
3926 {
3927 heatPermCoef *= ent.GetHeatPermeabilityCoef();
3928 ent = ent.GetHierarchyParent();
3929 }
3930
3931 SetTemperatureEx(new TemperatureDataInterpolated(target,ETemperatureAccessTypes.ACCESS_WORLD,elapsedTime,GameConstants.TEMP_COEF_WORLD,heatPermCoef));
3932 }
3933 }
3934 }
3935 }
DayZGame g_Game
Определения DayZGame.c:4074
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 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(), SetTemperatureEx() и GameConstants::TEMP_COEF_WORLD.