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

◆ DamageClothing()

void DamageClothing ( PlayerBase player)
protected

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

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

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

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