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

◆ GetAirResistanceForSmokeParticles()

float GetAirResistanceForSmokeParticles ( float actual_height)
protected

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

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