Iterate through items in player posession (by given body parts) and cool/warm them to neutral temparature.
- Аргументы
-
pBodyPartIds | List of body parts to iterate through (see InventorySlots) |
go through all body parts we've defined for that zone (ex.: head, body, feet)
См. определение в файле Environment.c строка 1216
1217 {
1220
1221 int attCount =
m_Player.GetInventory().AttachmentCount();
1222 for (int attIdx = 0; attIdx < attCount; ++attIdx)
1223 {
1224 attachment =
m_Player.GetInventory().GetAttachmentFromIndex(attIdx);
1226 int attachmentSlot = attachment.GetInventory().GetSlotId(0);
1227
1229 for (int i = 0; i < pBodyPartIds.Count(); ++i)
1230 {
1231 if (attachmentSlot == pBodyPartIds[i])
1232 {
1233 float heatPermCoef = item.GetHeatPermeabilityCoef();
1234
1237
1239 }
1240 }
1241 }
1242 }
void SetProcessedItemTemperature(ItemBase item, float heatPermeabilityCoef=1.0)
void ProcessItemHierarchyRecursive(ItemBase item, float heatPermeabilityCoef=1.0)
override bool IsSelfAdjustingTemperature()
Перекрестные ссылки ItemBase::IsSelfAdjustingTemperature(), m_Player, ProcessItemHierarchyRecursive() и SetProcessedItemTemperature().
Используется в Update().