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

◆ DamageClothing()

void DamageClothing ( PlayerBase player)
protected

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

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

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

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