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

◆ GetAirResistanceForSmokeParticles()

float GetAirResistanceForSmokeParticles ( float actual_height)
protected

См. определение в файле FireplaceBase.c строка 1311

1312 {
1313 float air_res;
1314 actual_height = Math.Clamp(actual_height, 0, 36);
1315
1316 air_res = (6 - actual_height) * 0.33;
1317 air_res = Math.Clamp(air_res, 0, 2);
1318
1319 return air_res;
1320 }
Определения EnMath.c:7
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

Перекрестные ссылки Math::Clamp().

Используется в ParticleNormalSmokeStart() и ParticleSmallSmokeStart().