DayZ 1.30
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 строка 1120

1121 {
1122 float current_health = GetHealth();
1123 float final_health_coef = GetHealth01() - dec_health_coef;
1124 float final_health = GetMaxHealth() * final_health_coef;
1125 DecreaseHealth("", "", current_health - final_health);
1126 }
float GetHealth01()
Equivalent of GetHealth01("", "");.
Определения Object.c:1067
float GetHealth()
Equivalent of GetHealth("", "");.
Определения Object.c:1062
float GetMaxHealth()
Equivalent of GetMaxHealth("", "");.
Определения Object.c:1072
proto native void DecreaseHealth(string zoneName, string healthType, float value)
Decreases health.

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