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

◆ CorrectMaterialPathName()

string Hologram::CorrectMaterialPathName ( )
inlineprotected

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

1522 {
1523 if (IsColliding() || IsFloating())
1524 {
1526 }
1527 else if (m_Parent.HasEnergyManager())
1528 {
1529 ComponentEnergyManager comp_em = m_Parent.GetCompEM();
1530 string SEL_CORD_PLUGGED = m_Parent.GetCompEM().SEL_CORD_PLUGGED;
1531 string SEL_CORD_FOLDED = m_Parent.GetCompEM().SEL_CORD_FOLDED;
1532
1533 if (comp_em.IsPlugged() && comp_em.IsEnergySourceAtReach(GetProjectionPosition()))
1534 {
1535 m_Projection.SetAnimationPhase(SEL_CORD_PLUGGED, 0);
1536 m_Projection.SetAnimationPhase(SEL_CORD_FOLDED, 1);
1538 }
1539 else
1540 {
1541 m_Projection.SetAnimationPhase(SEL_CORD_PLUGGED, 1);
1542 m_Projection.SetAnimationPhase(SEL_CORD_FOLDED, 0);
1543 }
1544 }
1545
1547 }
bool IsEnergySourceAtReach(vector from_position, float add_tolerance=0, vector override_source_position="-1 -1 -1")
Energy manager: Returns true if this device's virtual power cord can reach its energy source at the g...
Определения ComponentEnergyManager.c:1031
bool IsPlugged()
Energy manager: Returns true if this device is plugged into some other device (even if they are OFF o...
Определения ComponentEnergyManager.c:887
const string SUFFIX_MATERIAL_DEPLOYABLE
Определения Hologram.c:14
EntityAI m_Projection
Определения Hologram.c:22
ItemBase m_Parent
Определения Hologram.c:21
bool IsColliding()
Определения Hologram.c:1324
const string SUFFIX_MATERIAL_UNDEPLOYABLE
Определения Hologram.c:15
vector GetProjectionPosition()
Определения Hologram.c:1445
bool IsFloating()
Определения Hologram.c:1316
const string SUFFIX_MATERIAL_POWERED
Определения Hologram.c:16

Перекрестные ссылки GetProjectionPosition(), IsColliding(), ComponentEnergyManager::IsEnergySourceAtReach(), IsFloating(), ComponentEnergyManager::IsPlugged(), m_Parent, m_Projection, SUFFIX_MATERIAL_DEPLOYABLE, SUFFIX_MATERIAL_POWERED и SUFFIX_MATERIAL_UNDEPLOYABLE.

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