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

4549 {
4550 float global_health = GetHealth01("","Health");
4551 array<string> zones = new array<string>;
4552 GetDamageZones(zones);
4553 //set damage of all zones to match global health level
4554 for (int i = 0; i < zones.Count(); i++)
4555 {
4556 SetHealth01(zones.Get(i),"Health",global_health);
4557 }
4558 }