DayZ 1.27
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 строка 4460

4461 {
4462 float global_health = GetHealth01("","Health");
4463 array<string> zones = new array<string>;
4464 GetDamageZones(zones);
4465 //set damage of all zones to match global health level
4466 for (int i = 0; i < zones.Count(); i++)
4467 {
4468 SetHealth01(zones.Get(i),"Health",global_health);
4469 }
4470 }