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

◆ GetAirResistanceForSmokeParticles()

float GetAirResistanceForSmokeParticles ( float actual_height)
protected

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

1308 {
1309 float air_res;
1310 actual_height = Math.Clamp(actual_height, 0, 36);
1311
1312 air_res = (6 - actual_height) * 0.33;
1313 air_res = Math.Clamp(air_res, 0, 2);
1314
1315 return air_res;
1316 }
Определения 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().