DayZ 1.29
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 строка 1116

1117 {
1118 float current_health = GetHealth();
1119 float final_health_coef = GetHealth01() - dec_health_coef;
1120 float final_health = GetMaxHealth() * final_health_coef;
1121 DecreaseHealth("", "", current_health - final_health);
1122 }
float GetHealth01()
Equivalent of GetHealth01("", "");.
Определения Object.c:1063
float GetHealth()
Equivalent of GetHealth("", "");.
Определения Object.c:1058
float GetMaxHealth()
Equivalent of GetMaxHealth("", "");.
Определения Object.c:1068
proto native void DecreaseHealth(string zoneName, string healthType, float value)
Decreases health.

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