MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / IsVisible

Method IsVisible

ogsr_engine/xrGame/map_location.cpp:698–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698bool CRelationMapLocation::IsVisible()
699{
700 bool res = true;
701 if (m_last_relation == ALife::eRelationTypeEnemy || m_last_relation == ALife::eRelationTypeWorstEnemy)
702 {
703 CObject* _object_ = Level().Objects.net_Find(m_pInvOwnerEntityID);
704 if (_object_)
705 {
706 CEntityAlive* ea = smart_cast<CEntityAlive*>(_object_);
707 if (ea && !ea->g_Alive())
708 return true;
709
710 res = Actor()->memory().visual().visible_now(smart_cast<const CGameObject*>(_object_));
711 }
712 else
713 res = false;
714 }
715 if (m_b_was_visible_last_frame == false && res == true)
716 {
717 m_minimap_spot->ResetXformAnimation();
718 }
719
720 m_b_was_visible_last_frame = res;
721 return res;
722}
723
724void CRelationMapLocation::UpdateMiniMap(CUICustomMap* map)
725{

Callers 5

ActivateMethod · 0.45
StartMenuMethod · 0.45
StopMenuMethod · 0.45
OnFrameMethod · 0.45
IR_OnMouseMoveMethod · 0.45

Calls 6

ActorFunction · 0.85
g_AliveMethod · 0.80
visible_nowMethod · 0.80
ResetXformAnimationMethod · 0.80
visualMethod · 0.45
memoryMethod · 0.45

Tested by

no test coverage detected