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

◆ GetAirResistanceForSmokeParticles()

float GetAirResistanceForSmokeParticles ( float actual_height)
protected

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

1328 {
1329 float air_res;
1330 actual_height = Math.Clamp(actual_height, 0, 36);
1331
1332 air_res = (6 - actual_height) * 0.33;
1333 air_res = Math.Clamp(air_res, 0, 2);
1334
1335 return air_res;
1336 }
Определения 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().