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

◆ DamageClothing()

void DamageClothing ( PlayerBase player)
protected

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

665 {
666 //Array used to find all relevant information about currently equipped clothes
667 array<ClothingBase> equippedClothes = new array<ClothingBase>;
668
669 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("LEGS")));
670 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("BACK")));
671 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("VEST")));
672 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("HeadGear")));
673 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("Mask")));
674 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("BODY")));
675 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("FEET")));
676 equippedClothes.Insert(ClothingBase.Cast(player.GetItemOnSlot("GLOVES")));
677
678 //Damage all currently equipped clothes
679 for (int i = 0; i < equippedClothes.Count(); i++)
680 {
681 //If no item is equipped on slot, slot is ignored
682 if (equippedClothes[i] == null)
683 {
684 continue;
685 }
686
687 equippedClothes[i].DecreaseHealth(m_ClothingDmg[i], false);
688 }
689 }
ref array< int > m_ClothingDmg
Определения TrapBase.c:46
Определения DallasMask.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

Перекрестные ссылки m_ClothingDmg.

Используется в OnSteppedOn().