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

◆ SetZoneDamageCEInit()

void InventoryItem::SetZoneDamageCEInit ( )
inlineprotected

Sets zone damages to match randomized global health set by CE (CE spawn only)

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

4533 {
4534 float global_health = GetHealth01("","Health");
4535 array<string> zones = new array<string>;
4536 GetDamageZones(zones);
4537 //set damage of all zones to match global health level
4538 for (int i = 0; i < zones.Count(); i++)
4539 {
4540 SetHealth01(zones.Get(i),"Health",global_health);
4541 }
4542 }