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

◆ DecreaseHealthCoef()

void IEntity::DecreaseHealthCoef ( float dec_health_coef,
bool auto_delete = true )
inlineprivate

Decreases health by the given coeficient.

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

1130 {
1131 float current_health = GetHealth();
1132 float final_health_coef = GetHealth01() - dec_health_coef;
1133 float final_health = GetMaxHealth() * final_health_coef;
1134 DecreaseHealth("", "", current_health - final_health);
1135 }
float GetHealth01()
Equivalent of GetHealth01("", "");.
Определения Object.c:1076
float GetHealth()
Equivalent of GetHealth("", "");.
Определения Object.c:1071
float GetMaxHealth()
Equivalent of GetMaxHealth("", "");.
Определения Object.c:1081
proto native void DecreaseHealth(string zoneName, string healthType, float value)
Decreases health.

Перекрестные ссылки DecreaseHealth(), GetHealth(), GetHealth01() и GetMaxHealth().