DayZ 1.28
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 строка 1112

1113 {
1114 float current_health = GetHealth();
1115 float final_health_coef = GetHealth01() - dec_health_coef;
1116 float final_health = GetMaxHealth() * final_health_coef;
1117 DecreaseHealth("", "", current_health - final_health);
1118 }
float GetHealth01()
Equivalent of GetHealth01("", "");.
Определения Object.c:1059
float GetHealth()
Equivalent of GetHealth("", "");.
Определения Object.c:1054
float GetMaxHealth()
Equivalent of GetMaxHealth("", "");.
Определения Object.c:1064
proto native void DecreaseHealth(string zoneName, string healthType, float value)
Decreases health.

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